/* Tarn Clinic — styles.css — 2026-09-16 */
:root {
  --ink: #121110; --dark: #26231f; --greige: #8b8378; --greige-2: #a39a8d; --paper: #f2efe9; --paper-2: rgba(242, 239, 233, 0.7); --line: rgba(242, 239, 233, 0.28);
  --font: "Geologica", system-ui, sans-serif; --pad: clamp(20px, 3.4vw, 56px);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--paper); font: 300 17px/1.55 var(--font); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, figure, dl, dd, address, details, summary { margin: 0; }
ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--paper); outline-offset: 3px; }
.caps { font-weight: 200; text-transform: uppercase; letter-spacing: 0.01em; line-height: 1.1; font-size: clamp(30px, 3.6vw, 56px); }
.caps-s { font-weight: 200; text-transform: uppercase; letter-spacing: 0.02em; line-height: 1.15; font-size: clamp(22px, 2.4vw, 34px); }
.label { font-size: 13px; font-weight: 400; text-transform: uppercase; letter-spacing: 0.08em; color: var(--paper-2); }
.pill { display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 22px; border-radius: 999px; background: var(--paper); color: var(--ink); font-weight: 400; font-size: 15px; transition: transform 0.15s, background 0.2s; }
.pill:hover { transform: translateY(-1px); background: #fff; }
.pill-ghost { background: transparent; color: var(--paper); border: 1px solid var(--line); }
.pill-ghost:hover { background: rgba(242, 239, 233, 0.1); }
.pill svg { width: 22px; height: 12px; }
.round { width: 84px; height: 84px; border-radius: 50%; background: var(--ink); color: var(--paper); display: grid; place-items: center; box-shadow: 0 0 0 10px rgba(18, 17, 16, 0.18); transition: transform 0.2s; }
.round:hover { transform: scale(1.04); }
.round svg { width: 28px; height: 28px; }
.u { border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.u:hover { opacity: 0.8; }

/* header */
.header { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 10px var(--pad); position: absolute; left: 0; right: 0; top: 0; z-index: 20; }
.brand { display: flex; align-items: center; gap: 14px; }
.mark { width: 80px; height: 80px; border-radius: 14px; background: var(--ink); display: grid; place-items: center; }
.mark svg { width: 40px; height: 40px; }
.word { line-height: 1.05; }
.word b { display: block; font-weight: 400; font-size: 28px; letter-spacing: 0.01em; }
.word b span { font-weight: 200; }
.word small { display: block; font-size: 13px; font-weight: 300; color: var(--paper-2); margin-top: 2px; }
.tiles { display: grid; grid-template-columns: repeat(5, 88px); gap: 6px; margin-left: 24px; }
.tile { height: 78px; border: 1px solid var(--line); border-radius: 6px; padding: 6px 8px; display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto 1fr; background: rgba(242, 239, 233, 0.06); backdrop-filter: blur(6px); font-size: 12px; transition: background 0.2s; }
.tile:hover, .tile[aria-current] { background: rgba(242, 239, 233, 0.18); }
.tile b { font-size: 22px; font-weight: 300; line-height: 1; }
.tile i { font-style: normal; font-size: 10px; color: var(--paper-2); }
.tile span { grid-column: 1 / -1; align-self: end; }
.tile:nth-child(1) { grid-column: 2; }
.tile:nth-child(5) { grid-column: 1; }
.header-r { display: flex; align-items: center; gap: 10px; }
.menu-btn { display: none; }

/* landing */
.land { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; transition: grid-template-columns 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); position: relative; }
.land[data-side="left"] { grid-template-columns: 1.25fr 0.75fr; }
.land[data-side="right"] { grid-template-columns: 0.75fr 1.25fr; }
.panel { position: relative; display: grid; grid-template-rows: auto 1fr auto; gap: 24px; padding: 120px var(--pad) 32px; min-height: 100vh; }
.panel-l { background: var(--greige); }
.panel-r { background: var(--dark); text-align: right; }
.panel .caps { max-width: 12ch; }
.panel-r .caps { margin-left: auto; }
.panel .sub { font-size: 15px; color: var(--paper-2); margin-top: 10px; max-width: 34ch; }
.panel-r .sub { margin-left: auto; }
.arch { width: min(60%, 260px); aspect-ratio: 3 / 4; border-radius: 999px; overflow: hidden; align-self: center; transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.panel-r .arch { justify-self: end; }
.panel:hover .arch { transform: scale(1.03); }
.arch img { width: 100%; height: 100%; object-fit: cover; }
.panel-foot { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 32px; font-size: 15px; }
.panel-l .panel-foot { align-items: center; }
.panel-foot small { display: block; font-size: 12px; color: var(--paper-2); max-width: 40ch; text-align: right; line-height: 1.4; }
.panel-r .panel-foot address { font-style: normal; text-align: left; max-width: 34ch; }
.choose { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 5; width: 128px; height: 128px; border-radius: 8px; background: rgba(242, 239, 233, 0.12); border: 1px solid var(--line); backdrop-filter: blur(10px); display: grid; place-content: center; gap: 12px; text-align: center; font-size: 13px; line-height: 1.25; color: var(--paper); }
.knob { width: 34px; height: 18px; border-radius: 999px; background: rgba(242, 239, 233, 0.35); position: relative; margin: 0 auto; }
.knob::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--paper); transition: left 0.3s; }
.land[data-side="right"] .knob::after { left: 18px; }

/* hero */
.hero { position: relative; min-height: 100vh; display: grid; align-content: end; padding: 160px var(--pad) 0; isolation: isolate; }
.hero img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; filter: brightness(0.7); }
.hero-copy { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 24px; padding-bottom: 48px; }
.hero h1 { font-size: clamp(30px, 4vw, 60px); max-width: 22ch; text-indent: 3ch; }
.hero-strap { display: grid; place-items: center; text-align: center; padding: 22px var(--pad); font-size: 16px; color: var(--paper-2); }
.hero-strap .dot { width: 10px; height: 12px; border: 1px solid var(--paper-2); border-radius: 999px; margin-bottom: 8px; }

/* pillars */
.grey { background: var(--greige); padding: clamp(56px, 8vw, 120px) var(--pad); display: grid; gap: clamp(40px, 6vw, 96px); }
.grey .caps { text-align: right; margin-left: auto; max-width: 22ch; }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.pillars div { font-size: 15px; color: rgba(242, 239, 233, 0.88); display: grid; gap: 10px; }
.pillars .caps-s { color: var(--paper); }
.photos { display: grid; grid-template-columns: 2fr 1fr; gap: 48px; align-items: end; }
.photos figure.wide { aspect-ratio: 5 / 4; overflow: hidden; }
.photos img { width: 100%; height: 100%; object-fit: cover; }
.photos .arch { width: min(100%, 320px); justify-self: end; }

/* departments */
.depts { padding: clamp(56px, 8vw, 120px) var(--pad) 0; display: grid; gap: 24px; }
.depts h2 { font-weight: 300; font-size: 24px; text-transform: uppercase; letter-spacing: 0.04em; }
.dept { border-top: 1px solid var(--line); }
.dept:last-child { border-bottom: 1px solid var(--line); }
.dept summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr auto; align-items: center; padding: 22px 0; font-weight: 200; text-transform: uppercase; font-size: clamp(24px, 3vw, 42px); letter-spacing: 0.02em; text-align: center; }
.dept summary::-webkit-details-marker { display: none; }
.dept summary::after { content: "+"; font-weight: 200; font-size: 28px; color: var(--paper-2); }
.dept[open] summary::after { content: "–"; }
.dept-body { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; padding: 0 0 28px; max-width: 900px; margin: 0 auto; }
.dept-body p { color: var(--paper-2); }

/* specialists */
.spec { padding: clamp(56px, 8vw, 120px) var(--pad); display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.spec p { max-width: 48ch; color: var(--paper-2); }
.spec .caps { font-size: clamp(30px, 4vw, 50px); }

/* book */
.book { position: relative; overflow: hidden; padding: clamp(80px, 12vw, 180px) var(--pad); isolation: isolate; display: grid; justify-items: center; gap: 32px; }
.book img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; filter: blur(6px) brightness(0.85); transform: scale(1.05); }
.book .caps { text-align: center; }
.book .caps span { display: block; }
.book .caps span:nth-child(2) { padding-left: 4ch; }
.form { display: grid; gap: 18px; width: min(100%, 520px); }
.form label { display: grid; gap: 4px; font-size: 13px; color: var(--paper-2); }
.form input, .form select, .form textarea { font: 300 17px/1.4 var(--font); background: transparent; border: 0; border-bottom: 1px solid var(--paper); padding: 10px 0; color: var(--paper); border-radius: 0; }
.form select option { color: var(--ink); }
.form input::placeholder { color: var(--paper-2); }
.form textarea { min-height: 100px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-bottom-width: 2px; }
.form .pill { justify-self: start; }
.form-status { font-size: 15px; min-height: 1.4em; }

/* footer */
.footer { padding: clamp(48px, 7vw, 96px) var(--pad) 24px; display: grid; gap: clamp(32px, 5vw, 64px); }
.foot-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 32px; }
.foot-phone { font-weight: 200; font-size: clamp(40px, 6.5vw, 96px); line-height: 1; letter-spacing: -0.01em; }
.foot-grid { display: grid; grid-template-columns: 1.2fr 0.8fr 0.8fr 1.4fr; gap: 32px; font-size: 15px; }
.foot-grid .label { margin-bottom: 14px; display: block; }
.foot-grid address { font-style: normal; color: var(--paper-2); display: grid; gap: 6px; }
.foot-grid ul { display: grid; gap: 6px; }
.foot-grid .services { text-align: right; text-transform: uppercase; font-size: 13px; letter-spacing: 0.04em; }
.foot-grid a:hover { color: #fff; }
.news { background: var(--paper); color: var(--ink); padding: 24px; max-width: 600px; display: grid; gap: 16px; }
.news p { font-size: 15px; text-transform: uppercase; letter-spacing: 0.02em; font-weight: 400; }
.news form { display: flex; gap: 12px; align-items: end; flex-wrap: wrap; }
.news input { flex: 1; min-width: 200px; font: 300 17px/1.4 var(--font); border: 0; border-bottom: 1px solid var(--ink); padding: 8px 0; background: transparent; color: var(--ink); border-radius: 0; }
.news input:focus { outline: none; border-bottom-width: 2px; }
.news .pill { background: var(--ink); color: var(--paper); }
.news .form-status { color: var(--ink); }
.foot-legal { font-size: 12px; color: var(--paper-2); max-width: 40ch; line-height: 1.4; }
.foot-bottom { border-top: 1px solid var(--line); padding-top: 16px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: 13px; color: var(--paper-2); }

/* inner */
.page { padding: 140px var(--pad) 0; display: grid; gap: 20px; }
.page h1 { font-weight: 200; text-transform: uppercase; font-size: clamp(34px, 4.6vw, 68px); line-height: 1.05; max-width: 18ch; }
.page p.lead { max-width: 56ch; color: var(--paper-2); }
.doctors { padding: clamp(40px, 6vw, 88px) var(--pad); display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px 24px; }
.doc { display: grid; gap: 10px; }
.doc figure { aspect-ratio: 3 / 4; border-radius: 999px; overflow: hidden; }
.doc img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.85); }
.doc h2 { font-weight: 300; font-size: 20px; margin-top: 6px; }
.doc p { font-size: 14px; color: var(--paper-2); text-transform: uppercase; letter-spacing: 0.04em; }
.svc { padding: clamp(40px, 6vw, 88px) var(--pad); display: grid; gap: 0; }
.svc article { display: grid; grid-template-columns: 1fr 1.6fr; gap: 32px; padding: 32px 0; border-top: 1px solid var(--line); }
.svc article:last-child { border-bottom: 1px solid var(--line); }
.svc h2 { font-weight: 200; text-transform: uppercase; font-size: clamp(22px, 2.6vw, 36px); line-height: 1.1; }
.svc p { color: var(--paper-2); max-width: 56ch; }
.svc dl { display: grid; grid-template-columns: 1fr auto; margin-top: 16px; font-size: 15px; }
.svc dt, .svc dd { padding: 8px 0; border-bottom: 1px solid rgba(242, 239, 233, 0.14); }
.svc dd { text-align: right; font-variant-numeric: tabular-nums; }
.contact { padding: clamp(40px, 6vw, 88px) var(--pad); display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-info { display: grid; gap: 28px; }
.contact-info address { font-style: normal; display: grid; gap: 4px; }
.contact-info figure { aspect-ratio: 4 / 3; overflow: hidden; }
.contact-info img { width: 100%; height: 100%; object-fit: cover; }

/* sheet */
.sheet { position: fixed; inset: 0; z-index: 40; background: var(--ink); display: grid; grid-template-rows: auto 1fr auto; padding: 16px var(--pad) 24px; }
.sheet-top { display: flex; justify-content: space-between; align-items: center; }
.sheet nav { align-self: center; display: grid; gap: 6px; }
.sheet nav a { font-weight: 200; text-transform: uppercase; font-size: clamp(26px, 6vw, 44px); line-height: 1.15; }
.sheet nav a:hover { color: #fff; }

/* demo note */
.demo-note { position: fixed; left: 12px; bottom: 12px; z-index: 50; padding: 6px 10px; border-radius: 999px; background: rgba(242, 239, 233, 0.16); color: rgba(242, 239, 233, 0.9); font: 400 11px/1 var(--font); backdrop-filter: blur(6px); border: 1px solid var(--line); }
.demo-note:hover { color: #fff; }

@media (prefers-reduced-motion: reduce) { * { transition-duration: 0.001s !important; } html { scroll-behavior: auto; } }
@media (max-width: 1100px) { .tiles { grid-template-columns: repeat(4, 78px); } .tile { height: 70px; } .tile:nth-child(1), .tile:nth-child(5) { grid-column: auto; } .doctors { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px) {
  .tiles { display: none; }
  .menu-btn { display: inline-flex; }
  .mark { width: 56px; height: 56px; border-radius: 10px; }
  .mark svg { width: 30px; height: 30px; }
  .word b { font-size: 22px; }
  .land, .land[data-side] { grid-template-columns: 1fr; }
  .panel { min-height: 0; padding: 110px var(--pad) 32px; gap: 20px; }
  .panel-l { padding-top: 120px; }
  .choose { display: none; }
  .hero-copy, .spec, .photos, .contact { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; }
  .grey .caps { text-align: left; margin-left: 0; }
  .photos .arch { justify-self: start; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid .services { text-align: left; }
  .doctors { grid-template-columns: 1fr 1fr; }
  .svc article { grid-template-columns: 1fr; gap: 12px; }
  .dept summary { grid-template-columns: 1fr auto; text-align: left; }
  .dept-body { grid-template-columns: 1fr; }
  .header { padding: 10px var(--pad); }
}
@media (max-width: 560px) { .doctors, .foot-grid { grid-template-columns: 1fr; } .panel .caps { max-width: none; } .arch { width: min(70%, 220px); } .word small { display: none; } .word b { font-size: 20px; } .header-r .pill { height: 40px; padding: 0 16px; } }
