/* tudortrocaru.com — editorial, warm paper, one vermilion accent. Fraunces (display) + Instrument Sans (text). */
:root {
  --paper: oklch(0.972 0.009 82);
  --paper-2: oklch(0.945 0.012 80);
  --ink: oklch(0.21 0.014 60);
  --ink-2: oklch(0.36 0.014 60);
  --muted: oklch(0.47 0.014 60);
  --line: oklch(0.86 0.012 78);
  --accent: oklch(0.6 0.185 37);
  --accent-ink: oklch(0.5 0.17 36);
  --night: oklch(0.195 0.012 60);
  --night-2: oklch(0.25 0.012 60);
  --night-line: oklch(0.33 0.012 60);
  --night-text: oklch(0.93 0.01 80);
  --night-muted: oklch(0.72 0.012 70);
  --serif: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --sans: 'Instrument Sans', 'Helvetica Neue', Arial, sans-serif;
  --wrap: 1240px;
  --pad: clamp(20px, 4.5vw, 56px);
  --ease: cubic-bezier(.2, .7, .1, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--sans); overflow-x: clip; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -.02em; line-height: 1.05; margin: 0; font-variation-settings: 'opsz' 144; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 10px 14px; z-index: 50; }
.skip:focus { left: 8px; }
.eyebrow { font: 600 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); display: flex; gap: 14px; align-items: center; }
.eyebrow b { color: var(--accent-ink); font-weight: 600; }
.eyebrow::after { content: ""; height: 1px; flex: 1; background: var(--line); }

/* nav */
.nav { position: sticky; top: 0; z-index: 20; background: color-mix(in oklch, var(--paper) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { font: 500 19px/1 var(--serif); letter-spacing: -.01em; text-decoration: none; margin-right: auto; display: flex; align-items: center; gap: 10px; }
.brand i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); display: inline-block; }
.nav a.l { font-size: 15px; text-decoration: none; color: var(--ink-2); padding: 12px 0; }
.nav a.l[aria-current="page"] { color: var(--ink); text-decoration: underline; }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 99px; padding: 3px; font: 600 12px/1 var(--sans); letter-spacing: .06em; }
.lang a, .lang span { padding: 8px 10px; border-radius: 99px; text-decoration: none; min-width: 36px; text-align: center; }
.lang span { background: var(--ink); color: var(--paper); }
@media (max-width: 640px) { .nav .wrap { gap: 16px; } .nav a.l.hide-sm { display: none; } }

/* hero */
.hero { padding: clamp(40px, 8vw, 104px) 0 clamp(40px, 6vw, 72px); }
.hero-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: end; }
.hero h1 { font-size: clamp(64px, 12.5vw, 184px); line-height: .86; letter-spacing: -.045em; font-weight: 360; }
.hero h1 .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .06em; }
.hero h1 .w > span { display: inline-block; animation: rise 1s var(--ease) both; }
.hero h1 .w:nth-child(2) > span { animation-delay: .09s; }
.hero h1 em { font-style: italic; color: var(--accent); font-weight: 300; }
.lede { font: 400 clamp(20px, 2.1vw, 26px)/1.38 var(--serif); font-variation-settings: 'opsz' 24; color: var(--ink-2); max-width: 30ch; margin: 28px 0 28px; letter-spacing: -.005em; animation: fade 1s .25s var(--ease) both; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; animation: fade 1s .35s var(--ease) both; }
.chips li { font-size: 14px; border: 1px solid var(--line); padding: 7px 13px; border-radius: 99px; background: var(--paper); }
.chips li b { font-weight: 600; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; animation: fade 1s .45s var(--ease) both; }
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 99px; font: 600 15px/1 var(--sans); text-decoration: none; border: 1px solid var(--ink); transition: transform .2s var(--ease), background .2s, color .2s; cursor: pointer; }
.btn.solid { background: var(--ink); color: var(--paper); }
.btn.solid:hover { background: var(--accent-ink); border-color: var(--accent-ink); color: #fff; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); }
.btn:active { transform: translateY(1px); }
.btn .arr { transition: transform .25s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }

/* portrait placeholder — replace with /assets/photos/portrait.jpg */
.portrait { position: relative; aspect-ratio: 4/5; border-radius: 4px; overflow: hidden; background: var(--night); color: var(--night-text); animation: fade 1.2s .2s var(--ease) both; }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait .mono { position: absolute; inset: auto 0 0 0; padding: 22px; display: flex; justify-content: space-between; align-items: end; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--night-muted); }
.portrait .tt { position: absolute; top: 18px; left: 22px; font: 300 clamp(96px, 13vw, 168px)/.8 var(--serif); letter-spacing: -.06em; color: oklch(0.32 0.014 60); }
.portrait .tt::before { content: "TT"; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.portrait svg { position: absolute; left: 0; right: 0; top: 50%; width: 100%; height: 34%; transform: translateY(-30%); }
.portrait svg rect { fill: var(--accent); transform-origin: center; transform-box: fill-box; animation: talk 1.8s ease-in-out infinite; }

/* sections */
section.s { padding: clamp(64px, 9vw, 128px) 0; }
.s-head { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(20px, 4vw, 64px); margin-bottom: clamp(36px, 5vw, 64px); align-items: end; }
.s-head h2 { font-size: clamp(40px, 5.6vw, 80px); max-width: 14ch; }
.s-head p { color: var(--ink-2); font-size: 18px; max-width: 52ch; margin: 0; }
.s-head .eyebrow { grid-column: 1 / -1; }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* now building */
.now { display: grid; grid-template-columns: 1.1fr 1fr; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: var(--paper); }
.now .a { padding: clamp(26px, 4vw, 48px); }
.now .b { padding: clamp(26px, 4vw, 48px); background: var(--paper-2); border-left: 1px solid var(--line); display: flex; flex-direction: column; justify-content: space-between; gap: 28px; }
.now h3 { font-size: clamp(36px, 4.6vw, 60px); margin: 18px 0 16px; }
.now .role { font-weight: 600; font-size: 15px; color: var(--accent-ink); }
.now p { color: var(--ink-2); max-width: 46ch; }
.does { list-style: none; padding: 0; margin: 0; counter-reset: d; }
.does li { counter-increment: d; display: grid; grid-template-columns: 34px 1fr; padding: 12px 0; border-top: 1px solid var(--line); font-size: 16px; }
.does li:first-child { border-top: 0; padding-top: 0; }
.does li::before { content: counter(d, decimal-leading-zero); font: 500 13px/1.9 var(--sans); color: var(--muted); font-variant-numeric: tabular-nums; }
.also { margin-top: 28px; padding-top: 20px; border-top: 1px dashed var(--line); font-size: 15px; color: var(--muted); }
.also strong { color: var(--ink); font-weight: 600; }
.live { display: inline-flex; align-items: center; gap: 8px; font: 600 12px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.live i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 color-mix(in oklch, var(--accent) 50%, transparent); animation: ping 2.4s infinite; }

/* story */
.story { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(28px, 6vw, 96px); }
.story .big { font: 380 clamp(30px, 3.6vw, 48px)/1.12 var(--serif); letter-spacing: -.02em; }
.story .big em { color: var(--accent-ink); }
.story .body p { font-size: 18px; color: var(--ink-2); }
.story .body p:first-child::first-letter { font: 400 3.4em/.8 var(--serif); float: left; margin: .08em .08em 0 0; color: var(--ink); }

/* glance */
.glance { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); }
.glance div { padding: 22px 20px 6px 0; border-right: 1px solid var(--line); }
.glance div + div { padding-left: 20px; }
.glance div:last-child { border-right: 0; }
.glance dt { font: 400 clamp(40px, 5vw, 64px)/1 var(--serif); letter-spacing: -.03em; font-variant-numeric: lining-nums tabular-nums; }
.glance dd { margin: 10px 0 0; font-size: 15px; color: var(--muted); max-width: 22ch; }
.src { font-size: 13px; color: var(--muted); margin-top: 18px; }

/* dashboard (dark band) */
.dark { background: var(--night); color: var(--night-text); }
.dark .eyebrow { color: var(--night-muted); }
.dark .eyebrow::after { background: var(--night-line); }
.dark .eyebrow b { color: oklch(0.72 0.16 40); }
.dark .s-head p { color: var(--night-muted); }
.dash { position: relative; border: 1px solid var(--night-line); border-radius: 8px; background: var(--night-2); overflow: hidden; box-shadow: 0 40px 80px -40px rgb(0 0 0 / .6); }
.dash .bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--night-line); font-size: 13px; color: var(--night-muted); }
.dash .bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--night-line); }
.dash .bar span { margin-left: 12px; }
.dash .tag-ill { margin-left: auto; font: 600 11px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--night); background: var(--night-muted); padding: 6px 8px; border-radius: 3px; }
.dash .body { display: grid; grid-template-columns: 200px 1fr 1fr; min-height: 380px; }
.dash nav { border-right: 1px solid var(--night-line); padding: 18px 14px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--night-muted); }
.dash nav span { padding: 9px 10px; border-radius: 4px; }
.dash nav span.on { background: var(--night); color: var(--night-text); }
.dash .calls { border-right: 1px solid var(--night-line); padding: 10px 0; }
.dash .row { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; padding: 12px 18px; border-bottom: 1px solid color-mix(in oklch, var(--night-line) 60%, transparent); }
.dash .row .who { height: 10px; border-radius: 3px; background: var(--night-line); filter: blur(2.5px); }
.dash .row .sub { height: 7px; width: 55%; margin-top: 8px; border-radius: 3px; background: color-mix(in oklch, var(--night-line) 70%, transparent); filter: blur(2px); }
.dash .pill { font: 600 11px/1 var(--sans); letter-spacing: .04em; padding: 6px 9px; border-radius: 99px; border: 1px solid var(--night-line); color: var(--night-text); white-space: nowrap; }
.dash .pill.ok { border-color: oklch(0.55 0.1 150); color: oklch(0.82 0.1 150); }
.dash .pill.hot { border-color: oklch(0.6 0.15 40); color: oklch(0.8 0.13 45); }
.dash .detail { padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.dash .wave { display: flex; align-items: center; gap: 3px; height: 54px; padding: 0 4px; border: 1px solid var(--night-line); border-radius: 6px; }
.dash .wave i { flex: 1; background: var(--night-muted); border-radius: 2px; opacity: .55; }
.dash .wave i.p { background: oklch(0.72 0.16 40); opacity: 1; }
.dash .lbl { font: 600 11px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--night-muted); }
.dash .line { height: 8px; border-radius: 3px; background: var(--night-line); filter: blur(2px); }
.dash .line.s { width: 70%; } .dash .line.m { width: 86%; }
.dash .bubble { padding: 12px; border-radius: 6px; background: var(--night); display: flex; flex-direction: column; gap: 8px; }
.dash .bubble.me { margin-left: 18%; background: color-mix(in oklch, var(--night) 60%, oklch(0.4 0.08 40)); }
.dash-notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); margin-top: 40px; }
.dash-notes h3 { font-size: 24px; margin-bottom: 8px; }
.dash-notes p { color: var(--night-muted); font-size: 16px; margin: 0; }
.dash-cap { font-size: 13px; color: var(--night-muted); margin-top: 14px; }

/* work */
.cases { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); }
.case { position: relative; padding: 26px 24px 28px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; text-decoration: none; transition: background .25s; }
.case:nth-child(3n+2), .case:nth-child(3n) { padding-left: 24px; border-left: 1px solid var(--line); }
.case .meta { font-size: 13px; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; }
.case .meta span + span::before { content: "·"; margin-right: 8px; }
.case h3 { font-size: clamp(24px, 2.2vw, 30px); line-height: 1.1; }
.case .m { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: auto; }
.case .m b { display: block; font: 400 30px/1 var(--serif); letter-spacing: -.02em; font-variant-numeric: lining-nums; }
.case .m span { display: block; font-size: 13.5px; color: var(--ink-2); line-height: 1.35; margin-top: 6px; }
.case .go { font-size: 14px; font-weight: 600; color: var(--accent-ink); display: inline-flex; gap: 6px; }
.case:hover h3 { color: var(--accent-ink); }
.case:hover .go span { transform: translate(2px, -2px); }
.case .go span { display: inline-block; transition: transform .25s var(--ease); }
.case[hidden] { display: none; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.filters button { font: 500 14px/1 var(--sans); border: 1px solid var(--line); background: transparent; color: var(--ink-2); padding: 0 14px; min-height: 40px; border-radius: 99px; cursor: pointer; transition: all .2s; }
.filters button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.filters button:hover { border-color: var(--ink); }
.filters button small { opacity: .6; margin-left: 4px; }
.nda { margin-top: 28px; font-size: 15px; color: var(--muted); max-width: 70ch; }

/* where */
.where { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 96px); align-items: start; }
.where h2 { font-size: clamp(38px, 5.6vw, 76px); margin-top: 22px; }
.places { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 32px; }
.places li { font: 400 clamp(22px, 2.4vw, 30px)/1.6 var(--serif); letter-spacing: -.01em; break-inside: avoid; }
.places li small { font: 500 12px var(--sans); color: var(--muted); letter-spacing: .1em; text-transform: uppercase; margin-left: 6px; vertical-align: middle; }
.route { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; font: 400 clamp(22px, 2.4vw, 30px)/1.3 var(--serif); margin: 22px 0 18px; }
.route i { width: 28px; height: 1px; background: var(--ink); display: inline-block; }

/* contact */
.contact { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(28px, 6vw, 96px); }
.contact h2 { font-size: clamp(44px, 6.5vw, 92px); margin: 22px 0 22px; }
.contact .side p { color: var(--ink-2); max-width: 38ch; }
.links { list-style: none; padding: 0; margin: 28px 0 0; border-top: 1px solid var(--line); }
.links li a { display: flex; justify-content: space-between; align-items: center; padding: 15px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-size: 16px; min-height: 48px; }
.links li a span:last-child { color: var(--muted); font-size: 14px; }
form.f { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.f label { display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.f .full { grid-column: 1 / -1; }
.f input, .f select, .f textarea { font: 400 17px/1.4 var(--sans); color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 4px; padding: 13px 14px; min-height: 50px; width: 100%; transition: border-color .2s, box-shadow .2s; }
.f textarea { min-height: 150px; resize: vertical; }
.f input:focus, .f select:focus, .f textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px color-mix(in oklch, var(--accent) 22%, transparent); }
.f .consent { flex-direction: row; align-items: flex-start; gap: 12px; font-weight: 400; font-size: 14px; color: var(--muted); }
.f .consent input { width: 20px; height: 20px; min-height: 0; margin: 2px 0 0; accent-color: var(--ink); flex: none; }
.f .hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.f .send { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.f .status { font-size: 15px; min-height: 1.4em; }
.f .status.ok { color: oklch(0.45 0.11 150); }
.f .status.err { color: var(--accent-ink); }
.f button[disabled] { opacity: .6; cursor: progress; }

/* about page */
.facts { border-top: 1px solid var(--ink); margin: 0; }
.facts div { display: grid; grid-template-columns: 160px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); font-size: 14px; letter-spacing: .04em; }
.facts dd { margin: 0; font-size: 17px; }
.prose { max-width: 64ch; }
.prose p { font-size: 18px; color: var(--ink-2); }
.prose h2 { font-size: clamp(30px, 3.4vw, 44px); margin: 56px 0 18px; }
.page-hero { padding: clamp(48px, 8vw, 112px) 0 clamp(32px, 5vw, 56px); }
.page-hero h1 { font-size: clamp(54px, 9vw, 132px); line-height: .9; letter-spacing: -.04em; font-weight: 360; }
.page-hero h1 em { font-style: italic; color: var(--accent); font-weight: 300; }
.page-hero p { font: 400 clamp(20px, 2.1vw, 26px)/1.38 var(--serif); color: var(--ink-2); max-width: 36ch; margin-top: 24px; }
.two { display: grid; grid-template-columns: 1fr 1.5fr; gap: clamp(28px, 6vw, 96px); }

/* footer */
footer { border-top: 1px solid var(--line); padding: 36px 0 44px; font-size: 14px; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; }
footer .sp { margin-right: auto; }
footer a { text-decoration: none; padding: 8px 0; }

/* reveal on scroll */
.js .rv { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js .rv.in { opacity: 1; transform: none; }
.js .dash .row { opacity: 0; transform: translateX(-10px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: calc(var(--i) * 90ms + .2s); }
.js .dash.in .row { opacity: 1; transform: none; }

@keyframes rise { from { transform: translateY(105%); } to { transform: none; } }
@keyframes fade { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes talk { 0%, 100% { transform: scaleY(.35); } 50% { transform: scaleY(1); } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 color-mix(in oklch, var(--accent) 45%, transparent); } 70%, 100% { box-shadow: 0 0 0 10px transparent; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .js .rv, .js .dash .row { opacity: 1; transform: none; }
}

/* responsive */
@media (max-width: 980px) {
  .hero-grid, .now, .story, .where, .contact, .two, .s-head { grid-template-columns: 1fr; }
  .now .b { border-left: 0; border-top: 1px solid var(--line); }
  .portrait { aspect-ratio: 16/11; max-width: 560px; }
  .cases { grid-template-columns: 1fr 1fr; }
  .case:nth-child(n) { padding: 24px 20px 26px 0; border-left: 0; }
  .case:nth-child(2n) { padding-left: 20px; border-left: 1px solid var(--line); }
  .glance { grid-template-columns: 1fr 1fr; }
  .glance div:nth-child(2) { border-right: 0; }
  .glance div:nth-child(3) { padding-left: 0; }
  .glance div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .dash .body { grid-template-columns: 1fr 1fr; }
  .dash nav { display: none; }
  .dash-notes { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .cases { grid-template-columns: 1fr; }
  .case:nth-child(n) { padding: 22px 0 24px; border-left: 0; }
  .dash .body { grid-template-columns: 1fr; min-height: 0; }
  .dash .detail { border-top: 1px solid var(--night-line); }
  .dash .calls { border-right: 0; }
  .dash .bar span.u { display: none; }
  form.f { grid-template-columns: 1fr; }
  .hero h1 { font-size: 24vw; }
  .places li { font-size: 22px; }
  .facts div { grid-template-columns: 1fr; gap: 4px; }
  .portrait { aspect-ratio: 4/3; }
  .portrait .tt { font-size: 110px; }
}
