/* esmacevik.com
   Source of truth: Figma "Portfolio 26 SOT Design" (dCBMld53zR3Bd0dHku3W6E)
   Tokens below mirror the Figma variables. */

@font-face { font-family: "Geist"; src: url("/assets/fonts/Geist-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Lora"; src: url("/assets/fonts/lora-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Lora"; src: url("/assets/fonts/lora-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Rubik"; src: url("/assets/fonts/rubik-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --bg-page: #f2efe8;
  --bg-subtle: #ece8e0;
  --bg-surface: #fbfaf6;
  --bg-inverse: #141414;
  --bg-inverse-raised: #1c1b19;
  --bg-accent: #e8704e;
  --pattern-dot: #dcd6ca;
  --pattern-bar: #c9c2b4;

  --text-primary: #141414;
  --text-body: #3e3b35;
  --text-secondary: #5e5b54;
  --text-tertiary: #9c968a;
  --text-logo: #0d0c21;
  --text-accent: #e8704e;
  --text-inverse: #f2efe8;
  --text-inverse-secondary: #a8a196;
  --text-accent-on-dark: #f6b4d4;
  --text-link-on-dark: #f8b4d8;
  --text-highlight-on-dark: #5eb576;

  --border-default: #d9d4c9;
  --border-on-dark: #3a3631;
  --border-strong: #141414;

  --radius-tile: 4px;
  --radius-card: 16px;
  --radius-letter: 20px;
  --radius-feature: 24px;
  --radius-contact: 32px;
  --radius-pill: 999px;

  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Lora", Georgia, serif;
  --font-logo: "Rubik", var(--font-sans);

  --container: 1200px;
  --gutter: 120px;
  --section-y: 64px;
  --nav-h: 96px;
}

@media (max-width: 1280px) { :root { --gutter: 64px; } }
@media (max-width: 960px)  { :root { --gutter: 40px; } }
@media (max-width: 640px)  { :root { --gutter: 20px; --section-y: 48px; --nav-h: 97px; } }

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--bg-page); color: var(--text-primary); font-family: var(--font-sans); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--text-accent); outline-offset: 3px; border-radius: 4px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -48px; z-index: 100; background: var(--bg-inverse); color: var(--text-inverse); padding: 10px 16px; border-radius: 999px; }
.skip-link:focus { top: 16px; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }

/* Dot pattern (rebuilt in CSS, Figma uses vectors on a 24px grid) */
.dots { background-image: radial-gradient(circle at 12px 12px, var(--pattern-dot) 1.1px, transparent 1.6px); background-size: 24px 24px; }

/* Type helpers */
.kicker { font-size: 12px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-secondary); }
.serif-note { font-family: var(--font-serif); font-weight: 500; font-size: 15px; letter-spacing: 0.01em; color: var(--text-secondary); }
.section-title { font-size: 30px; font-weight: 500; line-height: 1.3; letter-spacing: 0; }

/* Buttons and links */
.text-btn { display: inline-flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 500; letter-spacing: 0.02em; line-height: 20px; padding-block: 7px; }
.text-btn img { width: 16px; height: 16px; transition: transform .2s ease; }
.text-btn:hover img { transform: translate(2px, -2px); }
.link-underline { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .25s ease; }
.link-underline:hover { background-size: 100% 1px; }

.circle-btn { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid var(--border-default); border-radius: var(--radius-pill); transition: background-color .2s ease, border-color .2s ease; }
.circle-btn img { width: 16px; height: 16px; }
.circle-btn img.lock { height: 18px; }
a:hover .circle-btn, .circle-btn:hover { background: var(--bg-surface); border-color: var(--border-strong); }

.chip { display: inline-flex; align-items: center; border: 1px solid var(--border-default); border-radius: var(--radius-pill); padding: 6px 12px; font-size: 12px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-secondary); line-height: normal; white-space: nowrap; }
.chip-list { display: flex; flex-wrap: wrap; gap: 7px; }

/* ===== Nav ===== */
.site-header { position: sticky; top: 0; z-index: 50; transition: background-color .25s ease, box-shadow .25s ease; }
.site-header.is-scrolled { background: rgba(242, 239, 232, 0.92); backdrop-filter: saturate(1.2) blur(8px); -webkit-backdrop-filter: saturate(1.2) blur(8px); box-shadow: 0 1px 0 var(--border-default); }
.nav { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); }
.logo { font-family: var(--font-logo); font-weight: 700; font-size: 24px; line-height: 28px; color: var(--text-logo); text-transform: lowercase; letter-spacing: 0; }
.logo span { color: var(--text-accent); }
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a { font-size: 16px; font-weight: 500; letter-spacing: 0.01em; line-height: 24px; transition: color .2s ease; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text-accent); }
.nav-links .nav-resume { padding: 16px 20px; letter-spacing: 0.02em; line-height: 20px; }
.menu-btn { display: none; align-items: center; gap: 10px; font-size: 16px; font-weight: 500; line-height: 21px; padding: 12px 0; }
.menu-btn .bars { position: relative; width: 18px; height: 12px; }
.menu-btn .bars::before, .menu-btn .bars::after, .menu-btn .bars span { content: ""; position: absolute; left: 0; width: 18px; height: 1.6px; background: currentColor; border-radius: 1px; transition: transform .25s ease, opacity .2s ease; }
.menu-btn .bars::before { top: 0; } .menu-btn .bars span { top: 5.2px; } .menu-btn .bars::after { bottom: 0; }
.menu-btn[aria-expanded="true"] .bars::before { transform: translateY(5.2px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .bars span { opacity: 0; }
.menu-btn[aria-expanded="true"] .bars::after { transform: translateY(-5.2px) rotate(-45deg); }

.mobile-menu { display: none; }

@media (max-width: 640px) {
  .nav { align-items: flex-end; padding-bottom: 11px; }
  .nav-links { display: none; }
  .menu-btn { display: inline-flex; }
  .mobile-menu { position: fixed; inset: var(--nav-h) 0 0; z-index: 49; background: var(--bg-page); padding: 24px var(--gutter) 40px; display: flex; flex-direction: column; justify-content: space-between; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s; }
  .mobile-menu.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .25s ease, transform .25s ease; }
  .mobile-menu ul { display: flex; flex-direction: column; }
  .mobile-menu li a { display: block; padding: 16px 0; font-size: 36px; font-weight: 500; letter-spacing: -0.02em; border-bottom: 1px solid var(--border-default); }
  .mobile-menu li a[aria-current="page"] { color: var(--text-accent); }
  .mobile-menu .mobile-menu-foot { display: flex; gap: 24px; font-size: 16px; font-weight: 500; }
  body.menu-open { overflow: hidden; }
  body.menu-open .site-header { background: var(--bg-page); box-shadow: none; }
}

/* Dotted backdrop: covers the nav and the hero only, ends where the hero ends */
.dotted { position: relative; }
.dotted::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; top: calc(var(--nav-h) * -1); z-index: -1; pointer-events: none;
  background-image: radial-gradient(circle at 12px 12px, var(--pattern-dot) 1.1px, transparent 1.6px); background-size: 24px 24px; }
@media (max-width: 640px) { .br-desktop { display: none; } }

/* ===== Home hero ===== */
.home-hero { position: relative; min-height: calc(828px - var(--nav-h)); }
.home-hero .container { position: relative; display: flex; align-items: flex-start; justify-content: space-between; padding-top: 127px; padding-bottom: 72px; }
.hero-copy { max-width: 560px; display: flex; flex-direction: column; gap: 26px; }
.hero-copy .head { display: flex; flex-direction: column; gap: 8px; }
.hero-title { font-size: 64px; font-weight: 700; line-height: 1.04; letter-spacing: -0.04em; }
.hero-lead { font-size: 18px; line-height: 1.6; max-width: 520px; }
.hero-copy .details { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }

.hero-art { --w: 307px; position: relative; flex: none; width: calc(var(--w) * 1.14); height: calc(var(--w) * 1.56); margin-right: 28px; }
.stamp { position: relative; }
.stamp img { width: 100%; height: auto; }
.blend-luminosity { mix-blend-mode: luminosity; }
.hero-art .stamp-main { position: absolute; left: 0; top: 0; width: var(--w); }
.hero-art .seal { position: absolute; left: calc(var(--w) * .697); top: calc(var(--w) * .938); width: calc(var(--w) * .443); }
.hero-art .signature { position: absolute; left: calc(var(--w) * .046); top: calc(var(--w) * 1.49); width: calc(var(--w) * .492); }

/* Desktop: hero plus the 120px logo band fill the first screen, like the Figma frame (828 + 120) */
@media (min-width: 901px) {
  .home-hero { min-height: max(520px, calc(100svh - var(--nav-h))); display: flex; align-items: center; }
  .home-hero .container { align-items: center; padding-top: 8px; padding-bottom: 16px; }
  .hero-art { --w: clamp(220px, calc((100svh - var(--nav-h) - 80px) / 1.56), 307px); }
  .hero-title { font-size: clamp(48px, calc((100svh - 96px) * .12), 64px); }
}
@media (min-width: 901px) and (max-width: 1100px) { .hero-art { --w: min(260px, clamp(200px, calc((100svh - var(--nav-h) - 80px) / 1.56), 307px)); margin-right: 0; } }
@media (max-width: 900px) {
  .home-hero { min-height: 0; }
  .home-hero .container { flex-direction: column-reverse; gap: 20px; padding-top: 32px; padding-bottom: 64px; }
  .hero-art { --w: 188px; margin: 0 0 0 7px; width: 220px; height: 280px; }
  .hero-art .seal { left: 126px; top: 184px; width: 93px; }
  .hero-art .signature { display: none; }
  .hero-copy { gap: 32px; }
}
@media (max-width: 640px) {
  .hero-title { font-size: 40px; line-height: 1.12; letter-spacing: -0.03em; }
  .hero-lead { font-size: 16px; line-height: 1.65; }
  .hero-copy .head { gap: 12px; }
  .hero-copy .details { gap: 24px; }
}

/* ===== Designed for band ===== */
.band { border-block: 1px solid var(--border-default); overflow: hidden; }
.band-inner { display: flex; align-items: center; gap: 40px; padding-block: 44px; padding-left: var(--gutter); max-width: calc(var(--container) + var(--gutter) * 2); margin-left: max(0px, calc((100% - var(--container) - var(--gutter) * 2) / 2)); }
.band-label { flex: none; width: 150px; font-family: var(--font-serif); font-weight: 500; font-size: 15px; line-height: 1.3; letter-spacing: 0.01em; }
.band-logos { flex: 1; min-width: 0; overflow: hidden; }
.band-track { display: flex; align-items: center; gap: 52px; width: max-content; animation: marquee 36s linear infinite; }
.band-track img { flex: none; width: auto; }
.band-logos:hover .band-track { animation-play-state: paused; }
.band-logos { -webkit-mask-image: linear-gradient(90deg, transparent, #000 48px, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(90deg, transparent, #000 48px, #000 calc(100% - 48px), transparent); }
@media (max-width: 640px) {
  .band-inner { gap: 24px; padding-block: 40px; padding-left: 24px; }
  .band-label { width: auto; font-size: 14px; }
  .band-track { gap: 48px; animation-duration: 28s; --half-gap: 24px; }
  .band-track img { transform: scale(.92); }
}
@keyframes marquee { to { transform: translateX(calc(-50% - 26px)); } }

/* ===== Section scaffolding ===== */
.section { padding-block: var(--section-y); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }

/* ===== Selected work (Home) ===== */
.selected { padding-top: 120px; padding-bottom: 64px; }
.case-list { display: flex; flex-direction: column; gap: 40px; }
.case-card { display: grid; grid-template-columns: 550fr 598fr; column-gap: 52px; align-items: start; }
.case-card .visual { border-radius: var(--radius-card); overflow: hidden; aspect-ratio: 550 / 350; background: var(--bg-subtle); }
.case-card .visual img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.case-card:hover .visual img { transform: scale(1.015); }
.case-card .body { display: flex; justify-content: space-between; gap: 24px; padding-top: 47px; }
.case-card .text { max-width: 460px; display: flex; flex-direction: column; gap: 32px; }
.case-card .text-top { display: flex; flex-direction: column; gap: 24px; }
.case-card .title-block { display: flex; flex-direction: column; gap: 8px; }
.case-card h3 { font-size: 42px; font-weight: 600; line-height: 1.15; letter-spacing: -0.03em; max-width: 440px; }
.case-card .desc { color: var(--text-secondary); line-height: 1.55; }
@media (max-width: 1100px) { .case-card h3 { font-size: 34px; } .case-card .body { padding-top: 16px; } }
@media (max-width: 760px) {
  .selected { padding-top: 48px; padding-bottom: 48px; }
  .case-list { gap: 48px; }
  .case-card { grid-template-columns: 1fr; row-gap: 20px; }
  .case-card .body { padding-top: 0; }
  .case-card .text { gap: 20px; }
  .case-card .text-top { gap: 12px; }
  .case-card h3 { font-size: 22px; line-height: 1.2; letter-spacing: -0.02em; }
  .case-card .desc { font-size: 14px; }
  .case-card .circle-btn { width: 40px; height: 40px; }
  .case-card .chip { font-size: 10px; padding: 5px 10px; }
}

/* ===== Letters (In their words) ===== */
.letters { padding-block: 64px; overflow: hidden; }
.pager { display: flex; align-items: center; gap: 12px; }
.pager .count { font-size: 12px; letter-spacing: 0.06em; color: var(--text-secondary); font-variant-numeric: tabular-nums; margin-right: 0; }
.pager button { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--border-default); border-radius: var(--radius-pill); font-size: 20px; font-weight: 500; line-height: 1; transition: opacity .2s ease, background-color .2s ease; }
.pager button:hover:not(:disabled) { background: var(--bg-surface); }
.pager button:disabled { opacity: .35; cursor: default; }
.letter-track { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.letter-track::-webkit-scrollbar { display: none; }
.letter { flex: none; width: 588px; scroll-snap-align: start; background: var(--bg-inverse-raised); color: var(--text-inverse); border-radius: var(--radius-letter); padding: 36px; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; min-height: 545px; }
.letter .quote { display: flex; flex-direction: column; gap: 20px; }
.letter .mark { font-size: 64px; font-weight: 600; line-height: .8; color: var(--text-accent-on-dark); height: 36px; }
.letter .excerpt { font-size: 20px; line-height: 1.55; letter-spacing: -0.01em; display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden; }
.letter .excerpt p + p { margin-top: 1.55em; }
.letter .read { align-self: flex-start; font-size: 12px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-accent-on-dark); white-space: pre; padding-block: 4px; }
.letter .read:hover { text-decoration: underline; text-underline-offset: 3px; }
.letter .from { border-top: 1px solid var(--border-on-dark); padding-top: 28px; display: flex; justify-content: space-between; align-items: flex-start; }
.person { display: flex; flex-direction: column; gap: 12px; }
.person .who { display: flex; flex-direction: column; gap: 5px; }
.person .name { font-size: 20px; font-weight: 500; }
.person .role { color: var(--text-inverse-secondary); }
.person .relation { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-inverse-secondary); }
.person .relation img { width: 14px; height: 14px; }
.linkedin-mark { width: 18px; height: 18px; opacity: .9; }
@media (max-width: 760px) {
  .letters { padding-block: 48px; }
  .letters .pager { display: none; }
  .letter-track { margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); gap: 12px; }
  .letter { width: min(320px, 82vw); min-height: 0; padding: 28px 24px; border-radius: 16px; }
  .letter .excerpt { font-size: 16px; -webkit-line-clamp: 9; }
  .letter .mark { font-size: 48px; height: 28px; }
  .person .name { font-size: 18px; }
  .person .role { font-size: 14px; }
}

/* Letter drawer */
.drawer { position: fixed; inset: 0; z-index: 80; margin: 0; padding: 0; border: 0; width: 100%; height: 100%; max-width: none; max-height: none; background: transparent; display: flex; justify-content: flex-end; }
.drawer:not([open]) { display: none; }
.drawer::backdrop { background: rgba(20, 20, 20, .45); }
.drawer-panel { width: min(640px, 100%); height: 100%; background: var(--bg-inverse-raised); color: var(--text-inverse); display: flex; flex-direction: column; animation: drawer-in .35s cubic-bezier(.2,.7,.2,1); }
@keyframes drawer-in { from { transform: translateX(40px); opacity: 0; } }
.drawer-top { display: flex; align-items: center; justify-content: space-between; padding: 24px 36px; border-bottom: 1px solid var(--border-on-dark); }
.drawer-top .pager .count { color: var(--text-inverse-secondary); }
.drawer-top .pager button { border-color: var(--border-on-dark); color: var(--text-inverse); }
.drawer-top .pager button:hover:not(:disabled) { background: #26241f; }
.drawer-close { font-size: 12px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--text-accent-on-dark); padding: 12px 0; }
.drawer-body { flex: 1; overflow-y: auto; padding: 40px 36px 48px; display: flex; flex-direction: column; gap: 32px; }
.drawer-body .mark { font-size: 64px; font-weight: 600; line-height: .8; color: var(--text-accent-on-dark); height: 36px; }
.drawer-body .full { font-size: 18px; line-height: 1.65; letter-spacing: -0.005em; }
.drawer-body .full p + p { margin-top: 1.1em; }
.drawer-body .from { border-top: 1px solid var(--border-on-dark); padding-top: 28px; display: flex; justify-content: space-between; align-items: flex-start; }
@media (max-width: 640px) { .drawer-top { padding: 16px 20px; } .drawer-body { padding: 28px 20px 40px; } .drawer-body .full { font-size: 16px; } }

/* ===== How I work ===== */
.how { padding-block: 64px; }
.how .section-title { margin-bottom: 40px; }
.how-row { display: flex; gap: 40px; align-items: flex-start; padding-block: 28px; border-top: 1px solid var(--border-default); }
.how-row:last-child { border-bottom: 1px solid var(--border-default); }
.how-row .num { flex: none; width: 48px; font-family: var(--font-serif); font-size: 15px; color: var(--text-tertiary); line-height: 1.6; }
.how-row .head { flex: none; width: 420px; }
.how-row .q { display: none; font-size: 14px; color: var(--text-secondary); margin-bottom: 4px; }
.how-row h3 { font-size: 24px; font-weight: 500; line-height: 1.2; letter-spacing: -0.01em; }
.how-row p.desc { flex: 1; min-width: 0; color: var(--text-secondary); line-height: 1.6; }
@media (max-width: 960px) { .how-row .head { width: 300px; } }
@media (max-width: 640px) {
  .how { padding-block: 48px; }
  .how .section-title { margin-bottom: 24px; }
  .how-list { display: flex; flex-direction: column; gap: 40px; }
  .how-row { flex-direction: column; gap: 16px; padding: 0; border: 0; }
  .how-row:last-child { border: 0; }
  .how-row .num { display: none; }
  .how-row .head { width: auto; }
  .how-row .q { display: block; }
  .how-row h3 { font-size: 20px; letter-spacing: -0.02em; }
  .how-row p.desc { color: var(--text-body); line-height: 1.55; }
}

/* ===== Experience (Home) ===== */
.experience { padding-block: 64px; }
.exp-links { display: flex; gap: 24px; font-weight: 500; line-height: 27px; }
.exp-row { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-block: 20px; border-bottom: 1px solid var(--border-default); }
.exp-row .left { display: flex; flex-direction: column; gap: 5px; }
.exp-row .company { font-size: 18px; font-weight: 500; line-height: 27px; }
.exp-row .role { font-size: 12px; letter-spacing: 0.04em; color: var(--text-body); }
.exp-row .right { display: flex; gap: 24px; font-size: 14px; line-height: 20px; white-space: nowrap; }
.exp-row .loc { width: 220px; text-align: right; color: var(--text-secondary); opacity: .7; }
.exp-row .dates { font-variant-numeric: tabular-nums; }
.exp-more { display: inline-block; padding-block: 20px; font-size: 12px; letter-spacing: 0.04em; color: var(--text-body); }
.exp-more:hover { color: var(--text-primary); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 640px) {
  .experience { padding-block: 48px; }
  .experience .section-head { flex-direction: column; align-items: flex-start; gap: 24px; }
  .exp-links { font-size: 14px; }
  .exp-row { flex-direction: column; align-items: flex-start; gap: 8px; }
  .exp-row .company { font-size: 16px; line-height: 1.4; }
  .exp-row .right { flex-direction: row-reverse; justify-content: flex-end; gap: 12px; font-size: 12px; }
  .exp-row .loc { width: auto; text-align: left; }
}

/* ===== Contact card + footer ===== */
.contact { padding-bottom: 72px; }
.contact-card { background: var(--bg-inverse); color: var(--text-inverse); border-radius: var(--radius-contact); padding: 64px 72px; display: flex; flex-direction: column; gap: 52px; }
.contact-card h2 { font-size: 52px; font-weight: 400; line-height: 1.25; letter-spacing: -0.005em; max-width: 900px; }
.contact-card h2 em { font-style: normal; color: var(--text-highlight-on-dark); }
.contact-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 14px 22px; border-radius: var(--radius-pill); font-weight: 500; line-height: normal; white-space: pre; transition: background-color .2s ease, color .2s ease; }
.pill-light { background: var(--bg-page); color: var(--text-primary); }
.pill-light:hover { background: #fff; }
.pill-ghost { color: var(--text-link-on-dark); padding-inline: 14px; }
.pill-ghost:hover { background: #26241f; }
.site-footer { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-top: 64px; color: var(--text-secondary); }
.site-footer nav { display: flex; gap: 32px; }
.site-footer a:hover { color: var(--text-primary); }
@media (max-width: 760px) { .contact-card { padding: 48px 40px; } .contact-card h2 { font-size: 40px; } }
@media (max-width: 640px) {
  .contact { padding-bottom: 48px; }
  .contact-card { padding: 32px 24px 24px; gap: 24px; border-radius: 24px; }
  .contact-card h2 { font-size: 36px; line-height: 1.2; }
  .contact-actions { gap: 0 8px; }
  .contact-actions .pill-ghost { padding: 12px 0; margin-right: 16px; font-size: 14px; }
  .contact-actions .pill-light { order: 3; width: 100%; justify-content: center; margin-top: 24px; }
  .site-footer { flex-direction: column; align-items: flex-start; gap: 16px; margin-top: 32px; font-size: 15px; }
  .site-footer nav { gap: 24px; }
}

/* ===== About hero ===== */
.about-hero { position: relative; }
.about-stage { position: relative; height: calc(751px - var(--nav-h)); max-width: 1440px; margin-inline: auto; }
.about-stage .corner { position: absolute; top: 18px; }
.about-stage .corner.left { left: 120px; }
.about-stage .corner.right { right: 136px; top: 16px; }
.about-stage figure { position: absolute; display: flex; flex-direction: column; gap: 4px; }
.about-stage figcaption { padding-left: 10px; }
.about-stage .s-mayk { left: 301px; top: 19px; width: 150px; }
.about-stage .s-osman { left: 1081px; top: 187px; width: 150px; }
.about-stage .s-child { left: 103px; top: 363px; width: 150px; }
.about-stage .s-portrait { left: 567px; top: 62px; width: 307px; }
.about-stage .s-portrait img { width: 307px; }
.about-stage .caption { position: absolute; left: 0; right: 0; top: 534px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.about-stage .caption .kicker { color: var(--text-primary); }
@media (max-width: 1439px) {
  .about-stage { width: 100%; }
  .about-stage .s-mayk { left: 20.9%; } .about-stage .s-osman { left: auto; right: 14.5%; } .about-stage .s-child { left: 7.2%; }
  .about-stage .s-portrait { left: 50%; margin-left: -153px; }
  .about-stage .corner.left { left: var(--gutter); } .about-stage .corner.right { right: var(--gutter); }
}
@media (max-width: 900px) {
  .about-stage { height: auto; padding: 16px var(--gutter) 40px; display: grid; grid-template-columns: 1fr 160px 1fr; grid-template-rows: auto auto auto; align-items: start; column-gap: 12px; }
  .about-stage .corner { position: static; grid-row: 1; }
  .about-stage .corner.left { grid-column: 1 / 3; }
  .about-stage .corner.right { grid-column: 3; justify-self: end; }
  .about-stage figure { position: static; width: auto !important; margin: 0 !important; }
  .about-stage .s-child { display: none; }
  .about-stage .s-mayk { grid-column: 1; grid-row: 2; justify-self: end; width: 72px !important; margin-top: 48px !important; }
  .about-stage .s-portrait { grid-column: 2; grid-row: 2; margin-top: 20px !important; }
  .about-stage .s-portrait img { width: 160px; }
  .about-stage .s-osman { grid-column: 3; grid-row: 2; width: 74px !important; margin-top: 120px !important; }
  .about-stage figcaption { padding-left: 4px; font-size: 9px; }
  .about-stage .caption { position: static; grid-column: 1 / -1; grid-row: 3; margin-top: 12px; gap: 6px; }
  .about-stage .caption .kicker { font-size: 11px; max-width: 180px; line-height: 1.6; }
  .about-stage .caption .serif-note { display: none; }
}

/* ===== About experience ===== */
.about-intro { padding-top: 40px; padding-bottom: 120px; }
.about-intro > * + * { margin-top: 120px; }
.role-item { display: flex; gap: 48px; padding-block: 32px; border-top: 1px solid var(--border-default); }
.role-item:first-child { border-top: 0; }
.role-item .company { flex: none; width: 440px; display: flex; flex-direction: column; gap: 4px; }
.role-item .company h3 { font-size: 22px; font-weight: 500; line-height: 1.15; letter-spacing: -0.02em; }
.role-item .company .place { font-size: 12px; color: var(--text-tertiary); }
.role-item .detail { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.role-item .title-line { font-weight: 500; white-space: pre-wrap; }
.role-item .place-mobile { display: none; }
.role-item .story { display: flex; flex-direction: column; gap: 10px; font-size: 13px; line-height: 1.55; color: var(--text-secondary); margin-top: -4px; }
.role-item .chip-list { gap: 8px; padding-top: 6px; }
.role-item .chip { font-size: 12px; font-weight: 400; text-transform: none; letter-spacing: 0; padding: 4px 10px; }
@media (max-width: 1100px) { .role-item .company { width: 300px; } }
@media (max-width: 760px) {
  .about-intro { padding-top: 24px; padding-bottom: 72px; }
  .about-intro > * + * { margin-top: 72px; }
  .role-item { flex-direction: column; gap: 4px; padding-block: 32px; }
  .role-item .company { width: auto; }
  .role-item .company h3 { font-size: 20px; }
  .role-item .company .place { display: none; }
  .role-item .detail { gap: 16px; }
  .role-item .title-line { font-size: 14px; }
  .role-item .place-mobile { display: block; font-size: 14px; color: var(--text-secondary); margin-top: 8px; }
  .role-item .story { margin-top: 0; }
}

/* ===== Projects by industry ===== */
.industry { background: var(--bg-inverse); color: var(--text-inverse); border-radius: var(--radius-feature); padding: 56px; display: flex; flex-direction: column; gap: 40px; }
.industry-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.industry-head h2 { font-size: 42px; font-weight: 500; letter-spacing: -0.03em; line-height: normal; }
.industry-head .sub { font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-inverse-secondary); margin-top: 10px; }
.industry-head .note { font-size: 12px; letter-spacing: 0.03em; text-transform: uppercase; color: var(--text-inverse-secondary); text-align: right; }
.industry-bar { display: flex; gap: 4px; }
.industry-seg { min-width: 22px; display: flex; flex-direction: column; gap: 12px; text-align: left; }
.industry-seg .bar { height: 12px; background: var(--pattern-bar); transition: background-color .2s ease; }
.industry-seg .n { font-size: 28px; font-weight: 500; letter-spacing: -0.03em; line-height: normal; padding-left: 4px; color: var(--text-inverse-secondary); opacity: .4; }
.industry-seg.small .n { font-size: 16px; }
.industry-seg .label { font-size: 14px; padding-left: 4px; color: var(--text-inverse-secondary); opacity: .4; white-space: nowrap; margin-top: -10px; }
.industry-seg.is-active .bar { background: var(--bg-accent); }
.industry-seg.is-active .n, .industry-seg.is-active .label { color: var(--text-inverse); opacity: 1; }
button.industry-seg:hover .n, button.industry-seg:hover .label { opacity: .8; }
.industry-projects { display: grid; grid-template-columns: repeat(4, 1fr); }
.industry-projects li { border-block: 1px solid var(--border-on-dark); padding-block: 16px; font-size: 14px; margin-top: -1px; }
@media (max-width: 1100px) { .industry-seg .label { font-size: 12px; } .industry-projects { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) { .industry-wrap { display: none; } }

/* About experience toggle */
.roles-toggle { margin-left: 488px; padding-top: 24px; font-size: 15px; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; white-space: pre; }
@media (max-width: 1100px) { .roles-toggle { margin-left: 348px; } }
@media (max-width: 760px) { .roles-toggle { margin-left: 0; } }

/* ===== Works ===== */
.works-hero .container { display: flex; justify-content: space-between; align-items: center; gap: 40px; padding-top: 24px; padding-bottom: 24px; min-height: 178px; }
.works-hero h1 { font-size: 80px; font-weight: 700; line-height: 104px; letter-spacing: -0.04em; }
.works-hero p { max-width: 575px; font-size: 14px; line-height: 21px; letter-spacing: 0.03em; text-align: right; padding-top: 26px; }
.all-work { padding-top: 40px; padding-bottom: 40px; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.filter { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border: 1px solid var(--border-default); border-radius: var(--radius-pill); font-weight: 500; line-height: normal; white-space: nowrap; transition: background-color .2s ease, color .2s ease, border-color .2s ease; }
.filter .n { font-size: 12px; font-weight: 400; color: var(--text-secondary); }
.filter:hover { border-color: var(--border-strong); }
.filter[aria-pressed="true"] { background: var(--bg-inverse); border-color: var(--bg-inverse); color: var(--text-inverse); }
.filter[aria-pressed="true"] .n { color: #bdb7aa; }
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 24px; row-gap: 72px; }
.work-card { display: flex; flex-direction: column; gap: 24px; }
.work-card[hidden] { display: none; }
.work-card .visual { border-radius: var(--radius-card); overflow: hidden; aspect-ratio: 588 / 334; background: var(--bg-subtle); }
.work-card .visual img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.work-card:hover .visual img { transform: scale(1.015); }
.work-card .body { display: flex; gap: 20px; align-items: flex-start; }
.work-card .text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.work-card .title-block { display: flex; flex-direction: column; gap: 8px; }
.work-card .tags { display: flex; flex-wrap: wrap; font-size: 12px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-secondary); }
.work-card .tags li + li::before { content: "\00b7"; margin-inline: 4px; }
.work-card h2 { font-size: 28px; font-weight: 600; line-height: 1.2; letter-spacing: -0.02em; max-width: 524px; }
.work-card .desc { color: var(--text-secondary); line-height: 1.55; }
.work-card .company { color: var(--text-secondary); }
.work-empty { color: var(--text-secondary); padding-block: 40px; }
@media (max-width: 960px) { .work-card h2 { font-size: 24px; } }
@media (max-width: 640px) {
  .works-hero .container { flex-direction: column; align-items: flex-start; gap: 8px; min-height: 0; padding-top: 16px; padding-bottom: 32px; }
  .works-hero h1 { font-size: 44px; line-height: 1.1; }
  .works-hero p { text-align: left; padding-top: 0; font-size: 14px; letter-spacing: 0.01em; }
  .all-work { padding-top: 8px; }
  .filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); margin-bottom: 24px; }
  .filters::-webkit-scrollbar { display: none; }
  .filter { padding: 8px 14px; font-size: 14px; }
  .work-grid { grid-template-columns: 1fr; row-gap: 48px; }
  .work-card { gap: 20px; }
  .work-card .text { gap: 12px; }
  .work-card .title-block { gap: 6px; }
  .work-card h2 { font-size: 22px; }
  .work-card .desc { font-size: 14px; }
  .work-card .circle-btn { width: 40px; height: 40px; }
  /* On mobile the company line moves to the top and the tags become chips */
  .work-card .text { display: flex; }
  .work-card .company { order: -1; }
  .work-card .tags { order: 3; gap: 6px; }
  .work-card .tags li { border: 1px solid var(--border-default); border-radius: var(--radius-pill); padding: 5px 10px; font-size: 10px; letter-spacing: 0.06em; }
  .work-card .tags li + li::before { content: none; }
}

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }
.how-about { padding-block: 0; }
.work-link { display: flex; flex-direction: column; gap: 24px; }
.work-card .text h2 { margin-top: -8px; }
.works-contact-gap { height: 60px; }
@media (max-width: 640px) {
  .work-link { gap: 20px; }
  .work-card .text h2 { margin-top: 0; }
  .works-contact-gap { height: 24px; }
}
.about-stage .corner { white-space: nowrap; }
@media (max-width: 640px) { .section-title { font-size: 26px; } .how .section-title, .experience .section-title { font-size: 26px; } }
.industry-projects[hidden] { display: none; }

/* Hero links and intro (replaces Experience on Home) */
.hero-links, .intro-links { display: flex; flex-wrap: wrap; gap: 24px; font-weight: 500; line-height: 27px; white-space: pre; }
.intro { padding-block: 64px; }
.intro-text { font-size: 39px; line-height: 1.7; letter-spacing: -0.01em; color: var(--text-secondary); }
.intro-text b { font-weight: 500; color: var(--text-primary); }
.intro-links { margin-top: 40px; }
@media (max-width: 960px) { .intro-text { font-size: 30px; line-height: 1.6; } }
@media (max-width: 640px) {
  .intro { padding-block: 48px; }
  .intro-text { font-size: 22px; line-height: 1.6; }
  .intro-links { margin-top: 24px; gap: 16px; }
}

/* Stamps lift a little on hover */
.hero-art .stamp-main, .hero-art .seal, .about-stage figure img { transition: transform .45s cubic-bezier(.2,.7,.2,1); transform-origin: center; }
@media (hover: hover) {
  .hero-art .stamp-main:hover, .about-stage figure img:hover { transform: scale(1.09); }
  .hero-art .seal:hover { transform: scale(1.14) rotate(-6deg); }
}
.role-item[hidden] { display: none; }
