:root {
  --bg: #ffffff;
  --alt: #f5f5f5;
  --ink: #111111;
  --muted: #6b6b6b;
  --line: #e6e6e6;
  --ease: cubic-bezier(.23, 1, .32, 1);
  --ease2: cubic-bezier(.7, 0, .2, 1);
  --sans: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { width: min(1180px, 100% - 2.5rem); margin-inline: auto; }

/* ---- header ---- */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 30; transition: transform .45s var(--ease), background .3s, border-color .3s; border-bottom: 1px solid transparent; }
.site-header.stuck { background: rgba(255,255,255,.9); backdrop-filter: blur(12px); border-bottom-color: var(--line); }
.site-header.hide { transform: translateY(-100%); }
.bar { display: flex; align-items: center; justify-content: space-between; padding: 1.1rem 0; gap: 1rem; }
.brand { font-size: 1.05rem; font-weight: 500; text-decoration: none; letter-spacing: -.01em; }
.brand span { color: var(--muted); }
nav { display: flex; align-items: center; gap: 2rem; }
nav > a, .has-sub > a { text-decoration: none; font-size: .9rem; color: var(--muted); position: relative; padding: .3rem 0; transition: color .2s; }
nav > a::after, .has-sub > a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
nav > a:hover, nav > a[aria-current="page"], .has-sub > a:hover, .has-sub > a[aria-current="page"] { color: var(--ink); }
nav > a:hover::after, nav > a[aria-current="page"]::after, .has-sub > a:hover::after { transform: scaleX(1); transform-origin: left; }
nav > a.btn::after { display: none; }
nav a.btn { color: #fff; }
.has-sub { position: relative; }
.has-sub small { font-size: .8rem; opacity: .6; }
.sub { position: absolute; top: 100%; left: -1rem; min-width: 190px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: .5rem; opacity: 0; visibility: hidden; transform: translateY(10px); box-shadow: 0 18px 40px rgba(0,0,0,.06); }
.has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { display: block; padding: .5rem .8rem; border-radius: 8px; text-decoration: none; font-size: .9rem; color: var(--muted); transition: background .2s, color .2s, padding .25s var(--ease); }
.sub a:hover { background: var(--alt); color: var(--ink); padding-left: 1.1rem; }
.menu { display: none; background: none; border: 1px solid var(--line); color: var(--ink); padding: .4rem .9rem; border-radius: 999px; font: inherit; font-size: .85rem; cursor: pointer; }

/* ---- buttons ---- */
.btn { display: inline-flex; align-items: center; gap: .6rem; background: var(--ink); color: #fff; padding: .85rem 1.6rem; border-radius: 999px; text-decoration: none; font-size: .95rem; font-weight: 500; border: 1px solid var(--ink); position: relative; overflow: hidden; isolation: isolate; transition: color .35s; }
.btn i { font-style: normal; display: inline-block; transition: transform .35s var(--ease); }
.btn:hover i { transform: translateX(5px); }
.btn::before { content: ''; position: absolute; inset: 0; background: #444; transform: translateY(101%); transition: transform .4s var(--ease2); z-index: -1; border-radius: 50% 50% 0 0 / 100% 100% 0 0; }
.btn:hover::before { transform: translateY(0); border-radius: 0; }
.btn-ghost { background: transparent; color: var(--ink); border-color: #cfcfcf; }
.btn-ghost::before { background: var(--ink); }
.btn-ghost:hover { color: #fff; border-color: var(--ink); }
.btn-sm { padding: .5rem 1.2rem; font-size: .85rem; }
.link { text-decoration: none; font-weight: 500; font-size: .95rem; background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 100% 1px; padding-bottom: 2px; transition: background-size .4s var(--ease); display: inline-block; }
.link:hover { background-size: 0 1px; background-position: 100% 100%; }

/* ---- type ---- */
h1, h2, h3 { font-weight: 500; line-height: 1.05; margin: 0; letter-spacing: -.035em; }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: 1.2rem; letter-spacing: -.02em; }
.mega { font-size: clamp(3.6rem, 14.5vw, 12.5rem); line-height: .88; letter-spacing: -.06em; margin: clamp(2rem, 6vw, 4rem) 0 0; }
.mid { font-size: clamp(2.6rem, 8vw, 6.5rem); line-height: .95; letter-spacing: -.05em; }
.line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.line > span { display: block; }
.js .line > span { transform: translateY(105%); transition: transform 1.1s var(--ease2); }
.js body.loaded .line > span { transform: none; }
.js body.loaded .line:nth-child(2) > span { transition-delay: .12s; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 36rem; margin: 1.6rem 0 0; }
.big { font-size: clamp(1.4rem, 2.6vw, 1.9rem); line-height: 1.3; letter-spacing: -.02em; margin-top: 0; font-weight: 500; }
.para { color: var(--muted); max-width: 34rem; }
.dot { display: inline-block; width: .5rem; height: .5rem; border-radius: 50%; background: var(--ink); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(17,17,17,.35); } 70%, 100% { box-shadow: 0 0 0 8px rgba(17,17,17,0); } }
.actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 2rem; }
.sec-label { display: flex; align-items: center; gap: .8rem; font-size: .8rem; color: var(--muted); margin: 0 0 1.4rem; text-transform: uppercase; letter-spacing: .1em; }
.sec-label span { color: var(--ink); }

/* ---- reveal ---- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease) var(--d, 0s), transform .9s var(--ease) var(--d, 0s); }
.js [data-reveal].in { opacity: 1; transform: none; }
.js body.loaded .hero [data-reveal] { opacity: 1; transform: none; }
.js .frame { clip-path: inset(0 0 100% 0); transition: clip-path 1.2s var(--ease2); }
.js .frame.in { clip-path: inset(0 0 0 0); }

/* ---- layout ---- */
.hero { padding: clamp(7rem, 14vw, 10rem) 0 clamp(2rem, 4vw, 3rem); }
.hero-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; }
.hero-tag { max-width: 30rem; color: var(--muted); font-size: 1.05rem; margin: 0; }
.hero-top .actions { margin-top: 0; }
.hero-meta { display: flex; flex-wrap: wrap; gap: .6rem 2.4rem; margin-top: 1.6rem; padding-top: 1.2rem; border-top: 1px solid var(--line); font-size: .9rem; color: var(--muted); }
.avail { display: inline-flex; align-items: center; gap: .6rem; color: var(--ink); }
.covers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; margin-top: clamp(2rem, 5vw, 4rem); align-items: start; }
.cover { display: block; transform: translateY(var(--py, 0)); will-change: transform; }
.cover:nth-child(even) { margin-top: 3rem; }
.page-head { padding: clamp(8rem, 14vw, 11rem) 0 1rem; }
.block { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 1rem 2rem; margin-bottom: 2.5rem; }
.sec-head p { margin: 0; color: var(--muted); max-width: 22rem; }
.two-col { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.about-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.rows { list-style: none; padding: 0; margin: 0; }
.rows li { display: grid; grid-template-columns: 2.5rem 1fr auto; gap: 1rem; align-items: baseline; padding: 1.3rem 0; border-top: 1px solid var(--line); transition: padding .4s var(--ease), background .3s; }
.rows li:last-child { border-bottom: 1px solid var(--line); }
.rows li:hover { padding-left: .8rem; }
.rows em { font-style: normal; color: var(--muted); font-size: .8rem; }
.rows span { color: var(--muted); font-size: .9rem; }

/* ---- services cards ---- */
.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.svc { text-decoration: none; background: var(--alt); border-radius: 16px; padding: .8rem .8rem 1.6rem; display: flex; flex-direction: column; gap: .6rem; transition: transform .5s var(--ease), background .3s; }
.js .svc[data-reveal].in { transition: transform .5s var(--ease), background .3s, opacity .9s var(--ease) var(--d, 0s); }
.svc:hover { transform: translateY(-8px); background: #eee; }
.svc .pat { height: 170px; border-radius: 10px; background-color: #fff; transition: background-position .8s var(--ease), background-size .8s var(--ease); margin-bottom: .6rem; }
.svc .n { font-size: .75rem; color: var(--muted); padding: 0 .8rem; }
.svc h3, .svc p { padding: 0 .8rem; margin: 0; }
.svc p { color: var(--muted); font-size: .92rem; }
.p1 { background-image: linear-gradient(#d9d9d9 1px, transparent 1px), linear-gradient(90deg, #d9d9d9 1px, transparent 1px); background-size: 24px 24px; }
.svc:hover .p1 { background-size: 34px 34px; background-position: 8px 8px; }
.p2 { background-image: radial-gradient(#bdbdbd 2px, transparent 2.5px); background-size: 18px 18px; }
.svc:hover .p2 { background-size: 26px 26px; background-position: 9px 9px; }
.p3 { background-image: repeating-linear-gradient(45deg, #dedede 0 2px, transparent 2px 14px); background-size: 100% 100%; background-position: 0 0; }
.svc:hover .p3 { background-image: repeating-linear-gradient(45deg, #cfcfcf 0 2px, transparent 2px 22px); }
.p4 { background-image: repeating-radial-gradient(circle at 70% 70%, #d6d6d6 0 2px, transparent 2px 16px); }
.svc:hover .p4 { background-image: repeating-radial-gradient(circle at 30% 30%, #c9c9c9 0 2px, transparent 2px 24px); }

/* ---- features ---- */
.feat { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: center; padding: clamp(1.5rem, 4vw, 3rem) 0; border-top: 1px solid var(--line); }
.feat:nth-child(even) { grid-template-columns: 1fr 1.4fr; }
.feat:nth-child(even) .frame { order: 2; }
.frame { display: block; aspect-ratio: 16 / 11; border-radius: 14px; overflow: hidden; background: var(--alt); position: relative; }
.frame img { position: absolute; left: 0; top: -9%; width: 100%; height: 118%; object-fit: cover; transform: translateY(var(--py, 0)); transition: filter .4s; }
.frame:hover img { filter: brightness(.94); }
.feat-text .n { font-size: .8rem; color: var(--muted); display: block; margin-bottom: .6rem; }
.feat-text h3 { font-size: clamp(1.6rem, 3vw, 2.3rem); letter-spacing: -.03em; }
.feat-text p { color: var(--muted); margin: .8rem 0 1.2rem; }
.feat-text .btn { margin-top: 1.4rem; }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.tags span { background: var(--alt); border-radius: 999px; padding: .25rem .85rem; font-size: .82rem; }

/* ---- grid ---- */
.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 2.2rem; }
.chip { font: inherit; font-size: .85rem; padding: .45rem 1.05rem; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; }
.chip:hover { color: var(--ink); border-color: #bdbdbd; transform: translateY(-2px); }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.2rem 1.4rem; }
.card { text-decoration: none; display: block; }
.thumb { aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: var(--alt); position: relative; }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card:hover .thumb img, .cover:hover .thumb img { transform: scale(1.06); }
.thumb.noimg { display: grid; place-items: center; }
.thumb.noimg::after { content: attr(data-initial); font-size: 4rem; font-weight: 500; color: #c9c9c9; }
.meta { padding: .9rem 0 0; display: flex; flex-direction: column; gap: .15rem; }
.meta span { font-size: .75rem; color: var(--muted); }
.meta h3 { font-size: 1.05rem; background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 0 1px; display: inline; transition: background-size .45s var(--ease); width: fit-content; }
.card:hover .meta h3 { background-size: 100% 1px; }
.empty { text-align: center; background: var(--alt); border-radius: 14px; padding: 3.5rem 1.5rem; }
.empty p { color: var(--muted); margin: .6rem 0 1.5rem; }

/* ---- marquee ---- */
.marquee-wrap { padding: clamp(2rem, 5vw, 4rem) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; }
.marquee { overflow: hidden; }
.marquee-track { display: flex; width: max-content; animation: slide 34s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.mq { display: flex; flex-shrink: 0; }
.mq span { font-size: clamp(2.2rem, 6vw, 4.5rem); font-weight: 500; letter-spacing: -.04em; color: #c8c8c8; padding: 0 2rem; white-space: nowrap; transition: color .3s; position: relative; }
.mq span::after { content: '✦'; position: absolute; right: -.5rem; top: 50%; transform: translateY(-50%); font-size: .4em; color: #d6d6d6; }
.mq span:hover { color: var(--ink); }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---- lists ---- */
.timeline { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.timeline li { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.timeline span { color: var(--muted); }
.service { display: grid; grid-template-columns: 1fr 1.4fr; gap: 2rem; padding: 2.5rem 0; border-top: 1px solid var(--line); }
.service:last-child { border-bottom: 1px solid var(--line); }
.idx { display: block; font-size: .8rem; color: var(--muted); margin-bottom: .6rem; }
.service p { margin-top: 0; }
.service ul { padding-left: 1.1rem; color: var(--muted); }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; counter-reset: s; }
.steps li { counter-increment: s; border-top: 1px solid var(--ink); padding-top: 1rem; display: flex; flex-direction: column; gap: .3rem; }
.steps li::before { content: '0' counter(s); color: var(--muted); font-size: .8rem; }
.steps span { color: var(--muted); font-size: .9rem; }
.steps.stacked { grid-template-columns: 1fr; margin-top: 1.5rem; }
.facts { background: var(--alt); border-radius: 16px; padding: 1.8rem; }
.facts h3 { font-size: .75rem; font-weight: 500; letter-spacing: .02em; color: var(--muted); margin: 1.4rem 0 .4rem; }
.facts h3:first-child { margin-top: 0; }
.facts p { margin: 0; }
.facts .timeline, .facts .timeline li { border-color: #dcdcdc; }
.facts .tags span { background: #fff; }
.cta { text-align: center; padding: clamp(4rem, 10vw, 8rem) 0; display: flex; flex-direction: column; align-items: center; gap: 1.8rem; }
.cta h2 { max-width: 16ch; font-size: clamp(2.2rem, 6vw, 4.5rem); letter-spacing: -.045em; }

/* ---- footer ---- */
.site-footer { background: var(--alt); padding: clamp(3rem, 7vw, 5rem) 0 2rem; }
.foot-top { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 1.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid #dcdcdc; }
.foot-top h2 { font-size: clamp(2.2rem, 6vw, 4.5rem); letter-spacing: -.045em; }
.foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1.5rem; padding: 2rem 0; }
.foot strong { font-weight: 500; }
.foot p { margin: .2rem 0 0; color: var(--muted); font-size: .9rem; }
.foot-links { display: flex; flex-wrap: wrap; gap: 1.4rem; align-items: center; }
.foot-links a { text-decoration: none; color: var(--muted); font-size: .9rem; transition: color .2s; }
.foot-links a:hover { color: var(--ink); }
.copy { color: var(--muted); font-size: .8rem; margin: 0; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .js [data-reveal], .js .line > span { opacity: 1 !important; transform: none !important; }
  .js .frame { clip-path: none !important; }
}

@media (max-width: 960px) {
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .covers { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .two-col, .service, .about-grid, .feat, .feat:nth-child(even) { grid-template-columns: 1fr; }
  .feat:nth-child(even) .frame { order: 0; }
}
@media (max-width: 680px) {
  .menu { display: inline-block; }
  nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: flex-start; padding: 1.2rem 1.25rem 1.6rem; background: #fff; border-bottom: 1px solid var(--line); gap: 1rem; }
  nav.open { display: flex; }
  .has-sub .sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 .5rem; }
  .has-sub small { display: none; }
  .svc-grid, .grid { grid-template-columns: 1fr; }
  .covers { grid-template-columns: 1fr 1fr; gap: .8rem; }
  .cover:nth-child(even) { margin-top: 1.5rem; }
  .steps { grid-template-columns: 1fr; }
  .rows li { grid-template-columns: 2rem 1fr; }
  .rows span { grid-column: 2; }
}
/* ---- contact form ---- */
.form { display: grid; gap: 1.1rem; margin-top: 1.5rem; }
.form label { display: grid; gap: .4rem; font-size: .85rem; color: var(--muted); }
.form input, .form select, .form textarea { font: inherit; font-size: 1rem; color: var(--ink); background: var(--alt); border: 1px solid transparent; border-radius: 12px; padding: .85rem 1rem; width: 100%; transition: border-color .25s, background .25s; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--ink); background: #fff; }
.form textarea { min-height: 160px; resize: vertical; }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form button.btn { cursor: pointer; font: inherit; font-size: .95rem; font-weight: 500; }
.form-note { color: var(--muted); font-size: .9rem; margin: 0; }
@media (max-width: 680px) { .form .row2 { grid-template-columns: 1fr; } }
/* ---- hero portrait ---- */
.hero-main { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: end; margin-top: clamp(1.5rem, 4vw, 3rem); }
.hero-main .mega { font-size: clamp(3.4rem, 11.5vw, 10rem); margin-top: 0; }
.portrait { margin: 0; justify-self: end; width: min(100%, 460px); }
.portrait-frame { aspect-ratio: 4 / 5; border-radius: 18px; overflow: hidden; background: var(--alt); position: relative; }
.portrait-frame img { position: absolute; left: 0; top: -5%; width: 100%; height: 110%; object-fit: cover; object-position: 50% 12%; filter: grayscale(1) contrast(1.04); transform: translateY(var(--py, 0)) scale(1.02); transition: filter .8s var(--ease), transform 1.2s var(--ease); }
.portrait-frame:hover img { filter: grayscale(0) contrast(1); transform: translateY(var(--py, 0)) scale(1.06); }
.js .portrait-frame { clip-path: inset(100% 0 0 0); transition: clip-path 1.3s var(--ease2) .2s; }
.js body.loaded .portrait-frame { clip-path: inset(0 0 0 0); }
@media (max-width: 960px) {
  .hero-main { grid-template-columns: 1fr; }
  .portrait { justify-self: start; width: min(100%, 380px); }
}
@media (prefers-reduced-motion: reduce) { .js .portrait-frame { clip-path: none !important; } }
/* ---- split hero (home) ---- */
:root { --gut: clamp(1.25rem, 4vw, 3.2rem); }
body[data-page="home"] .bar { width: 100%; max-width: none; margin: 0; padding-inline: var(--gut); justify-content: flex-start; gap: 3rem; }
body[data-page="home"] nav { flex: 1; }
body[data-page="home"] nav > a.btn { margin-left: auto; }
.hero-split { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; min-height: 100svh; }
.hero-left { background: #ededed; padding: clamp(7rem, 19vh, 11rem) var(--gut) clamp(1.8rem, 4vh, 2.8rem); display: flex; flex-direction: column; justify-content: space-between; gap: 3rem; min-width: 0; }
.hero-split .hero-tag { font-size: clamp(1.1rem, 1.65vw, 1.5rem); line-height: 1.5; max-width: 34rem; color: var(--muted); margin: 0; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1.6rem; margin-top: 2.2rem; }
.textlink { display: inline-flex; align-items: center; gap: .8rem; text-decoration: none; font-weight: 500; }
.ring { display: inline-grid; place-items: center; width: 2.2rem; height: 2.2rem; border: 1.5px solid var(--ink); border-radius: 50%; font-size: .95rem; transition: background .3s, color .3s, transform .4s var(--ease); }
.textlink:hover .ring { background: var(--ink); color: #fff; transform: translateX(4px); }
.rule { height: 1px; background: #d6d6d6; margin: 2.4rem 0; }
.socials { display: flex; gap: .9rem; }
.socials a { width: 3.1rem; height: 3.1rem; border-radius: 50%; border: 1px solid #d9d9d9; background: #f4f4f4; display: grid; place-items: center; text-decoration: none; font-weight: 600; font-size: .95rem; transition: background .3s, color .3s, transform .35s var(--ease), border-color .3s; }
.socials a:hover { background: var(--ink); color: #fff; border-color: var(--ink); transform: translateY(-3px); }
.hero-name { font-size: clamp(2.4rem, 5.6vw, 6.5rem); line-height: 1; letter-spacing: -.045em; margin: 0; white-space: nowrap; }
.hero-name .line { padding-bottom: .12em; margin-bottom: -.12em; }
.hero-role { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; margin: 1.2rem 0 0; color: var(--muted); font-size: .9rem; }
.hero-photo { margin: 0; position: relative; overflow: hidden; background: #d9d9d9; min-height: 100vh; min-height: 100svh; }
.hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 14%; filter: grayscale(1) contrast(1.04); transition: filter .9s var(--ease), transform 1.8s var(--ease); transform: scale(1.12); }
.hero-photo:hover img { filter: grayscale(0) contrast(1); }
.js .hero-photo { clip-path: inset(0 0 0 100%); transition: clip-path 1.4s var(--ease2); }
.js body.loaded .hero-photo { clip-path: inset(0 0 0 0); }
.js body.loaded .hero-photo img { transform: scale(1); }
.js body.loaded .hero-split [data-reveal] { opacity: 1; transform: none; }
@media (max-width: 960px) {
  .hero-split { grid-template-columns: 1fr; min-height: 0; }
  .hero-left { gap: 3.5rem; padding-bottom: 2.5rem; }
  .hero-photo { min-height: 0; aspect-ratio: 4 / 5; }
}
@media (max-width: 680px) {
  body[data-page="home"] .bar { justify-content: space-between; gap: 1rem; }
  body[data-page="home"] nav > a.btn { margin-left: 0; }
  .hero-name { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  .js .hero-photo { clip-path: none !important; }
  .hero-photo img { transform: none !important; }
}
/* ---- about section (home) ---- */
.about-sec { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(2rem, 7vw, 7rem); align-items: start; padding: clamp(4rem, 9vw, 8rem) 0; }
.about-photo { aspect-ratio: 5 / 6; overflow: hidden; background: var(--alt); position: relative; }
.about-photo img { position: absolute; left: 0; top: -6%; width: 100%; height: 112%; object-fit: cover; object-position: 50% 10%; filter: grayscale(1) contrast(1.04); transform: translateY(var(--py, 0)) scale(1.15); transform-origin: 50% 12%; transition: filter .9s var(--ease); }
.about-photo:hover img { filter: grayscale(0) contrast(1); }
.js .about-photo[data-reveal] { transform: none; clip-path: inset(0 0 100% 0); transition: clip-path 1.3s var(--ease2), opacity .6s var(--ease); }
.js .about-photo[data-reveal].in { clip-path: inset(0 0 0 0); }
.sec-label.dots { text-transform: none; letter-spacing: 0; font-size: 1rem; gap: .35rem; }
.sec-label.dots i { display: inline-block; width: .4rem; height: .4rem; border-radius: 50%; background: #9a9a9a; }
.sec-label.dots { align-items: center; }
.about-body h2 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); letter-spacing: -.04em; margin: .6rem 0 1.4rem; }
.about-para { color: var(--muted); font-size: 1.08rem; max-width: 36rem; margin: 0; }
.roles { list-style: none; padding: 0; margin: clamp(2rem, 5vw, 3.5rem) 0; }
.roles li { display: grid; grid-template-columns: 3.5rem 1fr auto; gap: 1rem; align-items: center; padding: 1.7rem 0; border-bottom: 1px solid var(--line); transition: padding .45s var(--ease); }
.roles li:hover { padding-left: .7rem; }
.roles em { font-style: normal; color: #8a8a8a; font-size: .95rem; }
.roles strong { font-weight: 400; font-size: clamp(1.15rem, 2.1vw, 1.8rem); letter-spacing: -.025em; line-height: 1.2; }
.roles span { color: var(--muted); font-size: .95rem; text-align: right; }
@media (max-width: 960px) {
  .about-sec { grid-template-columns: 1fr; }
  .about-photo { aspect-ratio: 4 / 5; max-width: 480px; }
}
@media (max-width: 560px) {
  .roles li { grid-template-columns: 2.2rem 1fr; }
  .roles span { grid-column: 2; text-align: left; }
}
@media (prefers-reduced-motion: reduce) { .js .about-photo[data-reveal] { clip-path: none !important; } }
/* ---- services section (home) ---- */
.services-sec { padding: clamp(4rem, 9vw, 8rem) 0; }
.center-head { text-align: center; display: flex; flex-direction: column; align-items: center; }
.center-head .sec-label { margin-bottom: 0; }
.center-head h2 { font-size: clamp(2.2rem, 5vw, 4rem); letter-spacing: -.04em; margin: .8rem 0 1rem; max-width: 18ch; }
.center-head p { color: var(--muted); max-width: 36rem; margin: 0; }
.svc2-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; max-width: 1020px; margin: clamp(2.5rem, 6vw, 4.5rem) auto 0; }
.svc2 { aspect-ratio: 1 / 1; padding: 1.5rem; display: flex; flex-direction: column; justify-content: space-between; text-decoration: none; position: relative; overflow: hidden; color: var(--ink); }
.s1 { grid-column: 1; grid-row: 1; background: #f3f3f3; }
.s2 { grid-column: 2; grid-row: 1; background: #e9e9e9; }
.s3 { grid-column: 2; grid-row: 2; background: #dddddd; }
.s4 { grid-column: 3; grid-row: 2; background: #f6f6f6; }
.svc2 h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); font-weight: 500; letter-spacing: -.03em; margin: 0 0 .7rem; }
.svc2 p { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.6; }
.svc2 .burst { transition: transform .9s var(--ease); transform-origin: 50% 50%; }
.svc2 .go { position: absolute; top: 1.3rem; right: 1.4rem; font-size: 1.3rem; opacity: 0; transform: translate(-6px, 6px); transition: opacity .35s, transform .45s var(--ease); }
.svc2:hover .go { opacity: 1; transform: none; }
.svc2:hover .burst { transform: rotate(90deg); }
.js .svc2[data-reveal] .burst { transform: rotate(-60deg); transition: transform 1.4s var(--ease2) .3s; }
.js .svc2[data-reveal].in .burst { transform: rotate(0deg); }
.js .svc2[data-reveal].in { transition: transform .5s var(--ease), filter .3s, opacity .9s var(--ease) var(--d, 0s); }
.js .svc2[data-reveal].in:hover { transform: translateY(-8px); filter: brightness(.97); }
.js .svc2[data-reveal].in:hover .burst { transform: rotate(90deg); transition: transform .9s var(--ease); }
@media (max-width: 960px) {
  .svc2-grid { grid-template-columns: repeat(2, 1fr); }
  .s1, .s2, .s3, .s4 { grid-column: auto; grid-row: auto; }
}
@media (max-width: 560px) {
  .svc2-grid { grid-template-columns: 1fr; }
  .svc2 { aspect-ratio: auto; min-height: 260px; gap: 2.5rem; }
}
@media (prefers-reduced-motion: reduce) { .js .svc2[data-reveal] .burst { transform: none !important; } }
/* ---- about photo: simpler, safer reveal ---- */
.js .about-photo[data-reveal] { clip-path: none; transform: translateY(28px); transition: opacity .9s var(--ease) var(--d, 0s), transform .9s var(--ease) var(--d, 0s); }
.js .about-photo[data-reveal].in { transform: none; }
/* ---- projects section (home) ---- */
.wrap-wide { width: min(1320px, 100% - 2 * var(--gut)); margin-inline: auto; }
.proj-sec { background: #1b1b1b; color: #fff; padding: clamp(4rem, 9vw, 7.5rem) 0; }
.proj-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; flex-wrap: wrap; padding-bottom: clamp(2rem, 4vw, 3rem); border-bottom: 1px solid rgba(255,255,255,.14); }
.proj-sec .sec-label { color: rgba(255,255,255,.6); margin-bottom: 0; }
.proj-sec .sec-label.dots i { background: rgba(255,255,255,.55); }
.proj-head h2 { font-size: clamp(2.2rem, 5vw, 4rem); letter-spacing: -.04em; margin-top: .7rem; color: #fff; }
.pill { background: #fff; color: #111; border-radius: 999px; padding: .85rem 1.7rem; text-decoration: none; font-weight: 500; transition: transform .35s var(--ease), background .3s; }
.pill:hover { transform: translateY(-3px); background: #e6e6e6; }
.proj { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 6vw, 6rem); padding: clamp(2rem, 4.5vw, 4rem) 0; border-bottom: 1px solid rgba(255,255,255,.14); }
.proj:last-child { border-bottom: 0; padding-bottom: 0; }
.proj-img { display: block; aspect-ratio: 16 / 10; overflow: hidden; position: relative; background: #2a2a2a; }
.proj-img img { position: absolute; left: 0; top: -6%; width: 100%; height: 112%; object-fit: cover; transform: translateY(var(--py, 0)) scale(1.06); transition: filter .5s; }
.proj-img:hover img { filter: brightness(.9); }
.proj-img.noimg { display: grid; place-items: center; }
.proj-img.noimg::after { content: attr(data-initial); font-size: 4rem; font-weight: 500; color: #555; }
.proj-text { display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; min-width: 0; }
.proj-text .n { font-size: .8rem; color: rgba(255,255,255,.5); display: block; margin-bottom: .9rem; }
.proj-text h3 { font-size: clamp(1.7rem, 3.2vw, 2.7rem); letter-spacing: -.035em; line-height: 1.1; color: #fff; }
.proj-text p { color: rgba(255,255,255,.65); margin: 1rem 0 0; max-width: 30rem; }
.proj-foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem 2rem; flex-wrap: wrap; }
.ptags { display: flex; flex-wrap: wrap; gap: .5rem; }
.ptags span { border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.08); border-radius: 999px; padding: .35rem 1rem; font-size: .85rem; color: #fff; }
.proj-sec .textlink { color: #fff; }
.proj-sec .ring { border-color: #fff; }
.proj-sec .textlink:hover .ring { background: #fff; color: #111; }
@media (max-width: 860px) {
  .proj { grid-template-columns: 1fr; gap: 1.6rem; }
  .proj-text { gap: 1.6rem; }
}
/* ---- individual project pages ---- */
.mid-sm { font-size: clamp(2.2rem, 6vw, 4.8rem); line-height: 1.02; letter-spacing: -.045em; max-width: 18ch; }
.pp-back { font-size: .9rem; color: var(--muted); margin-bottom: 2rem; }
.pp-head .sec-label { margin-bottom: 1rem; }
.proj-hero { margin: clamp(1rem, 3vw, 2rem) 0 0; background: var(--alt); display: flex; justify-content: center; align-items: center; padding: clamp(1rem, 3vw, 2.5rem); }
.proj-hero img { max-width: 100%; max-height: 85vh; width: auto; height: auto; object-fit: contain; }
.next-proj { border-top: 1px solid var(--line); margin-top: clamp(2rem, 5vw, 4rem); }
.next-link { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: clamp(2rem, 5vw, 4rem) 0; text-decoration: none; }
.next-link small { display: block; font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; margin-bottom: .6rem; }
.next-link strong { display: block; font-size: clamp(1.7rem, 4.6vw, 3.4rem); font-weight: 500; letter-spacing: -.04em; line-height: 1.05; transition: transform .5s var(--ease); }
.next-link:hover strong { transform: translateX(12px); }
.next-link .ring { width: 3.4rem; height: 3.4rem; flex-shrink: 0; font-size: 1.1rem; }
.next-link:hover .ring { background: var(--ink); color: #fff; }
/* ---- project detail pages (template modelled on the reference layout) ---- */
.pd-head { padding-top: clamp(8rem, 14vw, 10.5rem); }
.pd-head h1 { font-size: clamp(2.2rem, 5.4vw, 4.4rem); letter-spacing: -.045em; line-height: 1.02; max-width: 20ch; }
.pd-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1.5rem 2rem; margin-top: clamp(2rem, 4vw, 3rem); padding: 1.6rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pd-meta small { display: block; font-size: .8rem; color: var(--muted); margin-bottom: .35rem; }
.pd-meta strong { font-weight: 500; font-size: 1.15rem; letter-spacing: -.01em; }
.pd-banner { margin: clamp(1.5rem, 3vw, 2.5rem) 0 0; background: var(--alt); display: flex; justify-content: center; align-items: center; padding: clamp(1rem, 3vw, 2.5rem); }
.pd-banner img { max-width: 100%; max-height: 85vh; width: auto; height: auto; object-fit: contain; }
.ov-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.ov-grid h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); letter-spacing: -.04em; line-height: 1.1; }
.ov-grid p { color: var(--muted); margin: 0 0 1.2rem; }
.cs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-top: clamp(1.5rem, 3vw, 2.5rem); }
.cs-card { padding: 1.6rem; min-height: 300px; display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; }
.cs-card:nth-child(1) { background: #f3f3f3; }
.cs-card:nth-child(2) { background: #e9e9e9; }
.cs-card:nth-child(3) { background: #dddddd; }
.cs-card h3 { font-size: 1.5rem; margin: 0 0 .6rem; }
.cs-card p { margin: 0; color: var(--muted); }
.shots { display: grid; gap: 1.4rem; margin-top: clamp(1.5rem, 3vw, 2.5rem); }
.shot { margin: 0; background: var(--alt); }
.shot img { width: 100%; height: auto; display: block; }
.proj-sec.recent { margin-top: clamp(3rem, 7vw, 6rem); }
@media (max-width: 860px) { .ov-grid, .cs-grid { grid-template-columns: 1fr; } }
/* ---- case study blocks ---- */
.sec-h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); letter-spacing: -.04em; line-height: 1.1; margin: .7rem 0 1rem; }
.sec-p { color: var(--muted); max-width: 40rem; margin: 0 0 2rem; }
.fact-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; border-top: 1px solid var(--line); padding-top: 1.6rem; }
.fact-row strong { display: block; font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 500; letter-spacing: -.05em; line-height: 1; }
.fact-row span { color: var(--muted); font-size: .9rem; }
.ia { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1rem; }
.ia-card { background: var(--alt); padding: 1.4rem; border-radius: 2px; }
.ia-card h3 { font-size: 1.15rem; margin: 0 0 .6rem; }
.ia-card p { margin: 0; color: var(--muted); font-size: .88rem; line-height: 1.55; }
.wf-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 1.4rem; align-items: start; }
.wf-col { display: grid; gap: 1.4rem; }
.wf-card { margin: 0; background: #fff; border: 1px solid var(--line); padding: 1rem; }
.wf-card figcaption { font-size: .85rem; color: var(--muted); margin-top: .8rem; }
.wf-svg { display: block; width: 100%; height: auto; }
.wf-svg .bw { fill: #fff; stroke: #cfcfcf; }
.wf-svg .b { fill: #f6f6f6; stroke: #d4d4d4; }
.wf-svg .d { fill: #e0e0e0; }
.wf-svg .k { fill: #cbcbcb; }
.wf-svg .h { fill: #8d8d8d; }
.wf-svg .blk { fill: #111; }
.wf-svg .ol { fill: none; stroke: #111; stroke-width: 1; }
.wf-svg .tg { fill: #444; font-size: 10px; font-family: var(--sans); font-weight: 500; }
.wf-svg .tw { fill: #fff; font-size: 9px; font-family: var(--sans); }
.decisions { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(2rem, 6vw, 5rem); }
.decisions li { border-top: 1px solid var(--line); padding: 1.6rem 0 2rem; display: grid; grid-template-columns: 2.6rem 1fr; column-gap: 1rem; }
.decisions em { font-style: normal; color: var(--muted); font-size: .85rem; padding-top: .35rem; grid-row: 1 / span 2; }
.decisions h3 { font-size: 1.3rem; letter-spacing: -.02em; margin-bottom: .5rem; }
.decisions p { margin: 0; color: var(--muted); }
@media (max-width: 960px) {
  .wf-grid { grid-template-columns: 1fr; }
  .fact-row { grid-template-columns: repeat(3, 1fr); }
  .decisions { grid-template-columns: 1fr; }
}
@media (max-width: 560px) { .fact-row { grid-template-columns: repeat(2, 1fr); } }
/* ---- key pages (case study) ---- */
.wf-svg .kw { fill: #9a9a9a; }
.kp { display: grid; grid-template-columns: 4fr 7fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: start; padding: 2.5rem 0; border-top: 1px solid var(--line); }
.kp-n { display: block; font-size: .8rem; color: var(--muted); margin-bottom: .7rem; }
.kp h3 { font-size: clamp(1.4rem, 2.6vw, 2rem); letter-spacing: -.03em; margin-bottom: .8rem; }
.kp p { color: var(--muted); margin: 0 0 1.2rem; }
@media (max-width: 860px) { .kp { grid-template-columns: 1fr; } }
/* ---- project page header (matches the reference): title, ruled meta row, logo + overview ---- */
.pd-head h1 { font-size: clamp(2.4rem, 5.6vw, 4.6rem); line-height: 1.02; letter-spacing: -.045em; max-width: 16ch; }
.pd-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 2rem 1.7rem; margin-top: clamp(2.5rem, 6vw, 4.5rem); padding: 0; border: 0; }
.pd-meta small { display: block; font-size: .95rem; color: var(--muted); padding-bottom: 1.1rem; border-bottom: 1px solid var(--line); margin-bottom: 1.3rem; }
.pd-meta strong { font-weight: 400; font-size: 1.25rem; letter-spacing: -.01em; }
.pd-intro { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 8vw, 8rem); align-items: start; padding: clamp(3rem, 7vw, 5.5rem) 0; }
.pd-wordmark { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 600; letter-spacing: -.045em; line-height: 1.05; color: #4a4f57; }
.pd-copy h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); letter-spacing: -.03em; line-height: 1.2; font-weight: 500; margin-bottom: 1.4rem; }
.pd-copy p { color: var(--muted); margin: 0 0 1.4rem; line-height: 1.7; }
@media (max-width: 860px) { .pd-intro { grid-template-columns: 1fr; } }
/* ---- client logo on project pages ---- */
.pd-logo { font-size: 0; }
.pd-logo img { width: min(100%, 320px); height: auto; display: block; }
/* ---- stacked full-width screen mockups (case study gallery) ---- */
.mocks { display: grid; gap: 1.4rem; margin-top: 1.4rem; }
.mock { margin: 0; }
.mock-bg { padding: clamp(1.2rem, 5vw, 4.5rem); background: linear-gradient(135deg, #d6d6d6, #efefef); }
.mock:nth-child(even) .mock-bg { background: linear-gradient(135deg, #1e1e1e, #3b3b3b); }
.mock-bg img { display: block; width: 100%; height: auto; border-radius: 6px; box-shadow: 0 30px 60px rgba(0,0,0,.28); }
/* ---- accordion ---- */
.acc-sec { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.acc { border-top: 1px solid var(--line); margin-top: 1.6rem; }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-item h3 { margin: 0; }
.acc-head { all: unset; box-sizing: border-box; width: 100%; display: grid; grid-template-columns: 3rem 1fr 2.4rem; align-items: center; gap: 1rem; padding: 1.7rem 0; cursor: pointer; }
.acc-head:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.acc-n { font-size: .85rem; color: var(--muted); font-weight: 400; }
.acc-t { font-size: clamp(1.3rem, 2.6vw, 2rem); letter-spacing: -.03em; font-weight: 500; line-height: 1.15; }
.acc-i { position: relative; width: 2.4rem; height: 2.4rem; border: 1.5px solid var(--ink); border-radius: 50%; transition: background .3s; }
.acc-i::before, .acc-i::after { content: ''; position: absolute; left: 50%; top: 50%; width: .85rem; height: 1.5px; background: var(--ink); transition: transform .45s var(--ease), background .3s; }
.acc-i::before { transform: translate(-50%, -50%); }
.acc-i::after { transform: translate(-50%, -50%) rotate(90deg); }
.acc-head:hover .acc-i { background: var(--ink); }
.acc-head:hover .acc-i::before, .acc-head:hover .acc-i::after { background: #fff; }
.acc-item.open .acc-i::after { transform: translate(-50%, -50%) rotate(0deg); }
.acc-panel { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows .6s var(--ease), visibility 0s .6s; }
.acc-item.open .acc-panel { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows .6s var(--ease), visibility 0s; }
.acc-in { overflow: hidden; min-height: 0; }
.acc-pad { padding: .4rem 0 clamp(2rem, 5vw, 3.2rem); }
.acc-pad > .sec-p:first-child { margin-top: 0; }
@media (max-width: 560px) { .acc-head { grid-template-columns: 2.2rem 1fr 2.2rem; gap: .6rem; } }
@media (prefers-reduced-motion: reduce) { .acc-panel, .acc-item.open .acc-panel { transition: none !important; } }
/* ---- recent projects: three-column cards ---- */
.proj-sec.recent .proj-head { border-bottom: 0; padding-bottom: 0; }
.rgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3.5vw, 3.4rem); margin-top: clamp(2rem, 5vw, 3.5rem); }
.rcard { display: block; text-decoration: none; color: #fff; }
.rimg { aspect-ratio: 1.2 / 1; overflow: hidden; background: #2a2a2a; position: relative; }
.rimg img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s var(--ease); }
.rcard:hover .rimg img { transform: scale(1.05); }
.rcard h3 { font-size: clamp(1.4rem, 2.3vw, 2rem); font-weight: 400; letter-spacing: -.025em; line-height: 1.2; margin: 1.4rem 0 1.5rem; color: #fff; }
.rlink { display: inline-flex; align-items: center; gap: .8rem; font-weight: 500; color: #fff; }
.rcard .ring { border-color: #fff; }
.rcard:hover .ring { background: #fff; color: #111; transform: translateX(4px); }
@media (max-width: 860px) { .rgrid { grid-template-columns: 1fr; } }
/* ---- square social creatives grid ---- */
.sq-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-top: 1.4rem; }
.sq { margin: 0; aspect-ratio: 1 / 1; overflow: hidden; background: var(--alt); }
.sq img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s var(--ease); }
.sq:hover img { transform: scale(1.04); }
@media (max-width: 560px) { .sq-grid { grid-template-columns: 1fr; } }
/* ---- four creatives: 2 x 2 grid ---- */
.sq-grid.sq-4 { grid-template-columns: repeat(2, 1fr); align-items: start; }
@media (max-width: 560px) { .sq-grid.sq-4 { grid-template-columns: 1fr; } }
/* ---- three-figure results strip ---- */
.fact-row.fact-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 560px) { .fact-row.fact-3 strong { font-size: 2rem; } }

/* ---- app design case study: phase images ---- */
.phases { display: grid; gap: clamp(2.5rem, 6vw, 4.5rem); margin-top: clamp(1rem, 3vw, 2rem); }
.phase { margin: 0; }
.phase-head { display: flex; align-items: baseline; gap: 1rem; border-top: 1px solid var(--line); padding-top: 1.2rem; margin-bottom: 1.4rem; }
.phase-head span { font-size: .85rem; color: var(--muted); }
.phase-head h2 { font-size: clamp(1.5rem, 3vw, 2.4rem); letter-spacing: -.035em; }
.phase img { width: 100%; height: auto; display: block; background: var(--alt); }
/* ---- very tall case study boards: scrollable viewer + cover crop from the top ---- */
.board { max-height: min(80vh, 900px); overflow-y: auto; border: 1px solid var(--line); background: var(--alt); }
.board:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.board img { width: 100%; height: auto; display: block; }
.board-note { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin: .9rem 0 0; font-size: .85rem; color: var(--muted); }
img[src*="b9ed29_6102ea7c67b24d069de5ff0666d65551"] { object-position: 50% 0; }
/* ---- about photo: new image shown in full colour, gentle crop ---- */
.about-photo img { filter: none; transform: translateY(var(--py, 0)) scale(1.04); transform-origin: 50% 30%; object-position: 50% 25%; }
.about-photo:hover img { filter: none; transform: translateY(var(--py, 0)) scale(1.08); }
.about-photo img { transition: transform 1s var(--ease); }

/* ---- brand logo marquee ---- */
.mq .lg { padding: 0 clamp(1.6rem, 3.5vw, 3rem); font-size: 0; display: flex; align-items: center; }
.mq .lg::after { display: none; }
.mq .lg img { height: clamp(30px, 4vw, 46px); width: auto; max-width: 190px; object-fit: contain; filter: grayscale(1); opacity: .55; mix-blend-mode: multiply; transition: opacity .35s, filter .35s; }
.mq .lg:hover img { filter: grayscale(0); opacity: 1; }
/* ---- role rows with year ranges ---- */
.roles li { grid-template-columns: 7rem 1fr auto; }
.roles em { white-space: nowrap; }
@media (max-width: 560px) { .roles li { grid-template-columns: 5.8rem 1fr; } .roles span { grid-column: 2; text-align: left; } }

/* ---- resume section (About page) ---- */
.resume-sec { padding-top: clamp(3rem, 7vw, 5rem); }
.resume-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; flex-wrap: wrap; margin: .7rem 0 1.4rem; }
.resume-head h2 { font-size: clamp(1.9rem, 4vw, 3rem); letter-spacing: -.04em; line-height: 1.08; }
.res-actions { display: flex; gap: .7rem; flex-wrap: wrap; }
.resume-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(2rem, 6vw, 5rem); margin-top: 2.5rem; align-items: start; }
.exp { padding: 1.8rem 0; border-top: 1px solid var(--line); }
.exp:last-child { border-bottom: 1px solid var(--line); }
.exp-top { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: baseline; margin-bottom: 1rem; }
.exp-top h3 { font-size: 1.45rem; letter-spacing: -.03em; }
.exp-top span { color: var(--muted); }
.exp-top em { font-style: normal; color: var(--muted); font-size: .9rem; }
.exp ul { margin: 0; padding-left: 1.1rem; color: var(--muted); }
.exp li { margin: .45rem 0; }
.res-side .tags { margin-bottom: .6rem; }
@media (max-width: 860px) { .resume-grid { grid-template-columns: 1fr; } }
/* ---- about page hero: photo left, intro and stats right ---- */
.ah { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(2rem, 7vw, 7rem); align-items: start; padding-top: clamp(8rem, 14vw, 10.5rem); padding-bottom: clamp(3rem, 7vw, 5rem); }
.ah-photo { margin: 0; aspect-ratio: 5 / 6; overflow: hidden; background: var(--alt); position: relative; }
.ah-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 10%; display: block; filter: grayscale(1) contrast(1.04); transform: scale(1.08); transform-origin: 50% 15%; transition: filter .9s var(--ease), transform 1.4s var(--ease); }
.ah-photo:hover img { filter: none; transform: scale(1.12); }
.ah-body .sec-label { margin-bottom: 0; }
.ah-body h1 { font-size: clamp(2.2rem, 4.8vw, 4rem); letter-spacing: -.045em; line-height: 1.05; margin: .7rem 0 1.4rem; }
.ah-p { color: var(--muted); font-size: 1.08rem; max-width: 36rem; margin: 0; }
.ah-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(2rem, 5vw, 4.5rem); margin-top: clamp(2.5rem, 6vw, 4.5rem); }
.ah-stat { padding: 1.4rem 0 1.7rem; border-bottom: 1px solid var(--line); }
.ah-stat strong { display: block; font-size: clamp(3rem, 6.2vw, 5.2rem); font-weight: 400; letter-spacing: -.05em; line-height: 1; color: #3f4650; font-variant-numeric: tabular-nums; }
.ah-stat span { display: block; margin-top: 1.3rem; color: var(--muted); }
@media (max-width: 960px) {
  .ah { grid-template-columns: 1fr; }
  .ah-photo { max-width: 480px; }
}
@media (max-width: 560px) { .ah-stat strong { font-size: 2.7rem; } .ah-stat span { font-size: .9rem; } }
@media (prefers-reduced-motion: reduce) { .ah-photo img { transform: none !important; transition: none !important; } }
/* ---- skills section (About page) ---- */
.skills-sec { background: #1b1b1b; color: #fff; padding: clamp(4rem, 9vw, 7.5rem) 0; margin-top: clamp(2rem, 5vw, 4rem); }
.sk-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
.sk-left { padding-right: clamp(1.5rem, 5vw, 4rem); }
.sk-left .sec-label { color: rgba(255,255,255,.6); margin-bottom: 0; }
.sk-left .sec-label.dots i { background: rgba(255,255,255,.55); }
.sk-left h2 { font-size: clamp(2.2rem, 5vw, 4rem); letter-spacing: -.04em; line-height: 1.05; margin-top: .8rem; color: #fff; }
.sk-right { border-left: 1px solid rgba(255,255,255,.16); padding-left: clamp(2rem, 7vw, 6rem); }
.sk { margin-bottom: 2.3rem; }
.sk-top { position: relative; display: flex; justify-content: space-between; align-items: baseline; margin-bottom: .9rem; font-size: 1.1rem; }
.sk-pct { position: absolute; left: calc(var(--t) * 1%); transform: translateX(-100%); font-weight: 400; font-size: 1.05rem; color: rgba(255,255,255,.85); font-variant-numeric: tabular-nums; transition: left 1.4s var(--ease2), opacity .6s; }
.sk-bar { height: 8px; border-radius: 8px; background: rgba(255,255,255,.18); overflow: hidden; }
.sk-bar i { display: block; height: 100%; width: calc(var(--t) * 1%); border-radius: 8px; background: #fff; transition: width 1.4s var(--ease2); }
.js .sk:not(.go) .sk-bar i { width: 0; }
.js .sk:not(.go) .sk-pct { left: 0; opacity: 0; }
.sk-tools { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 3.2rem; }
.tool { width: 4.2rem; height: 4.2rem; border: 1px solid rgba(255,255,255,.4); border-radius: 50%; display: grid; place-items: center; font-weight: 600; font-size: 1.05rem; letter-spacing: -.02em; transition: background .3s, color .3s, transform .35s var(--ease); cursor: default; }
.tool:hover { background: #fff; color: #111; transform: translateY(-4px); }
@media (max-width: 860px) {
  .sk-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .sk-left { padding-right: 0; }
  .sk-right { border-left: 0; border-top: 1px solid rgba(255,255,255,.16); padding-left: 0; padding-top: 2.5rem; }
}
@media (prefers-reduced-motion: reduce) { .sk-pct, .sk-bar i { transition: none !important; } }
/* ---- tools row with labels ---- */
.sk-tools { gap: 1.6rem 1.8rem; }
.tool-item { display: flex; flex-direction: column; align-items: center; gap: .8rem; width: 6.4rem; text-align: center; }
.tool-item small { font-size: .78rem; line-height: 1.3; color: rgba(255,255,255,.65); }
.tool-item:hover .tool { background: #fff; color: #111; transform: translateY(-4px); }

/* ---- app icons: coloured rings ---- */
.tool { border: 1.5px solid var(--c, rgba(255,255,255,.4)); color: var(--c, #fff); background: rgba(255,255,255,.04); }
.tool-item:hover .tool, .tool:hover { background: var(--c, #fff); color: #111; transform: translateY(-4px); }
.tool-item { width: 5.6rem; }
.sk-tools { gap: 1.6rem 1.4rem; }

/* ---- work experience rows (year | role + description | company) ---- */
.exp-sec { padding-top: clamp(3rem, 7vw, 5rem); }
.wx-list { margin-top: 2rem; }
.wx { display: grid; grid-template-columns: clamp(6.5rem, 13vw, 10rem) 1fr auto; column-gap: 1.5rem; row-gap: 1.2rem; align-items: baseline; padding: clamp(1.8rem, 3.5vw, 2.8rem) 0; border-bottom: 1px solid var(--line); }
.wx-y { color: #4a5563; font-size: 1rem; }
.wx h3 { font-size: clamp(1.4rem, 2.6vw, 2.1rem); letter-spacing: -.03em; font-weight: 400; line-height: 1.15; }
.wx-c { color: var(--muted); text-align: right; }
.wx p { grid-column: 2; margin: 0; color: var(--muted); max-width: 44rem; line-height: 1.7; }
/* ---- resume: skills, education and languages in columns ---- */
.res-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2.5vw, 1.6rem); margin-top: 2.5rem; align-items: start; }
.res-cols .tags { margin-bottom: .6rem; }
@media (max-width: 960px) { .res-cols { grid-template-columns: 1fr; } }
@media (max-width: 700px) {
  .wx { grid-template-columns: 1fr auto; }
  .wx-y { grid-column: 1 / -1; }
  .wx p { grid-column: 1 / -1; }
}
/* ---- client logos band (About page) ---- */
.clients-sec { background: #1b1b1b; color: #fff; padding: clamp(3rem, 6vw, 4.5rem) 0; margin-top: clamp(2rem, 5vw, 4rem); border-bottom: 1px solid rgba(255,255,255,.16); }
.clients-sec + .skills-sec { margin-top: 0; }
.cl-label { text-align: center; color: rgba(255,255,255,.55); font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; margin: 0 0 2.2rem; }
.cl-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 1.8rem clamp(2rem, 4.5vw, 4rem); }
.cl img { display: block; height: clamp(26px, 3.2vw, 38px); width: auto; max-width: 150px; object-fit: contain; filter: grayscale(1) invert(1); mix-blend-mode: screen; opacity: .85; transition: opacity .3s; }
.cl:hover img { opacity: 1; }

/* ---- About page: logo marquee sits flush against the skills band, as on the home page ---- */
.marquee-wrap + .skills-sec { margin-top: 0; }

/* ---- Instagram post phone mockup (Amazfit page) ---- */
.pm-bg { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: clamp(2rem, 6vw, 5rem); padding: clamp(2rem, 6vw, 4.5rem); background: linear-gradient(135deg, #d6d6d6, #efefef); }
.pm-copy .sec-label { margin-bottom: 0; }
.pm-copy p { color: #4b4b4b; max-width: 26rem; }
.pm-note { font-weight: 500; color: var(--ink) !important; margin-top: 1.4rem; }
.phone { position: relative; width: clamp(17rem, 31vw, 24rem); aspect-ratio: 9 / 18; border-radius: 3rem; background: #111; padding: 11px; box-shadow: 0 40px 80px rgba(0,0,0,.3), inset 0 0 0 2px #2b2b2b; justify-self: center; }
.phone-screen { position: relative; width: 100%; height: 100%; border-radius: 2.3rem; overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.phone-notch { position: absolute; top: 9px; left: 50%; transform: translateX(-50%); width: 32%; height: 1.5rem; background: #111; border-radius: 1rem; z-index: 4; }
.phone-bar { position: absolute; bottom: 7px; left: 50%; transform: translateX(-50%); width: 34%; height: 4px; border-radius: 4px; background: rgba(255,255,255,.55); }
.ig { flex: 1; min-height: 0; overflow-y: auto; padding-top: 2.6rem; scrollbar-width: none; background: #fff; color: #111; font-size: .8rem; }
.ig::-webkit-scrollbar { display: none; }
.ig-head { display: flex; align-items: center; gap: .6rem; padding: .55rem .8rem; }
.ig-head b { font-size: .85rem; font-weight: 600; }
.ig-more { margin-left: auto; letter-spacing: .1em; color: #555; }
.ig-ring { width: 2.3rem; height: 2.3rem; border-radius: 50%; padding: 2px; background: linear-gradient(45deg, #f9ce34, #ee2a7b, #6228d7); display: grid; place-items: center; }
.ig-ring img { width: 100%; height: 100%; border-radius: 50%; background: #fff; padding: 4px; object-fit: contain; }
.ig-car { position: relative; }
.ig-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; background: var(--alt); }
.ig-track::-webkit-scrollbar { display: none; }
.ig-track img { flex: 0 0 100%; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; scroll-snap-align: center; display: block; }
.ig-track:focus-visible { outline: 2px solid #111; outline-offset: -2px; }
.ig-count { position: absolute; top: .6rem; right: .6rem; background: rgba(0,0,0,.65); color: #fff; font-size: .7rem; padding: .15rem .55rem; border-radius: 999px; }
.ig-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 1.9rem; height: 1.9rem; border-radius: 50%; border: 0; background: rgba(255,255,255,.88); color: #111; font-size: 1.3rem; line-height: 1; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.2); opacity: 0; transition: opacity .25s; }
.ig-arrow.prev { left: .5rem; }
.ig-arrow.next { right: .5rem; }
.ig-car:hover .ig-arrow, .ig-arrow:focus-visible { opacity: 1; }
.ig-arrow[hidden] { display: none; }
@media (hover: none) { .ig-arrow { display: none; } }
.ig-act { display: flex; align-items: center; justify-content: space-between; padding: .7rem .8rem .2rem; position: relative; }
.ig-icons { display: inline-flex; gap: .9rem; align-items: center; }
.ig-dots { position: absolute; left: 50%; transform: translateX(-50%); display: inline-flex; gap: 4px; }
.ig-dots i { width: 6px; height: 6px; border-radius: 50%; background: #c7c7c7; transition: background .2s; }
.ig-dots i.on { background: #3897f0; }
.ig p { margin: .15rem .8rem; }
.ig-likes { margin-top: .4rem !important; }
.ig-com { color: #8e8e8e; }
.ig-date { color: #8e8e8e; font-size: .62rem; letter-spacing: .04em; margin-bottom: 1.2rem !important; }
.ig-nav { display: flex; justify-content: space-around; align-items: center; padding: .65rem .5rem 1.2rem; border-top: 1px solid #e7e7e7; background: #fff; color: #999; }
@media (max-width: 860px) { .pm-bg { grid-template-columns: 1fr; } }
/* ---- phone mockup: robust sizing (no aspect-ratio or percentage heights needed) ---- */
.ig-sec { overflow: visible; }
.phone { aspect-ratio: auto; height: auto; }
.phone::before { content: ""; display: block; padding-top: 200%; }
.phone-screen { position: absolute; top: 11px; right: 11px; bottom: 11px; left: 11px; width: auto; height: auto; }
.ig-sec .pm-bg { min-height: 20rem; }

/* ---- phone mockup: never crop the creatives, and leave room for the whole post ---- */
.phone::before { padding-top: 215%; }
.ig-track img { object-fit: contain; background: #f2f2f2; }
.ig-track { align-items: center; }
.ig { padding-top: 2.4rem; }
.ig-nav { padding-bottom: 1rem; }

/* ---- phone mockup v2: Instagram post screen laid out like a real iPhone screenshot ---- */
.phone-screen { background: #fff; }
.ig { padding-top: 0 !important; font-size: .82rem; }
.ig-status { display: flex; justify-content: space-between; align-items: center; height: 2.7rem; padding: .7rem 1.5rem 0 1.6rem; font-size: .82rem; color: #111; flex-shrink: 0; }
.ig-status b { font-weight: 600; }
.ig-sicons { display: inline-flex; align-items: center; gap: .3rem; }
.ig-top { display: grid; grid-template-columns: 2.4rem 1fr auto; align-items: center; gap: .6rem; padding: .35rem .8rem .55rem; flex-shrink: 0; }
.ig-back { width: 2.3rem; height: 2.3rem; border: 1px solid #e3e3e3; border-radius: 50%; display: grid; place-items: center; box-shadow: 0 2px 8px rgba(0,0,0,.06); color: #111; }
.ig-title { text-align: center; line-height: 1.15; }
.ig-title b { display: block; font-size: .95rem; font-weight: 600; }
.ig-title small { color: #666; font-size: .78rem; }
.ig-follow { background: #f3f3f3; border-radius: 999px; padding: .5rem 1rem; font-weight: 600; font-size: .82rem; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.ig-head { display: flex; align-items: center; gap: .6rem; padding: .5rem .8rem; }
.ig-av { width: 2.3rem; height: 2.3rem; border-radius: 50%; border: 1px solid #e3e3e3; background: #fff; display: grid; place-items: center; flex-shrink: 0; overflow: hidden; }
.ig-av img { width: 100%; height: 100%; padding: 5px; object-fit: contain; }
.ig-head b { font-size: .92rem; font-weight: 600; display: inline-flex; align-items: center; gap: .3rem; }
.ig-menu { margin-left: auto; color: #111; display: inline-flex; }
.ig-track img { object-fit: contain; background: #fff; }
.ig-dots.ig-dots-row { position: static; transform: none; display: flex; justify-content: center; gap: 5px; padding: .7rem 0 .15rem; }
.ig-dots i { width: 6px; height: 6px; }
.ig-dots i.on { background: #4f5bd5; }
.ig-act { justify-content: flex-start; gap: 1rem; padding: .55rem .8rem .25rem; color: #111; }
.ig-act .c { display: inline-flex; align-items: center; gap: .35rem; }
.ig-act .c b { font-weight: 600; font-size: .92rem; }
.ig-save { margin-left: auto; display: inline-flex; }
.ig-cap { margin-top: .5rem !important; line-height: 1.35; }
.ig-date { color: #8e8e8e; font-size: .78rem !important; margin-bottom: .6rem !important; text-transform: none !important; letter-spacing: 0 !important; }
.ig-head.peek { margin-top: .8rem; padding-bottom: 2rem; }
/* ---- phone mockup: images were forced to 1000px tall by their height attribute; let the square ratio decide ---- */
.ig-track { align-items: flex-start; }
.ig-track img { height: auto !important; aspect-ratio: 1 / 1; object-fit: cover; }

/* ---- home hero portrait: full colour ---- */
.hero-photo img { filter: none; }
.hero-photo:hover img { filter: none; }

/* ---- Tiger logo is nearly square, so give it a little more height than the wide wordmarks ---- */
.mq .lg img[alt="Tiger"] { height: clamp(44px, 5.4vw, 62px); }

/* ---- infographic gallery (Kotak) ---- */
.info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; margin-top: 1.4rem; align-items: start; }
.info { margin: 0; background: var(--alt); }
.info.wide { grid-column: 1 / -1; }
.info img { width: 100%; height: auto !important; display: block; }
.info figcaption { padding: .9rem 1.1rem 1.2rem; font-size: 1rem; line-height: 1.35; letter-spacing: -.01em; }
.info figcaption span { display: block; font-size: .78rem; color: var(--muted); margin-bottom: .25rem; }
@media (max-width: 700px) { .info-grid { grid-template-columns: 1fr; } }
/* ---- reels in phones, and the longer brand video ---- */
.vphones-bg { display: flex; justify-content: center; align-items: flex-start; flex-wrap: wrap; gap: clamp(1.5rem, 4vw, 3rem); padding: clamp(2rem, 6vw, 4.5rem) 1rem; background: linear-gradient(135deg, #d6d6d6, #efefef); }
.vphone-item { margin: 0; width: clamp(12.5rem, 20vw, 16.5rem); text-align: center; }
.vphone { position: relative; width: 100%; border-radius: 2.4rem; background: #111; padding: 10px; box-shadow: 0 30px 60px rgba(0,0,0,.28), inset 0 0 0 2px #2b2b2b; }
.vphone::before { content: ""; display: block; padding-top: 200%; }
.vphone-screen { position: absolute; top: 10px; right: 10px; bottom: 10px; left: 10px; border-radius: 1.9rem; overflow: hidden; background: #000; }
.vphone-screen video { width: 100%; height: 100%; object-fit: contain; display: block; background: #000; }
.v-snd { position: absolute; right: .6rem; bottom: .8rem; width: 2.3rem; height: 2.3rem; border-radius: 50%; border: 0; background: rgba(0,0,0,.55); color: #fff; display: grid; place-items: center; cursor: pointer; z-index: 5; transition: background .2s, transform .25s; }
.v-snd:hover { background: rgba(0,0,0,.8); transform: scale(1.08); }
.v-snd .on-ic { display: none; }
.v-snd.on .on-ic { display: block; }
.v-snd.on .off-ic { display: none; }
.vphone-item figcaption { margin-top: 1rem; font-size: .88rem; color: #555; line-height: 1.4; }
.vphone-item figcaption b { display: block; color: var(--ink); font-weight: 500; font-size: 1rem; margin-bottom: .15rem; }
.film-grid { display: grid; grid-template-columns: 1fr minmax(0, 27rem); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.film { margin: 0; background: #000; }
.film video { width: 100%; height: auto; aspect-ratio: 4 / 5; display: block; background: #000; }
@media (max-width: 860px) { .film-grid { grid-template-columns: 1fr; } }
/* ---- four phones in one row ---- */
.vphone-item { width: clamp(11rem, 18vw, 15rem); }
.vphones-bg { gap: clamp(1.2rem, 3vw, 2.4rem); }

/* ---- social posts: carousels and single posts ---- */
.posts-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.4rem, 3vw, 2.4rem); align-items: start; }
.post { margin: 0; }
.post-media { position: relative; background: var(--alt); overflow: hidden; }
.post-media > img { width: 100%; height: 100% !important; object-fit: contain; display: block; }
.cx-track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.cx-track::-webkit-scrollbar { display: none; }
.cx-track img { flex: 0 0 100%; width: 100%; height: 100% !important; object-fit: contain; scroll-snap-align: center; display: block; background: #fff; }
.cx-track:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
.cx-count { position: absolute; top: .7rem; right: .7rem; background: rgba(0,0,0,.65); color: #fff; font-size: .75rem; padding: .2rem .6rem; border-radius: 999px; z-index: 2; }
.cx-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 2.3rem; height: 2.3rem; border: 0; border-radius: 50%; background: rgba(255,255,255,.9); color: #111; font-size: 1.5rem; line-height: 1; cursor: pointer; box-shadow: 0 2px 10px rgba(0,0,0,.2); opacity: 0; transition: opacity .25s; z-index: 2; }
.cx-prev { left: .6rem; }
.cx-next { right: .6rem; }
.cx-nav[hidden] { display: none; }
.cx:hover .cx-nav, .cx-nav:focus-visible { opacity: 1; }
@media (hover: none) { .cx-nav { display: none; } }
.cx-dots { display: flex; justify-content: center; gap: 5px; padding: .7rem 0 .1rem; }
.cx-dots i { width: 6px; height: 6px; border-radius: 50%; background: #c7c7c7; transition: background .2s; }
.cx-dots i.on { background: var(--ink); }
.post figcaption { margin-top: .6rem; font-size: .88rem; color: var(--muted); line-height: 1.4; }
.post figcaption b { display: block; color: var(--ink); font-weight: 500; font-size: 1rem; }
@media (max-width: 700px) { .posts-grid { grid-template-columns: 1fr; } }
/* ---- five or more posts: three across on desktop ---- */
.posts-grid { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 960px) { .posts-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .posts-grid { grid-template-columns: 1fr; } }

/* ---- two carousel posts side by side ---- */
.posts-grid { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 700px) { .posts-grid { grid-template-columns: 1fr; } }

/* ---- three carousels across ---- */
.posts-grid { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 960px) { .posts-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .posts-grid { grid-template-columns: 1fr; } }

/* ---- videos section on the Projects page ---- */
.vgroup { margin-top: 2.4rem; }
.vgroup-head { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem 1.5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.vgroup-head h3 { font-size: clamp(1.3rem, 2.4vw, 1.8rem); letter-spacing: -.03em; font-weight: 500; }
/* ---- 3D layout carousel: wide, arrows always visible ---- */
.plan-car .cx-nav { opacity: 1; width: 2.8rem; height: 2.8rem; }
.plan-car .cx-track img { background: #f3f3f3; }
.plan-post figcaption { text-align: center; }
@media (hover: none) { .plan-car .cx-nav { display: grid; place-items: center; } }

/* ---- autoplay pause button ---- */
.cx-pause { position: absolute; left: .7rem; top: .7rem; z-index: 3; height: 1.9rem; min-width: 1.9rem; padding: 0 .55rem; border: 0; border-radius: 999px; background: rgba(0,0,0,.65); color: #fff; font-size: .7rem; line-height: 1; cursor: pointer; letter-spacing: .05em; }
.cx-pause:hover { background: rgba(0,0,0,.85); }
.cx-pause[hidden] { display: none; }
/* ---- exhibition creatives ---- */
.cr-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.4rem, 3vw, 2.4rem); margin-top: 2rem; align-items: start; }
.cr { margin: 0; }
.cr.wide { grid-column: 1 / -1; }
.cr img { width: 100%; height: auto !important; display: block; background: var(--alt); }
.cr figcaption { padding: .8rem .1rem 0; font-size: 1rem; letter-spacing: -.01em; }
.cr figcaption span { display: inline-block; color: var(--muted); font-size: .78rem; margin-right: .7rem; }
@media (max-width: 700px) { .cr-grid { grid-template-columns: 1fr; } }

/* ---- creatives in tabs: one surface at a time, images capped to the screen height ---- */
.cr-tabs { margin-top: 2rem; }
.cr-tabs .chips { margin-top: 0; }
.chip-n { display: inline-block; margin-left: .35rem; font-size: .75rem; opacity: .6; }
.cr-panel { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1rem, 3vw, 2rem); margin-top: 1.6rem; align-items: start; }
.cr-panel[hidden] { display: none; }
.crt { margin: 0; }
.crt-img { height: clamp(20rem, 68vh, 42rem); background: var(--alt); display: grid; place-items: center; overflow: hidden; }
.crt-img img { max-width: 100%; max-height: 100%; width: auto; height: auto !important; object-fit: contain; display: block; }
.crt figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; padding: .8rem .1rem 0; font-size: 1rem; letter-spacing: -.01em; }
.crt figcaption .link { font-size: .85rem; }
@media (max-width: 700px) { .cr-panel { grid-template-columns: 1fr; } .crt-img { height: clamp(18rem, 60vh, 32rem); } }

/* ---- final output reel: one large phone beside the text ---- */
.final-bg { grid-template-columns: 1fr auto; }
.vphone-lg { width: clamp(14rem, 22vw, 18rem); justify-self: center; }
@media (max-width: 860px) { .final-bg { grid-template-columns: 1fr; } }

/* ---- a hint of pop colour: electric blue, small accents only ---- */
:root { --pop: #2d5bff; --pop-dark: #6b8bff; }
::selection { background: var(--pop); color: #fff; }
:focus-visible { outline-color: var(--pop); }

/* header and navigation */
.brand span { color: var(--pop); }
nav > a::after, .has-sub > a::after { background: var(--pop); }

/* buttons and links */
.btn::before { background: var(--pop); }
.btn-ghost::before { background: var(--pop); }
.btn-ghost:hover { border-color: var(--pop); }
.link { background-image: linear-gradient(var(--pop), var(--pop)); }
.textlink:hover .ring, .next-link:hover .ring { background: var(--pop); border-color: var(--pop); color: #fff; }
.foot-links a:hover { color: var(--pop); }
.pill:hover { background: var(--pop); color: #fff; }

/* small dots and labels */
.dot { background: var(--pop); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(45,91,255,.4); } 70%, 100% { box-shadow: 0 0 0 8px rgba(45,91,255,0); } }
.sec-label.dots i:first-child { background: var(--pop); }
.proj-sec .sec-label.dots i:first-child, .sk-left .sec-label.dots i:first-child { background: var(--pop-dark); }

/* filters, accordion, carousels, process numbers */
.chip.on { background: var(--pop); border-color: var(--pop); }
.chip:hover { border-color: var(--pop); }
.acc-head:hover .acc-i { background: var(--pop); border-color: var(--pop); }
.acc-head:hover .acc-i::before, .acc-head:hover .acc-i::after { background: #fff; }
.cx-dots i.on { background: var(--pop); }
.steps li::before { color: var(--pop); }
.cs-card .burst, .svc2 .burst { color: var(--pop); }
.meta h3 { background-image: linear-gradient(var(--pop), var(--pop)); }

/* skills section */
.sk-bar i { background: var(--pop-dark); }
.tool:hover { background: var(--pop-dark); color: #fff; }
/* ---- bold level: blue in the hero name and the About numbers ---- */
.hero-name em.pop { font-style: normal; color: var(--pop); }
.ah-stat strong { color: var(--pop); }

/* ---- new portrait: full colour, framed from the top ---- */
.hero-photo img { object-position: 50% 8%; }
.ah-photo img { filter: none; transform: scale(1); object-position: 50% 12%; }
.ah-photo:hover img { filter: none; transform: scale(1.03); }

/* ---- download icon moves down, not sideways ---- */
.btn:hover i.dl { transform: translateY(3px); }

/* ---- draft home page ---- */
.draft-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: #111; color: #fff; text-align: center; font-size: .85rem; padding: .6rem 1rem; }
.draft-bar a { color: #fff; text-decoration: underline; margin-left: .4rem; }
.proj-facts { margin-top: 1.2rem; display: grid; gap: .8rem; }
.proj-facts p { margin: 0; color: rgba(255,255,255,.7); max-width: 32rem; }
.proj-facts b { display: block; font-weight: 500; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: #fff; margin-bottom: .2rem; }
.fact-row.fact-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 700px) { .fact-row.fact-4 { grid-template-columns: repeat(2, 1fr); } }
/* ---- draft project page ---- */
.cf-head { padding-top: clamp(8rem, 14vw, 10.5rem); }
.cf-head h1 { font-size: clamp(2.2rem, 5vw, 4rem); letter-spacing: -.045em; line-height: 1.04; max-width: 20ch; }
.cf-lede { font-size: 1.2rem; color: var(--muted); max-width: 40rem; margin: 1.2rem 0 0; }
.cf { display: grid; grid-template-columns: minmax(240px, 300px) 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; margin-top: clamp(2rem, 5vw, 3.5rem); }
.cf-side { position: sticky; top: 6.5rem; background: var(--alt); padding: 1.6rem; }
.cf-side dl { margin: 0; }
.cf-side dt { font-size: .75rem; color: var(--muted); margin-top: 1.1rem; }
.cf-side dt:first-child { margin-top: 0; }
.cf-side dd { margin: .15rem 0 0; font-size: 1rem; line-height: 1.4; }
.cf-main { min-width: 0; }
.cf-block { margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.cf-block .mocks { margin-top: 1.6rem; }
.cf-block .acc-sec { padding: 0; }
.ph { display: inline-block; border: 1px dashed var(--pop); background: #eef2ff; color: #2339a8; padding: .1rem .5rem; border-radius: 4px; font-size: .88em; line-height: 1.5; }
@media (max-width: 900px) { .cf { grid-template-columns: 1fr; } .cf-side { position: static; } }
/* ---- editorial case study ---- */
.cs-top { padding-top: clamp(7rem, 12vw, 9rem); }
.cs-bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: clamp(2.5rem, 6vw, 4.5rem); font-size: .9rem; }
.notes-toggle { font: inherit; font-size: .85rem; background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: .4rem 1rem; cursor: pointer; color: var(--ink); transition: border-color .2s, background .2s; }
.notes-toggle:hover { border-color: var(--pop); }
.notes-toggle b { font-weight: 600; color: var(--pop); }
.cs-eyebrow { font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 1.2rem; }
.cs-h1 { font-size: clamp(3rem, 9vw, 7.5rem); line-height: .95; letter-spacing: -.05em; font-weight: 500; }
.cs-h1 em, .cs-h2 em { font-family: 'Instrument Serif', Georgia, 'Times New Roman', serif; font-style: italic; font-weight: 400; letter-spacing: -.02em; color: var(--pop); }
.cs-sub { font-size: clamp(1.1rem, 1.8vw, 1.45rem); color: var(--muted); max-width: 38rem; margin: 1.6rem 0 clamp(2rem, 5vw, 3.5rem); }
.cs-heroart { margin: 0; }
.cs-facts { margin-top: 2.2rem; }
.cs-sec { padding: clamp(2.5rem, 6vw, 4.5rem) 0 0; }
.cs-sec .sec-label { margin-bottom: 0; }
.cs-h2 { font-size: clamp(2rem, 5vw, 3.8rem); line-height: 1.02; letter-spacing: -.045em; font-weight: 500; margin: .8rem 0 1.4rem; max-width: 18ch; }
.cs-p { color: var(--muted); font-size: 1.12rem; line-height: 1.7; max-width: 44rem; margin: 0 0 1rem; }
.cs-p b { color: var(--ink); font-weight: 500; }
.rl { display: none; margin: 1.6rem 0 0; padding: 1rem 1.2rem; border-left: 3px solid var(--pop); background: #eef2ff; color: #22308a; font-size: .95rem; line-height: 1.55; max-width: 44rem; }
.rl b { display: block; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: .25rem; }
body.notes-on .rl { display: block; }
.mm-list { display: grid; gap: clamp(2rem, 5vw, 3.5rem); margin-top: 2.2rem; }
.mm-tag { font-size: .85rem; color: var(--muted); margin-bottom: .7rem; }
.mm-panel { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; background: #1b1b1b; padding: clamp(1.5rem, 4vw, 3rem); }
.mm-title { color: #fff; font-size: clamp(1.8rem, 4.2vw, 3.4rem); line-height: 1; letter-spacing: -.035em; font-weight: 600; }
.mm-art { background: #fff; box-shadow: 0 24px 50px rgba(0,0,0,.4); padding: .6rem; }
.mm-art .wf-svg { display: block; width: 100%; height: auto; }
.mm-cap { margin: .9rem 0 0; color: var(--muted); max-width: 40rem; }
.cs-deep .acc-sec { padding: 0; }
@media (max-width: 820px) { .mm-panel { grid-template-columns: 1fr; } }
/* ---- tiger case study ---- */
.mm-panel.stack { grid-template-columns: 1fr; align-items: start; }
.mm-panel.stack .mm-art { padding: 0; background: transparent; box-shadow: 0 24px 50px rgba(0,0,0,.4); }
.mm-panel.stack .mm-art img { display: block; width: 100%; height: auto; }
.mm-cap b { display: inline-block; min-width: 6.5rem; font-weight: 500; font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink); }
.cs-cover { display: block; width: 100%; height: auto; }
/* ---- evidence lines ---- */
.sk-ev { display: block; margin-top: .55rem; font-size: .8rem; color: rgba(255,255,255,.6); }
.sk-ev a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.sk-ev a:hover { color: var(--pop-dark); }
.svc-ev { color: var(--muted); font-size: .95rem; margin: .2rem 0 1rem; }

/* ---- bombae ---- */
.ks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6rem; margin-top: 2.4rem; }
.ks small { color: var(--muted); font-size: .8rem; }
.ks p { margin: .4rem 0 0; line-height: 1.5; font-size: .98rem; }
@media (max-width: 900px) { .ks { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .ks { grid-template-columns: 1fr; } }
/* ---- longer case study headlines ---- */
.cs-h1 { font-size: clamp(2.5rem, 6.4vw, 5.4rem); line-height: 1.02; letter-spacing: -.045em; }

/* ---- motion: word reveal, magnetic buttons, view bubble, progress, back to top, page fade ---- */
html.js .split .w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .06em .1em 0; margin: 0 -.06em -.1em 0; }
html.js .split .w > span { display: inline-block; transform: translateY(108%); transition: transform .7s var(--ease) calc(var(--i, 0) * 50ms); will-change: transform; }
html.js .split.in .w > span { transform: none; }
.btn span { display: inline-block; transition: transform .28s var(--ease); }
.btn i { transition: transform .28s var(--ease); }
.marquee:hover .marquee-track { animation-play-state: paused; }
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; background: var(--pop); transform: scaleX(0); transform-origin: left; z-index: 70; pointer-events: none; }
.to-top { position: fixed; left: 1.2rem; bottom: 1.2rem; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: var(--bg); color: var(--ink); box-shadow: 0 6px 24px rgba(0,0,0,.16); cursor: pointer; z-index: 60; opacity: 0; transform: translateY(14px); pointer-events: none; transition: opacity .3s, transform .35s var(--ease), box-shadow .2s; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { box-shadow: 0 10px 30px rgba(0,0,0,.24); }
.to-top svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.to-top .trk { fill: none; stroke: var(--line); stroke-width: 2; }
.to-top .ring { fill: none; stroke: var(--pop); stroke-width: 2; stroke-linecap: round; transition: stroke-dashoffset .12s linear; }
.to-top span { position: relative; display: block; font-size: 1.05rem; line-height: 44px; text-align: center; }
.cursor-tag { position: fixed; left: 0; top: 0; z-index: 80; width: 84px; height: 84px; border-radius: 50%; background: var(--pop); color: #fff; display: grid; place-items: center; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; pointer-events: none; opacity: 0; transition: opacity .22s; }
.cursor-tag.on { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  @keyframes pg-out { to { opacity: 0; } }
  @keyframes pg-in { from { opacity: 0; } }
  ::view-transition-old(root) { animation: .2s ease both pg-out; }
  ::view-transition-new(root) { animation: .36s ease both pg-in; }
}
@media (prefers-reduced-motion: reduce) {
  html.js .split .w > span { transform: none !important; }
  .cursor-tag { display: none; }
}
@media (hover: none) { .cursor-tag { display: none; } }

/* ---- polish: press feedback, shorter hover timing, interruptible dropdown, honest reduced motion ---- */
:root { --ease-out: cubic-bezier(.23, 1, .32, 1); --ease-in-out: cubic-bezier(.77, 0, .175, 1); }

/* 1. press feedback: the interface hears the click (the scale property never fights the reveal transforms) */
.btn:active, .pill:active, .chip:active, .socials a:active, .cx-nav:active, .to-top:active, .notes-toggle:active { scale: .97; }
.btn { transition: color .25s var(--ease), scale 160ms var(--ease-out); }
.js .btn[data-reveal] { transition: opacity .6s var(--ease) var(--d, 0s), transform .6s var(--ease) var(--d, 0s), color .25s var(--ease), scale 160ms var(--ease-out); }
.pill { transition: transform .25s var(--ease), background .25s var(--ease), scale 160ms var(--ease-out); }
.chip { transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), scale 160ms var(--ease-out); }
.socials a { transition: background .25s, color .25s, transform .25s var(--ease), border-color .25s, scale 160ms var(--ease-out); }
.to-top { transition: opacity .3s var(--ease), transform .35s var(--ease), box-shadow .2s, scale 160ms var(--ease-out); }

/* 2. hover effects are seen tens of times a day: keep them under 300ms */
.btn::before { transition: transform .28s var(--ease-in-out); }
.btn i { transition: transform .25s var(--ease); }
.link { transition: background-size .25s var(--ease); }
nav > a::after, .has-sub > a::after { transition: transform .25s var(--ease); }
.meta h3 { transition: background-size .3s var(--ease); }
.rows li { transition: padding .3s var(--ease), background .25s; }
.roles li { transition: padding .3s var(--ease); }
.svc { transition: transform .3s var(--ease), background .25s; }
.js .svc[data-reveal].in { transition: transform .3s var(--ease), background .25s, opacity .6s var(--ease) var(--d, 0s); }
.js .svc2[data-reveal].in { transition: transform .3s var(--ease), filter .25s, opacity .6s var(--ease) var(--d, 0s); }
.ring { transition: background .25s, color .25s, transform .3s var(--ease); }
.thumb img { transition: transform .5s var(--ease); }
.site-header { transition: transform .3s var(--ease), background .25s, border-color .25s; }

/* 3. accordions open in 350ms, not 600ms */
.acc-panel { transition: grid-template-rows .35s var(--ease), visibility 0s .35s; }
.acc-item.open .acc-panel { transition: grid-template-rows .35s var(--ease), visibility 0s; }
.acc-i::before, .acc-i::after { transition: transform .3s var(--ease), background .2s; }

/* 4. scroll reveals: a shorter, smaller rise so content is readable sooner */
.js [data-reveal] { transform: translateY(20px); transition: opacity .6s var(--ease) var(--d, 0s), transform .6s var(--ease) var(--d, 0s); }
.js .about-photo[data-reveal] { transform: translateY(20px); transition: opacity .6s var(--ease) var(--d, 0s), transform .6s var(--ease) var(--d, 0s); }

/* 5. the Projects dropdown: grows from its trigger, closes faster than it opens, and never uses "all" */
.sub { transform-origin: top left; transform: translateY(6px) scale(.97); transition: opacity 120ms var(--ease), transform 120ms var(--ease), visibility 0s linear 120ms; }
.has-sub:hover .sub, .has-sub:focus-within .sub { transform: none; transition: opacity 180ms var(--ease), transform 180ms var(--ease), visibility 0s; }

/* 6. touch screens: a tap must not leave a hover movement stuck on */
@media (hover: none) {
  .thumb:hover img, .rimg:hover img, .proj-img:hover img { transform: none; }
  .js .svc2[data-reveal].in:hover, .svc:hover { transform: none; filter: none; }
}

/* 7. reduced motion means gentler, not none: keep colour changes that explain what is interactive */
@media (prefers-reduced-motion: reduce) {
  a, button, .btn, .chip, .pill, .link { transition: color .2s ease, background-color .2s ease, border-color .2s ease !important; }
  .btn:active, .pill:active, .chip:active { scale: 1; }
  .to-top { transition: opacity .2s ease !important; }
}


/* ---- polish 2: entrances start fast, hovers stay on transform, touch sees the real photo ---- */

/* 1. entrances use ease-out: the slow-start --ease2 curve hid the first ~200ms of every reveal */
.js .line > span { transition: transform .7s var(--ease-out); }
.js body.loaded .line:nth-child(2) > span { transition-delay: .06s; }
.js .frame { transition: clip-path .8s var(--ease-out); }
.js .portrait-frame { transition: clip-path .8s var(--ease-out) .1s; }
.js .hero-photo { transition: clip-path .8s var(--ease-out); }
.hero-photo img { transition: filter .5s var(--ease), transform 1s var(--ease-out); }
.js .about-photo[data-reveal] { transition: opacity .6s var(--ease-out) var(--d, 0s), transform .6s var(--ease-out) var(--d, 0s); }
.js .svc2[data-reveal] .burst { transition: transform .9s var(--ease-out) .15s; }
.js [data-reveal] { transform: translateY(16px); }

/* 2. the button fill is a hover: fast and responsive, not a slow-start sweep */
.btn::before { transition: transform .22s var(--ease-out); }

/* 3. row nudges move content with transform instead of re-laying out the row */
.rows li, .rows li:hover, .roles li, .roles li:hover { padding-left: 0; }
.rows li { transition: background .25s; }
.roles li { transition: none; }
.rows li > :not(:last-child), .roles li > :not(:last-child) { transition: transform .3s var(--ease-out); }
.rows li:hover > :not(:last-child) { transform: translateX(.8rem); }
.roles li:hover > :not(:last-child) { transform: translateX(.7rem); }
.sub a, .sub a:hover { padding-left: .8rem; }
.sub a { transition: background .2s, color .2s, transform .2s var(--ease-out); }
.sub a:hover { transform: translateX(.3rem); }

/* 4. the live dot pulses with transform + opacity instead of repainting box-shadow */
.dot { position: relative; animation: none; }
.dot::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: dot-ring 2s var(--ease-out) infinite; }
@keyframes dot-ring { 0% { transform: scale(1); opacity: .45; } 70%, 100% { transform: scale(3); opacity: 0; } }

/* 5. service patterns: shorter hover */
.svc .pat { transition: background-position .4s var(--ease-out), background-size .4s var(--ease-out); }

/* 6. the header gets out of the way faster than it comes back */
.site-header.hide { transition: transform .2s var(--ease-out), background .25s, border-color .25s; }

/* 7. touch screens: no stuck hover lifts, and the portrait shows in colour since it can never be hovered */
@media (hover: none) {
  .socials a:hover, .chip:hover, .pill:hover, .next-link:hover strong,
  .textlink:hover .ring, .rcard:hover .ring, .sq:hover img, .card:hover .thumb img, .cover:hover .thumb img { transform: none; }
  .rows li:hover > *, .roles li:hover > *, .sub a:hover { transform: none; }
  .hero-photo img, .portrait-frame img, .about-photo img { filter: none; }
}

@media (prefers-reduced-motion: reduce) {
  .dot::after { animation: none; opacity: 0; }
  .rows li > *, .roles li > * { transition: none; transform: none !important; }
}
/* ---- home hero: designer ID layout ---- */
body[data-page="home"] { --hdr: 4rem; }
body[data-page="home"] .site-header { font-family: 'Instrument Sans', var(--sans); background: #e8e8e3; border-bottom-color: #d3d3cc; }
body[data-page="home"] .site-header.stuck { background: rgba(255,255,255,.92); border-bottom-color: var(--line); }
body[data-page="home"] .brand { font-size: 1.6rem; font-weight: 400; letter-spacing: -.02em; display: inline-flex; align-items: center; gap: .55rem; }
body[data-page="home"] .brand span { display: none; }
body[data-page="home"] .brand::before { content: ''; width: 1.4rem; height: 1.4rem; background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M4.5 22V11.5a7.5 7.5 0 0 1 15 0V22' fill='none' stroke='%23bdb23b' stroke-width='5'/></svg>") center / contain no-repeat; }
@media (min-width: 1040px) {
  body[data-page="home"] .bar { position: relative; height: var(--hdr); padding-block: 0; }
  body[data-page="home"] .brand { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
  body[data-page="home"] nav > a, body[data-page="home"] .has-sub > a { color: var(--ink); font-size: 1rem; }
  body[data-page="home"] nav { gap: 2.2rem; }
  body[data-page="home"] nav a.btn { color: #fff; border-radius: 14px; padding: .95rem 1.6rem; }
}

.hero-id { position: relative; background: #e8e8e3; color: var(--ink); font-family: 'Instrument Sans', var(--sans); padding: calc(var(--hdr, 4rem) + 2.2rem) var(--gut) 4.5rem; display: grid; grid-template-columns: 1fr; gap: 3.2rem; align-items: start; min-height: 100svh; overflow: hidden; }
@media (min-width: 1040px) { .hero-id { grid-template-columns: minmax(0, 1fr) 300px minmax(0, 1.05fr); gap: clamp(2rem, 4.5vw, 4.5rem); } }
.id-left, .id-info { padding-top: 1rem; }
.id-left h1 { font-size: clamp(2.8rem, 4.6vw, 3.7rem); font-weight: 400; letter-spacing: -.03em; line-height: 1.05; margin: 0 0 1.8rem; }
.id-left h1 em { font-style: italic; }
.id-lede { font-size: 1.12rem; line-height: 1.6; max-width: 25rem; margin: 0; }
.id-actions { display: flex; flex-direction: column; align-items: flex-start; gap: .75rem; margin-top: 2.2rem; }
.id-actions .btn { border-radius: 12px; padding: 1rem 1.5rem; font-size: 1.05rem; }
.id-actions .btn-ghost { background: transparent; border: 1px solid #c9c9c2; color: var(--ink); }
.id-left .socials { margin-top: 2rem; }

.id-wrap { position: relative; margin-top: 5rem; justify-self: center; width: min(100%, 300px); }
@media (min-width: 1040px) { .id-wrap { margin-top: calc(10.6rem - 1rem); } }
.id-strap { position: absolute; bottom: 100%; left: 50%; width: 19px; margin-left: -9.5px; height: 5rem; background: #b9b13f; }
@media (min-width: 1040px) { .id-strap { height: 10.6rem; } }
.id-card { position: relative; background: #f8f8f4; border-radius: 24px; box-shadow: 0 22px 50px rgba(0,0,0,.14), 0 2px 8px rgba(0,0,0,.08); overflow: visible; transform-origin: 50% 0; animation: id-swing 2.4s var(--ease-out) .25s both; }
.id-card::before { content: ''; position: absolute; left: 50%; top: -14px; width: 30px; height: 16px; margin-left: -15px; border: 3px solid #7d7d76; border-bottom: 0; border-radius: 5px 5px 0 0; background: transparent; }
.id-top { display: flex; align-items: center; gap: .65rem; height: 48px; padding: 0 1.1rem; background: #141414; color: #fff; border-radius: 24px 24px 0 0; font-size: .92rem; }
.id-top svg { width: 20px; height: 20px; }
.id-slot { margin-left: auto; width: 26px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.35); }
.id-body { padding: 1.6rem 1.6rem 1.4rem; text-align: center; }
.id-photo { width: 144px; aspect-ratio: 144 / 172; margin: 0 auto; border-radius: 12px; border: 1px solid #d9d9d3; overflow: hidden; background: #eee; }
.id-photo img { width: 100%; height: 100% !important; object-fit: cover; object-position: 50% 14%; display: block; }
.id-name { font-size: 1.25rem; margin: 1.2rem 0 .2rem; font-weight: 400; letter-spacing: -.01em; }
.id-role { font-size: .85rem; color: #6b6b66; margin: 0; }
.id-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin-top: 1.3rem; padding-top: 1.1rem; border-top: 1px dashed #c9c9c2; }
.id-meta small { display: block; font-size: .72rem; color: #6b6b66; }
.id-meta b { display: block; font-weight: 400; font-size: .92rem; margin-top: .2rem; }
.id-bars { display: block; width: 100%; height: 22px; margin-top: 1.1rem; }

.id-table { margin: 0; }
.id-table div { display: grid; grid-template-columns: 7.2rem 1fr; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid #d3d3cc; }
.id-table dt { color: #6b6b66; font-size: .95rem; padding-top: .15rem; }
.id-table dd { margin: 0; font-size: 1.15rem; line-height: 1.4; }
.id-quote { font-size: clamp(1.7rem, 2.6vw, 2.2rem); font-style: italic; letter-spacing: -.02em; margin: 2.2rem 0 0; line-height: 1.2; }

@keyframes id-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes id-swing { 0% { transform: rotate(4.5deg); } 28% { transform: rotate(-2.8deg); } 56% { transform: rotate(1.4deg); } 80% { transform: rotate(-.5deg); } 100% { transform: rotate(0); } }
.id-left > *, .id-info > * { animation: id-rise .6s var(--ease-out) calc(var(--i, 0) * 70ms) both; }

/* ---- ID card: depth, glare and a holographic sheen ---- */
.id-wrap { perspective: 900px; }
.id-card { transform-style: preserve-3d; will-change: transform; }
.id-body { transform-style: preserve-3d; }
.id-top { transform: translateZ(4px); }
.id-photo { transform: translateZ(26px); transition: box-shadow .25s var(--ease-out); }
.id-name, .id-role { transform: translateZ(16px); }
.id-meta { transform: translateZ(12px); }
.id-bars { transform: translateZ(8px); }
.id-card.hovering .id-photo { box-shadow: 0 14px 28px rgba(0,0,0,.2); }
.id-glare, .id-foil { position: absolute; inset: 0; border-radius: 24px; pointer-events: none; opacity: 0; transform: translateZ(40px) scale(.956); }
.id-foil { background: linear-gradient(110deg, rgba(255,92,150,0) 28%, rgba(255,214,102,.18) 40%, rgba(110,231,183,.2) 50%, rgba(96,165,250,.18) 60%, rgba(167,139,250,0) 72%); background-size: 220% 100%; }
.id-strap { transform-origin: 50% 0; }

/* ---- hero on phones: card first, then the greeting ---- */
@media (max-width: 1039px) {
  .hero-id { padding-top: calc(var(--hdr, 4rem) + .4rem); gap: 2.4rem; min-height: 0; padding-bottom: 3.5rem; }
  .id-wrap { order: -1; margin-top: 2.6rem; width: min(78vw, 300px); }
  .id-strap { height: 2.6rem; }
  .id-left, .id-info { padding-top: 0; }
  .id-left h1 { font-size: clamp(2.3rem, 9vw, 3rem); margin-bottom: 1.2rem; }
}
@media (max-width: 560px) {
  body[data-page="home"] .brand { font-size: 1.3rem; }
  body[data-page="home"] .brand::before { width: 1.15rem; height: 1.15rem; }
  .id-table div { grid-template-columns: 6rem 1fr; }
}

/* ---- hero card on touch screens ---- */
.id-wrap { touch-action: pan-y; }
.id-hint { display: none; }
@media (hover: none) {
  .id-hint { display: block; text-align: center; font-size: .8rem; color: #6b6b66; margin: 1.4rem 0 0; }
  .proj-img:active img, .rimg:active img, .thumb:active img { transform: scale(1.03); }
}

/* ---- selected work: panels that open one at a time ---- */
.sw-sec { background: #e8e8e3; color: var(--ink); font-family: 'Instrument Sans', var(--sans); padding: 3rem var(--gut) 6rem; }
.sw-h2 { font-size: clamp(2.6rem, 5vw, 4.2rem); font-weight: 400; letter-spacing: -.03em; line-height: 1.05; margin: 0; }
.sw-h2 em { font-style: italic; }
.sw-sub { font-size: clamp(1.1rem, 1.6vw, 1.3rem); margin: 1.1rem 0 2.8rem; }
.sw-list { display: flex; flex-direction: column; gap: .8rem; }
.sw-panel { position: relative; overflow: hidden; border-radius: 28px; border: 1px solid #cfd0c9; background: #dedfd9; max-height: 4.7rem; transition: max-height .5s var(--ease), background .3s var(--ease); }
.sw-panel.open { max-height: 80rem; background: #f6f6f2; border-color: #dcdcd5; }
.sw-panel:not(.open):hover { background: #d6d7d1; }
.sw-tab { position: relative; display: flex; align-items: center; gap: 1rem; width: 100%; height: 4.7rem; padding: 0 1.3rem; background: none; border: 0; cursor: pointer; font: inherit; color: inherit; text-align: left; }
.sw-num { font-size: .95rem; color: #666; min-width: 1.6rem; }
.sw-name { flex: 1; font-size: 1.2rem; letter-spacing: -.01em; }
.sw-plus { width: 2rem; height: 2rem; border-radius: 50%; background: #141414; color: #fff; display: grid; place-items: center; font-size: 1.3rem; line-height: 1; transition: transform .3s var(--ease), background .2s; }
.sw-tab:hover .sw-plus { background: var(--pop); }
.sw-panel.open .sw-plus { transform: rotate(45deg); }
.sw-open { position: relative; display: grid; grid-template-columns: 1fr; gap: 1.1rem; padding: .3rem 1.3rem 1.6rem; opacity: 0; transition: opacity .2s; }
.sw-panel.open .sw-open { opacity: 1; transition: opacity .35s .15s; }
.sw-n { display: none; }
.sw-eyebrow { font-size: .95rem; color: #666; margin: 0 0 .7rem; }
.sw-text h3 { font-size: clamp(1.6rem, 2vw, 2rem); font-weight: 400; letter-spacing: -.02em; line-height: 1.15; margin: 0 0 .9rem; }
.sw-desc { font-size: 1.05rem; line-height: 1.55; margin: 0 0 .9rem; max-width: 30rem; }
.sw-text ul { margin: 0 0 1.1rem; padding-left: 1.2rem; font-size: 1rem; line-height: 1.55; }
.sw-tags { display: flex; gap: .55rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.sw-tags span { border: 1px solid #d3d3cc; border-radius: 999px; padding: .4rem .95rem; font-size: .9rem; }
.sw-text .btn { border-radius: 12px; padding: .85rem 1.3rem; font-size: 1rem; }
.sw-img { display: block; order: -1; border-radius: 20px; overflow: hidden; background: #ddd; aspect-ratio: 16 / 10; }
.sw-img img { width: 100%; height: 100% !important; object-fit: cover; display: block; transition: transform .6s var(--ease); }
.sw-img:hover img { transform: scale(1.04); }
.sw-all { display: inline-block; margin-top: 1.8rem; }

@media (min-width: 1180px) {
  .sw-list { flex-direction: row; gap: .9rem; height: 33rem; }
  .sw-panel { flex: 0 0 4.6rem; max-height: none; transition: flex-grow .55s var(--ease), background .3s var(--ease); }
  .sw-panel.open { flex: 1 1 4.6rem; max-height: none; }
  .sw-tab { position: absolute; inset: 0; height: auto; flex-direction: column; justify-content: space-between; padding: 1.6rem 0 1.4rem; text-align: center; }
  .sw-num { min-width: 0; }
  .sw-name { flex: none; writing-mode: vertical-rl; transform: rotate(180deg); font-size: 1.35rem; }
  .sw-panel.open .sw-tab { opacity: 0; visibility: hidden; transition: opacity .2s, visibility 0s .2s; }
  .sw-panel.open .sw-plus { transform: none; }
  .sw-open { position: absolute; inset: 0; width: 100%; min-width: 48rem; grid-template-columns: 2.6rem minmax(0, 1fr) minmax(14rem, 36%); gap: 1.4rem; padding: 1.8rem 1.8rem 1.8rem 2.1rem; }
  .sw-n { display: block; font-size: 1rem; padding-top: .15rem; }
  .sw-img { order: 0; aspect-ratio: auto; align-self: stretch; }
}

/* ---- selected work: spotlight, preview, staged entrance and depth ---- */
.sw-panel::before { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.75), rgba(255,255,255,0) 62%); }
.sw-panel.open::before { background: radial-gradient(560px circle at var(--mx, 50%) var(--my, 50%), rgba(185,177,63,.13), rgba(185,177,63,0) 62%); }
.sw-peek { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity .4s var(--ease); pointer-events: none; }
@media (hover: hover) {
  .sw-panel:hover::before { opacity: 1; }
  .sw-panel:not(.open):hover .sw-peek { opacity: .3; }
}

/* the text rises in, one line after another, when a panel opens */
.sw-text > * { opacity: 0; transform: translateY(12px); transition: opacity .25s var(--ease), transform .3s var(--ease); }
.sw-panel.open .sw-text > * { opacity: 1; transform: none; transition: opacity .4s var(--ease) calc(var(--k, 0) * 55ms + .2s), transform .5s var(--ease) calc(var(--k, 0) * 55ms + .2s); }
.sw-text > :nth-child(1) { --k: 0; }
.sw-text > :nth-child(2) { --k: 1; }
.sw-text > :nth-child(3) { --k: 2; }
.sw-text > :nth-child(4) { --k: 3; }
.sw-text > :nth-child(5) { --k: 4; }
.sw-text > :nth-child(6) { --k: 5; }

/* the image settles into place, and follows the pointer a little */
.sw-img img { scale: 1.2; transition: scale .9s var(--ease); will-change: translate; }
.sw-panel.open .sw-img img { scale: 1.1; }
.sw-img:hover img { transform: none; }

/* the panels rise in, one after another, when the section scrolls into view */
.js .sw-list[data-reveal], .js .sw-list[data-reveal].in { opacity: 1; transform: none; transition: none; }
.js .sw-list:not(.in) .sw-panel { opacity: 0; }
.js .sw-list.in .sw-panel { animation: sw-rise .7s var(--ease-out) calc(var(--k, 0) * 80ms) both; }
@keyframes sw-rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }

@media (min-width: 1180px) and (hover: hover) {
  .sw-panel { transition: flex-grow .55s var(--ease), flex-basis .35s var(--ease), background .3s var(--ease); }
  .sw-panel:not(.open):hover { flex-basis: 5.8rem; }
}

/* ---- selected work: polish ---- */
/* timing: opening is a layout change, so it gets a strong ease-out and under half a second */
.sw-panel { transition: max-height .4s var(--ease), background .25s var(--ease), scale 160ms var(--ease-out); }
.sw-panel.open { max-height: var(--open-h, 80rem); }
.sw-panel.open .sw-text > * { transition: opacity .35s var(--ease) calc(var(--k, 0) * 55ms + .15s), transform .45s var(--ease) calc(var(--k, 0) * 55ms + .15s); }
.sw-img img { transition: scale .7s var(--ease); will-change: auto; }
.sw-panel.open .sw-img img { will-change: translate, scale; }
.js .sw-list.in .sw-panel { animation-duration: .55s; }
.sw-plus { transition: transform .3s var(--ease), background .2s, scale 160ms var(--ease-out); }
.sw-open:focus { outline: none; }

/* the spotlight is its own element, moved by transform, so no custom property is re-inherited on every mouse move */
.sw-panel::before { display: none; }
.sw-glow { position: absolute; left: 0; top: 0; width: 560px; height: 560px; margin: -280px 0 0 -280px; border-radius: 50%; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(circle, rgba(255,255,255,.75), rgba(255,255,255,0) 62%); will-change: transform; }
.sw-panel.open .sw-glow { background: radial-gradient(circle, rgba(185,177,63,.14), rgba(185,177,63,0) 62%); }
@media (hover: hover) { .sw-panel:hover .sw-glow { opacity: 1; } }

/* pressing gives feedback */
.sw-panel:not(.open):active { scale: .985; }
.sw-tab:active .sw-plus { scale: .88; }

/* touch screens: a tap must not leave a hover colour stuck on */
@media (hover: none) {
  .sw-panel:not(.open):hover { background: #dedfd9; }
  .sw-tab:hover .sw-plus { background: #141414; }
}

@media (min-width: 1180px) {
  .sw-panel { transition: flex-grow .45s var(--ease), background .25s var(--ease), scale 160ms var(--ease-out); }
  .sw-panel.open { max-height: none; }
}
@media (min-width: 1180px) and (hover: hover) {
  .sw-panel { transition: flex-grow .45s var(--ease), flex-basis .3s var(--ease), background .25s var(--ease), scale 160ms var(--ease-out); }
}

/* reduced motion: no travelling, but the text still fades so the change is clear */
@media (prefers-reduced-motion: reduce) {
  .sw-text > * { transform: none !important; transition: opacity .2s ease !important; }
  .sw-img img { scale: 1.1 !important; }
  .js .sw-list:not(.in) .sw-panel { opacity: 1; }
}

/* ---- timeline: education and experience ---- */
.tl-sec { background: #f1f1ec; padding: clamp(4rem, 8vw, 7rem) var(--gut); font-family: 'Instrument Sans', var(--sans); }
.tl-head { display: grid; grid-template-columns: 1fr; gap: 1.2rem; align-items: end; }
.tl-eyebrow { display: flex; align-items: center; gap: .8rem; margin: 0 0 1.2rem; font: 500 .72rem/1 ui-monospace, 'SF Mono', Menlo, monospace; letter-spacing: .16em; text-transform: uppercase; color: #6f6f69; }
.tl-eyebrow i { width: 3rem; height: 1px; background: #b5b5ae; }
.tl-h2 { font-size: clamp(2.6rem, 6vw, 5rem); font-weight: 600; letter-spacing: -.045em; line-height: 1; margin: 0; }
.tl-h2 em { font-family: 'Instrument Serif', Georgia, serif; font-style: italic; font-weight: 400; letter-spacing: -.02em; color: #8c8c86; }
.tl-note { margin: 0; max-width: 16rem; font-size: .95rem; line-height: 1.5; color: #6f6f69; }
@media (min-width: 900px) { .tl-head { grid-template-columns: 1fr auto; } .tl-note { text-align: right; } }

.tl { position: relative; list-style: none; margin: clamp(3rem, 6vw, 5rem) 0 0; padding: 0; }
.tl::before { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; margin-left: -.5px; background: #c2c2bb; }
.tl-line { position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: #141414; transform-origin: top; transform: scaleY(0); }
.tl-item { --yr: clamp(3.2rem, 7.5vw, 6.2rem); position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 3.4rem minmax(0, 1fr); align-items: start; padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.tl-dot { grid-column: 2; grid-row: 1; justify-self: center; width: 14px; height: 14px; margin-top: calc(var(--yr) / 2 - 7px); border-radius: 50%; background: #f1f1ec; border: 2px solid #9a9a93; z-index: 1; transition: background .3s var(--ease), border-color .3s var(--ease), scale .3s var(--ease); }
.tl-item.on .tl-dot { background: #141414; border-color: #141414; scale: 1.2; }
.tl-year { grid-row: 1; font-size: var(--yr); font-weight: 700; letter-spacing: -.055em; line-height: 1; color: #1d2230; }
.tl-item.l .tl-card { grid-column: 1; grid-row: 1; justify-self: end; }
.tl-item.l .tl-year { grid-column: 3; justify-self: start; padding-left: .5rem; }
.tl-item.r .tl-card { grid-column: 3; grid-row: 1; justify-self: start; }
.tl-item.r .tl-year { grid-column: 1; justify-self: end; padding-right: .5rem; text-align: right; }

.tl-card { width: 100%; max-width: 30rem; background: #fff; border: 1px solid rgba(0,0,0,.06); border-radius: 26px; padding: 1.5rem 1.7rem 1.6rem; box-shadow: 0 18px 44px rgba(30,30,20,.07); }
.tl-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.1rem; }
.tl-tag { font: 600 .66rem/1 ui-monospace, 'SF Mono', Menlo, monospace; letter-spacing: .14em; text-transform: uppercase; padding: .45rem .7rem; border-radius: 8px; background: #e8e8e1; color: #555; }
.tl-tag.exp { background: #141414; color: #fff; }
.tl-dates { font: 500 .7rem/1.2 ui-monospace, 'SF Mono', Menlo, monospace; letter-spacing: .1em; text-transform: uppercase; color: #8a8a84; text-align: right; }
.tl-card h3 { font-size: 1.45rem; letter-spacing: -.03em; font-weight: 600; line-height: 1.15; margin: 0 0 .3rem; }
.tl-org { color: #6f6f69; margin: 0 0 1rem; }
.tl-card ul { margin: 0 0 1.1rem; padding-left: 1.1rem; color: #43433f; font-size: .96rem; line-height: 1.55; }
.tl-card li + li { margin-top: .35rem; }
.tl-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.tl-chips span { background: #f3f3ee; border: 1px solid #e3e3dc; border-radius: 999px; padding: .32rem .8rem; font-size: .82rem; }
.tl-chips .hi { background: #141414; border-color: #141414; color: #fff; }

.js .tl-card { opacity: 0; transform: translateX(-28px); transition: opacity .6s var(--ease), transform .7s var(--ease); }
.js .tl-item.r .tl-card { transform: translateX(28px); }
.js .tl-year { color: #c8c8c1; transition: color .5s var(--ease); }
.js .tl-item.in .tl-year { color: #1d2230; }
.js .tl-item.in .tl-card { opacity: 1; transform: none; }

@media (max-width: 899px) {
  .tl::before, .tl-line { left: 1.1rem; margin-left: 0; }
  .tl-item { --yr: clamp(2.6rem, 12vw, 3.6rem); grid-template-columns: 2.4rem minmax(0, 1fr); }
  .tl-dot { grid-column: 1; justify-self: start; margin-left: calc(1.1rem - 7px); }
  .tl-item.l .tl-year, .tl-item.r .tl-year { grid-column: 2; grid-row: 1; justify-self: start; text-align: left; padding: 0; }
  .tl-item.l .tl-card, .tl-item.r .tl-card { grid-column: 2; grid-row: 2; justify-self: stretch; max-width: none; margin-top: 1rem; }
  .js .tl-card, .js .tl-item.r .tl-card { transform: translateY(20px); }
}
@media (prefers-reduced-motion: reduce) {
  .tl-line { transform: none; }
}

/* ---- projects page: coverflow gallery ---- */
.gl-sec { background: #f1f1ec; padding: clamp(7rem, 12vw, 9rem) 0 clamp(4rem, 8vw, 6rem); overflow: hidden; }
.gl-head { text-align: center; padding: 0 var(--gut); }
.gl-eyebrow { font: 500 .72rem/1 ui-monospace, 'SF Mono', Menlo, monospace; letter-spacing: .18em; text-transform: uppercase; color: #6f6f69; margin: 0 0 1.1rem; }
.gl-h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 600; letter-spacing: -.045em; line-height: 1.02; margin: 0; }
.gl-h1 em { font-family: 'Instrument Serif', Georgia, serif; font-style: italic; font-weight: 400; letter-spacing: -.02em; color: #8c8c86; }
.gl-sub { margin: 1.1rem auto 0; max-width: 30rem; font-size: 1.1rem; line-height: 1.5; color: #55554f; }
.gl-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; max-width: 60rem; margin: 2.2rem auto 2.4rem; padding: 0 var(--gut); }
.gl-chip, .gl-more { border: 1px solid #141414; background: transparent; color: #141414; border-radius: 999px; padding: .6rem 1.15rem; font: inherit; font-size: .92rem; line-height: 1; cursor: pointer; text-decoration: none; transition: background .2s var(--ease), color .2s var(--ease), scale 160ms var(--ease-out); }
.gl-chip:active, .gl-more:active { scale: .97; }
.gl-chip.on { background: #141414; color: #fff; }
.gl-more { display: inline-flex; align-items: center; gap: .5rem; }
@media (hover: hover) { .gl-chip:not(.on):hover, .gl-more:hover { background: rgba(20,20,20,.07); } }

.gl-stage { --cw: min(64vw, 20rem); --ch: calc(var(--cw) * 1.25); position: relative; height: calc(var(--ch) + 5rem); perspective: 1600px; touch-action: pan-y; cursor: grab; outline: none; -webkit-user-select: none; user-select: none; }
.gl-stage.drag { cursor: grabbing; }
.gl-stage:focus-visible { outline: 2px solid #141414; outline-offset: -6px; }
.gl-glow { position: absolute; left: 50%; top: 50%; width: min(78vw, 52rem); height: calc(var(--ch) * .9); transform: translate(-50%, -50%) scale(1.45, 1.9); border-radius: 50%; opacity: .95; will-change: transform; -webkit-mask-image: radial-gradient(closest-side, #000 45%, transparent 100%); mask-image: radial-gradient(closest-side, #000 45%, transparent 100%); background-color: #dcdcd5; transition: background-color .6s var(--ease); pointer-events: none; }
.gl-track { position: absolute; inset: 0; transform-style: preserve-3d; }
.gl-card { position: absolute; left: 50%; top: 50%; width: var(--cw); height: var(--ch); margin: calc(var(--ch) / -2) 0 0 calc(var(--cw) / -2); border-radius: 22px; overflow: hidden; background: #d9d9d2; box-shadow: 0 26px 54px rgba(20,20,20,.22); color: #fff; text-decoration: none; will-change: transform; }
.gl-card img { width: 100%; height: 100% !important; object-fit: cover; display: block; pointer-events: none; -webkit-user-drag: none; will-change: translate; }
.gl-dim { position: absolute; inset: 0; background: #0f0f14; opacity: 0; pointer-events: none; }
.gl-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 3rem 1.2rem 1.1rem; background: linear-gradient(to top, rgba(10,10,12,.66), rgba(10,10,12,0)); opacity: 0; transition: opacity .3s var(--ease); display: grid; gap: .15rem; }
.gl-cap b { font-weight: 500; font-size: 1rem; letter-spacing: -.01em; }
.gl-cap small { font-size: .78rem; opacity: .8; }
.gl-card.is-center .gl-cap { opacity: 1; }

.gl-ctrl { display: flex; justify-content: center; align-items: center; gap: 1.1rem; margin-top: 1.4rem; }
.gl-btn { width: 3rem; height: 3rem; padding: 0; border-radius: 50%; border: 1px solid #141414; background: transparent; color: #141414; cursor: pointer; display: grid; place-items: center; font-size: 1.15rem; line-height: 1; transition: background .2s var(--ease), color .2s var(--ease), scale 160ms var(--ease-out); }
.gl-btn:active { scale: .93; }
@media (hover: hover) { .gl-btn:hover { background: #141414; color: #fff; } }
.gl-count { min-width: 4.8rem; text-align: center; font: 500 .8rem/1 ui-monospace, 'SF Mono', Menlo, monospace; letter-spacing: .12em; color: #6f6f69; }
.gl-info { max-width: 36rem; margin: 2.2rem auto 0; padding: 0 var(--gut); text-align: center; transition: opacity .17s var(--ease), transform .25s var(--ease); }
.gl-info.out { opacity: 0; transform: translateY(8px); }
.gl-meta { margin: 0; font: 500 .72rem/1 ui-monospace, 'SF Mono', Menlo, monospace; letter-spacing: .14em; text-transform: uppercase; color: #6f6f69; }
.gl-info h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 600; letter-spacing: -.03em; line-height: 1.15; margin: .7rem 0 .6rem; }
.gl-desc { margin: 0 0 1.3rem; color: #55554f; line-height: 1.55; min-height: 3.1em; }
.gl-open { border-radius: 12px; padding: .9rem 1.4rem; }
@media (max-width: 899px) { .gl-sec { padding-top: 6.5rem; } }
@media (prefers-reduced-motion: reduce) { .gl-glow { transition: none; } }

/* ---- gallery autoplay: progress line and pause button ---- */
.gl-mid { display: grid; justify-items: center; gap: .55rem; }
.gl-prog { display: block; width: 4.8rem; height: 2px; border-radius: 2px; background: rgba(20,20,20,.15); overflow: hidden; }
.gl-prog i { display: block; width: 100%; height: 100%; background: #141414; transform: scaleX(0); transform-origin: left; }
.gl-prog.run i { animation: gl-fill 3s linear forwards; }
@keyframes gl-fill { to { transform: scaleX(1); } }
.gl-pause { width: 2.2rem; height: 2.2rem; padding: 0; margin-left: .3rem; border-radius: 50%; border: 1px solid rgba(20,20,20,.35); background: transparent; color: #141414; cursor: pointer; font-size: .6rem; letter-spacing: -.1em; line-height: 1; display: grid; place-items: center; transition: background .2s var(--ease), color .2s var(--ease), scale 160ms var(--ease-out); }
.gl-pause:active { scale: .92; }
@media (hover: hover) { .gl-pause:hover { background: #141414; color: #fff; } }
@media (prefers-reduced-motion: reduce) { .gl-prog, .gl-pause { display: none; } }

/* ---- smaller brand mark ---- */
body[data-page="home"] .brand { gap: .45rem; }
body[data-page="home"] .brand::before { width: 1rem; height: 1rem; }
@media (max-width: 560px) { body[data-page="home"] .brand::before { width: .85rem; height: .85rem; } }

/* ---- header: no logo mark ---- */
body[data-page="home"] .brand::before { display: none; }
body[data-page="home"] .brand { gap: 0; }

/* ---- header: the name is centred on every page ---- */
:root { --hdr: 4rem; }
.site-header { font-family: 'Instrument Sans', var(--sans); }
.bar { min-height: var(--hdr); padding-block: 0; }
.brand { position: absolute; left: 50%; top: calc(var(--hdr) / 2); transform: translate(-50%, -50%); white-space: nowrap; font-size: 1.6rem; font-weight: 400; letter-spacing: -.02em; }
.brand span { display: none; }
@media (min-width: 1180px) {
  .bar { justify-content: flex-start; }
  nav { flex: 1; gap: 2.2rem; }
  nav > a.btn { margin-left: auto; }
  nav > a, .has-sub > a { color: var(--ink); font-size: 1rem; }
}
@media (max-width: 1179px) {
  .bar, body[data-page="home"] .bar { position: static; justify-content: flex-end; }
  .menu { display: inline-block; }
  nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: flex-start; padding: 1.2rem 1.25rem 1.6rem; background: #fff; border-bottom: 1px solid var(--line); gap: 1rem; }
  nav.open { display: flex; }
  nav > a.btn, body[data-page="home"] nav > a.btn { margin-left: 0; }
  .has-sub .sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: none; padding: .5rem 0 0 1rem; display: flex; flex-direction: column; gap: .7rem; }
  .has-sub > a small { display: none; }
}
@media (max-width: 560px) { .brand, body[data-page="home"] .brand { font-size: 1.25rem; } }

/* projects carousel: let clicks reach the cards (the 3D track sat in front of them) */
.gl-track { pointer-events: none; }
.gl-card { pointer-events: auto; }

/* ---- draft image placeholder ---- */
.img-ph { display: grid; place-items: center; width: 100%; aspect-ratio: 16 / 9; padding: 1rem; text-align: center; border: 1px dashed #b5b5ae; border-radius: 18px; background: repeating-linear-gradient(135deg, #ececE6, #ececE6 12px, #e4e4de 12px, #e4e4de 24px); color: #6f6f69; font-size: .9rem; line-height: 1.4; }

/* ---- case study: research cards ---- */
.rs-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; margin-top: 2rem; }
@media (min-width: 900px) { .rs-grid { grid-template-columns: repeat(3, 1fr); gap: 1.2rem; } }
.rs-card { background: #f4f4ef; border: 1px solid var(--line); border-radius: 24px; padding: 1.5rem 1.5rem 1.6rem; display: flex; flex-direction: column; gap: 1rem; }
.rs-card small { font: 500 .7rem/1 ui-monospace, 'SF Mono', Menlo, monospace; letter-spacing: .14em; text-transform: uppercase; color: #6f6f69; }
.rs-card h3 { font-size: 1.35rem; letter-spacing: -.03em; line-height: 1.15; margin: 0; font-weight: 600; }
.rs-card p { margin: 0; color: #43433f; line-height: 1.55; font-size: .96rem; }
.rs-card ul { margin: 0; padding-left: 1.1rem; color: #43433f; font-size: .94rem; line-height: 1.5; }
.rs-card li + li { margin-top: .3rem; }
.rs-nums { display: flex; flex-wrap: wrap; gap: 1.2rem 1.6rem; }
.rs-nums b { display: block; font-size: 2rem; letter-spacing: -.045em; line-height: 1; font-weight: 700; }
.rs-nums span { display: block; margin-top: .3rem; font-size: .82rem; color: #6f6f69; max-width: 8rem; line-height: 1.3; }
.rs-h3 { font-size: 1.25rem; letter-spacing: -.02em; margin: 2.6rem 0 1rem; font-weight: 600; }
.rs-led { margin: 0; padding-left: 1.3rem; display: grid; gap: .7rem; max-width: 40rem; line-height: 1.55; }
.rs-src { margin: 1.8rem 0 0; font-size: .82rem; color: #6f6f69; max-width: 46rem; line-height: 1.55; }

/* ---- case study: moodboard ---- */
.mb-grid { display: grid; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 9.5rem; gap: .8rem; margin-top: 1.8rem; }
@media (min-width: 800px) { .mb-grid { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 10.5rem; } }
.mb-t { position: relative; border-radius: 20px; overflow: hidden; min-width: 0; }
.mb-t.w2 { grid-column: span 2; }
.mb-t.h2 { grid-row: span 2; }
.mb-t .img-ph { height: 100%; aspect-ratio: auto; border-radius: 20px; font-size: .82rem; }
.mb-t small { font: 500 .66rem/1 ui-monospace, 'SF Mono', Menlo, monospace; letter-spacing: .14em; text-transform: uppercase; opacity: .7; }
.mb-dark { background: #141414; color: #fff; padding: 1.1rem; display: flex; flex-direction: column; justify-content: space-between; }
.mb-dark b { font-size: 1.5rem; letter-spacing: -.04em; line-height: 1.1; font-weight: 600; }
.mb-sw, .mb-type, .mb-note { background: #f4f4ef; border: 1px solid var(--line); padding: 1.1rem; display: flex; flex-direction: column; justify-content: space-between; gap: .6rem; }
.mb-sw p, .mb-type p, .mb-note p { margin: 0; font-size: .85rem; line-height: 1.45; color: #43433f; }
.mb-dots { display: flex; gap: .5rem; }
.mb-dots i { width: 2.2rem; height: 2.2rem; border-radius: 50%; border: 1px dashed #b5b5ae; background: repeating-linear-gradient(135deg, #ececE6, #ececE6 6px, #e4e4de 6px, #e4e4de 12px); }
.mb-type b { font-size: 3.2rem; letter-spacing: -.05em; line-height: 1; font-weight: 600; }

/* ---- moodboard: drawn tiles ---- */
.mb-art { background: #e8e8e3; }
.mb-art svg { width: 100%; height: 100%; display: block; }
.mb-cap { position: absolute; left: .7rem; bottom: .7rem; background: rgba(255,255,255,.88); color: #1c1c21; font-size: .72rem; line-height: 1; padding: .4rem .65rem; border-radius: 999px; }
.mb-swatches { display: grid; grid-template-columns: repeat(5, 1fr); gap: .5rem; }
.mb-swatches div { min-width: 0; }
.mb-swatches i { display: block; height: 3.4rem; border-radius: 14px; border: 1px solid rgba(0,0,0,.08); margin-bottom: .45rem; }
.mb-swatches b { display: block; font-weight: 500; font-size: .7rem; line-height: 1.2; }
.mb-swatches span { display: block; font: .64rem/1.3 ui-monospace, 'SF Mono', Menlo, monospace; color: #6f6f69; }

/* ---- case study: drawn images ---- */
.img-art { width: 100%; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: #1c1c21; }
.img-art svg { width: 100%; height: 100%; display: block; }

/* ---- case study: drawn phone screens ---- */
.mock-bg svg { display: block; width: 100%; height: auto; }

/* ---- case study: real screens ---- */
.img-art img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.mock-bg img { max-width: 300px; margin: 0 auto; }

.mb-art img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---- case study: desktop carousel + phones image ---- */
.cs-car { margin: 0; }
.car-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 18px; }
.car-track::-webkit-scrollbar { display: none; }
.car-track:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.car-slide { flex: 0 0 100%; scroll-snap-align: start; margin: 0; }
.car-slide img { display: block; width: 100%; height: auto; border-radius: 18px; }
.car-cap { margin: .9rem 0 0; color: var(--muted); max-width: 44rem; }
.car-cap b { color: var(--ink); font-weight: 500; }
.car-ui { display: flex; align-items: center; gap: 1rem; margin-top: 1.1rem; }
.car-dots { display: flex; gap: .5rem; flex: 1; }
.car-dot { width: 34px; height: 4px; padding: 0; border: 0; border-radius: 2px; background: rgba(0,0,0,.18); cursor: pointer; transition: background .3s, width .3s; }
.car-dot[aria-current=true] { background: var(--ink, #111); width: 54px; }
.car-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(0,0,0,.22); background: transparent; color: inherit; font-size: 1.1rem; cursor: pointer; transition: background .2s, transform .2s; }
.car-btn:hover { background: rgba(0,0,0,.06); }
.car-btn:active { transform: scale(.94); }
.cs-phones img { display: block; width: 100%; height: auto; border-radius: 18px; }

.cs-note { display: inline-block; max-width: 44rem; margin: 1.1rem 0 1.5rem; padding: .8rem 1.05rem; border: 1px solid rgba(0,0,0,.18); border-radius: 14px; font-size: .9rem; line-height: 1.55; color: var(--muted); }
.cs-note b { color: var(--ink); font-weight: 500; }

.fact-row.fact-n3{grid-template-columns:repeat(3,1fr)}.ah-stats.ah-3{grid-template-columns:repeat(3,1fr)}@media(max-width:640px){.fact-row.fact-n3,.ah-stats.ah-3{grid-template-columns:1fr}}

.cs-contrib ul{list-style:none;margin:0;padding:0;max-width:44rem}.cs-contrib li{padding:.85rem 0;border-top:1px solid var(--line);font-size:1.05rem}.cs-contrib li:last-child{border-bottom:1px solid var(--line)}

.sk-caps{list-style:none;margin:1.6rem 0 0;padding:0;max-width:26rem}.sk-caps li{padding:.7rem 0;border-top:1px solid var(--line);font-size:1rem}.sk-caps li:last-child{border-bottom:1px solid var(--line)}

.cs-live-top{display:none}@media(max-width:700px){.cs-live-top{display:inline-flex;margin:.2rem 0 1.6rem}.pd-meta .meta-live{display:none}}

/* GLASS:START (interface-only glass layer. Delete everything between START and END to remove) */
body[data-page]{background:#f6f6fb}
body[data-page]::before{content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;background:radial-gradient(55rem 38rem at 8% -8%,#dbe4ff 0,transparent 62%),radial-gradient(46rem 36rem at 96% 8%,#ffe2d4 0,transparent 62%),radial-gradient(60rem 46rem at 52% 112%,#d6f0e4 0,transparent 62%)}
body[data-page] .site-header,body[data-page] .site-header.stuck{background:rgba(255,255,255,.58);border-bottom-color:rgba(255,255,255,.7);-webkit-backdrop-filter:blur(18px) saturate(160%);backdrop-filter:blur(18px) saturate(160%)}
body[data-page] .btn-sm,body[data-page] .btn-ghost,body[data-page] .menu{background:rgba(255,255,255,.45);border-color:rgba(255,255,255,.75);color:var(--ink);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);box-shadow:0 1px 0 rgba(255,255,255,.8) inset,0 4px 14px rgba(20,30,70,.07)}
body[data-page] .car-btn{background:rgba(255,255,255,.55);border-color:rgba(255,255,255,.8);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);box-shadow:0 4px 14px rgba(20,30,70,.1)}
body[data-page] .car-btn:hover{background:rgba(255,255,255,.8)}
body[data-page] .id-card{background:rgba(255,255,255,.62);border:1px solid rgba(255,255,255,.8);-webkit-backdrop-filter:blur(16px) saturate(150%);backdrop-filter:blur(16px) saturate(150%);box-shadow:0 22px 50px rgba(30,40,90,.14),0 1px 0 rgba(255,255,255,.9) inset}
body[data-page] .sw-panel{background:rgba(255,255,255,.46);border-color:rgba(255,255,255,.78);-webkit-backdrop-filter:blur(14px) saturate(150%);backdrop-filter:blur(14px) saturate(150%);box-shadow:0 8px 26px rgba(30,40,90,.07),0 1px 0 rgba(255,255,255,.85) inset}
body[data-page] .sw-panel:not(.open):hover{background:rgba(255,255,255,.66)}
body[data-page] .sw-panel.open{background:rgba(255,255,255,.88);border-color:rgba(255,255,255,.9)}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){body[data-page] .site-header,body[data-page] .site-header.stuck{background:#f4f4f0}body[data-page] .btn-sm,body[data-page] .btn-ghost,body[data-page] .menu,body[data-page] .car-btn{background:#f4f4f0}body[data-page] .id-card,body[data-page] .sw-panel,body[data-page] .sw-panel.open{background:#f6f6f2}}
@media (prefers-reduced-transparency:reduce){body[data-page] .site-header,body[data-page] .site-header.stuck{background:#f4f4f0;-webkit-backdrop-filter:none;backdrop-filter:none}body[data-page] .btn-sm,body[data-page] .btn-ghost,body[data-page] .menu,body[data-page] .car-btn{background:#f4f4f0;-webkit-backdrop-filter:none;backdrop-filter:none}body[data-page] .id-card,body[data-page] .sw-panel,body[data-page] .sw-panel.open{background:#f6f6f2;-webkit-backdrop-filter:none;backdrop-filter:none}}
@media (prefers-contrast:more){body[data-page] .site-header,body[data-page] .site-header.stuck{background:#fff}body[data-page] .sw-panel,body[data-page] .id-card{background:#fff}}
body[data-page] .hero-id,body[data-page] .sw-sec{background:transparent}
body[data-page] .btn-sm,body[data-page] .btn-sm span,body[data-page] .btn-ghost,body[data-page] .btn-ghost span{color:var(--ink)}
/* GLASS:END */
