/* Portfolio screen system. site.css remains the fallback and print stylesheet. */
@font-face { font-family: 'Portfolio UI'; font-style: normal; font-weight: 100 900; font-display: optional; src: url('/assets/fonts/inter-latin.woff2') format('woff2'); }
@font-face { font-family: 'Portfolio Display'; font-style: normal; font-weight: 300 700; font-display: optional; src: url('/assets/fonts/space-grotesk-latin.woff2') format('woff2'); }
:root {
  color-scheme: dark;
  --bg: #091117;
  --surface: #111e27;
  --raised: #1b2d38;
  --text: #f0f5f4;
  --text-2: #bacbd2;
  --muted: #a4b8c2;
  --accent: #a4e9cd;
  --accent-ink: #10271f;
  --accent-soft: rgba(164,233,205,.09);
  --live: #a4e9cd;
  --live-soft: rgba(164,233,205,.09);
  --live-glow: rgba(164,233,205,.25);
  --evidence: #f2ca91;
  --evidence-soft: rgba(242,202,145,.08);
  --hair: rgba(210,236,240,.12);
  --hair-2: rgba(210,236,240,.24);
  --bar: rgba(12,23,31,.96);
  --cyan: #a5d8ec;
  --head: 'Portfolio Display','Segoe UI',Roboto,Arial,sans-serif;
  --body: 'Portfolio UI',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Arial,sans-serif;
  --mono: Consolas, 'SFMono-Regular', 'Liberation Mono', monospace;
  --radius: 20px;
  --gutter: clamp(20px,4vw,56px);
  --section-space: clamp(64px,7vw,100px);
  --ease: cubic-bezier(.22,1,.36,1);
  --shadow: 0 20px 48px rgba(0,0,0,.18);
}
html { scroll-padding-top: 110px; }
body { font-size: 16px; line-height: 1.7; background: radial-gradient(ellipse 800px 650px at 100% 0,rgba(45,94,87,.18),transparent 75%),var(--bg); }
::selection { background: var(--accent); color: var(--accent-ink); }
.wrap { width: 100%; max-width: 1400px; padding-left: var(--gutter); padding-right: var(--gutter); }
h1,h2,h3 { letter-spacing: -.035em; line-height: 1.16; font-weight: 600; text-wrap: balance; }
a { text-underline-offset: 4px; }
a,button,select,input { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
:focus:not(:focus-visible) { outline: none; }
.skip { z-index: 1000; }
.skip:focus { position: fixed; top: 16px; }
[id] { scroll-margin-top: 0; }
.grid > *, .split > *, .hero-split > *, .hero-in > * { min-width: 0; }
.section { padding: var(--section-space) 0; }
.section.tight { padding: 0; }
.section-head { position: static; margin-bottom: 36px; max-width: 850px; }
.h2 { font-size: clamp(30px,3.3vw,46px); line-height: 1.18; max-width: 20em; margin-bottom: 20px; }
.lead { font-size: clamp(16px,1.3vw,18px); line-height: 1.75; max-width: 43em; }
.kicker,.label,.r-title { text-transform: none; font-size: 13px; letter-spacing: .025em; font-weight: 500; }
.kicker { margin-bottom: 16px; }
.grid { gap: 22px; }
.grid.two { grid-template-columns: repeat(2,minmax(0,1fr)); }
.grid.three { grid-template-columns: repeat(3,minmax(0,1fr)); }
.grid.four { grid-template-columns: repeat(4,minmax(0,1fr)); }
.split { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0,1.15fr); gap: 72px; align-items: start; }
.split .section-head { margin-bottom: 0; }

/* Only navigation is sticky. Content headings always remain in document flow. */
.topbar { width: calc(100% - 40px); max-width: 1328px; top: 14px; margin: 14px auto 0; z-index: 900; border: 1px solid var(--hair-2); border-radius: 16px; box-shadow: 0 12px 38px rgba(0,0,0,.16); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.topbar-in { height: 72px; padding: 0 24px; }
.brand { min-height: 44px; font-size: 17px; letter-spacing: -.03em; }
.brand img { width: 28px; height: 28px; margin-right: 12px; }
.nav { display: flex; align-items: center; gap: 12px; }
.nav a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; margin: 0; padding: 10px 12px; position: relative; font-size: 14px; }
.nav a:not(.btn)::after { content: ''; height: 2px; position: absolute; left: 12px; right: 12px; bottom: 4px; background: var(--accent); transform: scaleX(0); transform-origin: left; }
.nav a[aria-current],.nav a:hover { color: var(--text); }
.nav a[aria-current]::after,.nav a:hover::after { transform: scaleX(1); }
.nav .btn { margin-left: 8px; padding: 12px 22px; }
.nav .btn,.nav .btn[aria-current],.nav .btn:hover { color: var(--accent-ink); }
.btn { min-height: 48px; padding: 14px 23px; border-radius: 10px; line-height: 1.3; font-size: 14px; text-align: center; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); box-shadow: inset 0 1px 0 rgba(255,255,255,.2); }
.btn-ghost { background: rgba(22,39,49,.7); border-color: var(--hair-2); }
.btn-sm { min-height: 44px; }
.btn-row .btn { margin: 0 10px 10px 0; }
.btn:active { transform: translateY(0); }
.dot { animation: none; -webkit-animation: none; flex: none; }
.live { font-size: 12px; line-height: 1.25; padding: 8px 10px; }
.open { display: inline-flex; align-items: center; font-size: 12px; font-weight: 500; line-height: 1.65; margin-bottom: 24px; padding: 9px 14px; background: var(--accent-soft); border: 1px solid rgba(164,233,205,.24); border-radius: 99px; color: var(--accent); }

/* Portrait: a square image in an anodized frame, supported by a quiet halo. */
.hero { isolation: isolate; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(ellipse at 80% 45%,rgba(74,129,110,.15),transparent 45%); }
.hero-in { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,.9fr); gap: 64px; align-items: center; padding-top: 60px; padding-bottom: 64px; }
.hero-copy { min-width: 0; }
.ey { margin-bottom: 24px; }
.eyebrow { font-size: 14px; text-transform: none; letter-spacing: .01em; }
.hero-title { margin-bottom: 24px; }
.big-num { font-size: clamp(96px,9vw,132px); font-weight: 500; letter-spacing: -.055em; line-height: 1.1; color: var(--text); }
.big-num .n { display: inline-block; width: 1.75em; font-variant-numeric: tabular-nums; }
.big-num .plus { color: var(--accent); }
.hero-line { margin-top: 20px; max-width: 14em; font-size: clamp(34px,3.7vw,52px); font-weight: 500; line-height: 1.3; }
.hero-sub { font-size: 17px; line-height: 1.8; max-width: 33em; margin-bottom: 26px; }
.hero-proof { display: flex; flex-wrap: wrap; align-items: center; column-gap: 16px; margin-top: 12px; font-size: 12px; }
.hero-proof .live { margin: 0 0 8px; }
.hero-proof a { display: inline-flex; align-items: center; min-height: 44px; margin: 0; }
.portrait-stage { position: relative; justify-self: end; width: 100%; max-width: 470px; padding: 20px; isolation: isolate; }
.portrait-stage::before { content: ''; position: absolute; inset: -12%; background: radial-gradient(ellipse,rgba(108,191,151,.18),transparent 65%); z-index: -1; pointer-events: none; }
.portrait-stage::after { content: ''; position: absolute; inset: 4px; border: 1px solid rgba(164,233,205,.24); border-radius: 42px; transform: rotate(-3deg); z-index: -1; pointer-events: none; }
.portrait-float { position: relative; }
.portrait-frame { position: relative; border: 1px solid rgba(255,255,255,.25); padding: 9px; border-radius: 30px; background: linear-gradient(135deg,#314d48,#10222a 45%,#203e3e); box-shadow: 0 26px 70px rgba(0,0,0,.34),inset 0 1px 0 rgba(255,255,255,.16); }
.portrait-frame::after { content: ''; position: absolute; inset: 9px; border: 1px solid rgba(255,255,255,.14); border-radius: 21px; pointer-events: none; }
.portrait { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 21px; }
.photo-wrap { position: relative; max-width: 330px; width: 100%; padding: 9px; border: 1px solid var(--hair-2); border-radius: 28px; background: linear-gradient(135deg,#2d4c43,#101f2a); box-shadow: var(--shadow); }
.photo { width: 100%; aspect-ratio: 1; object-fit: cover; max-width: none; border-radius: 20px; }

/* A compact proof strip and a separate, non-sticky capability composition. */
.stats { border-left: 0; }
.stat { padding: 28px 30px; }
.stat:first-child { padding-left: 0; }
.stat:last-child { border-right: 0; }
.stat-num { font-size: clamp(34px,4vw,50px); font-weight: 500; color: var(--text); }
.stat-label { font-size: 13px; max-width: 18em; }
.capabilities { display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); column-gap: 64px; row-gap: 36px; align-items: start; }
.capabilities > .section-head { margin: 0; }
.capabilities > .grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.capabilities > .chips { grid-column: 1 / -1; margin-top: 4px; border-top: 1px solid var(--hair-2); padding-top: 32px; }
.chips-title { font-size: 14px; color: var(--text-2); margin-bottom: 16px; }
.chips-gap { margin-top: 24px; }
.chip { border: 1px solid var(--hair); background: rgba(26,44,55,.7); border-radius: 8px; font-size: 13px; line-height: 1.6; padding: 8px 12px; margin: 0 8px 10px 0; }
.chip-role { color: var(--text); background: var(--accent-soft); border-color: rgba(164,233,205,.23); }
.panel { position: relative; padding: 28px; background: linear-gradient(135deg,rgba(26,44,56,.76),rgba(16,29,39,.86)); border: 1px solid var(--hair); border-radius: var(--radius); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.panel h3 { font-size: 21px; line-height: 1.3; margin-bottom: 12px; }
.panel p { font-size: 15px; line-height: 1.8; }
.capabilities .panel { padding: 25px; }
.cap-icon { background: transparent; border: 1px solid var(--hair-2); border-radius: 12px; width: 44px; height: 44px; margin-bottom: 22px; color: var(--accent); }
.capabilities .panel:first-child { background: #d9eee5; color: #15352a; border-color: #d9eee5; }
.capabilities .panel:first-child p { color: #365549; }
.capabilities .panel:first-child .cap-icon { border-color: #36554955; color: #15352a; }
.capabilities .panel:nth-child(4) { background: #1c3440; }
.card { display: flex; flex-direction: column; overflow: hidden; text-decoration: none; }
.card::after { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; background: radial-gradient(400px circle at var(--spot-x,50%) var(--spot-y,0),rgba(164,233,205,.07),transparent 75%); }
.card:hover::after { opacity: 1; }
.app-top { align-items: flex-start; position: relative; }
.app-name { font-size: 20px; line-height: 1.3; }
.app-icon { width: 56px; height: 56px; border-radius: 15px; }
.app-cat { font-size: 12px; line-height: 1.6; }
.live-mini { white-space: normal; }
.app-problem { flex: 1; margin-bottom: 24px; }
.app-foot { margin-top: auto; row-gap: 10px; }
.engine { line-height: 1.5; border-radius: 7px; font-size: 12px; }
.go { line-height: 1.5; }
.page-home #work { background: #0d1922; }
.page-home #work .app-top { display: block; }
.page-home #work .app-icon { width: 68px; height: 68px; margin: 0 0 24px; }
.page-home #work .app-name { font-size: 23px; }
.page-home #work .card { padding: 32px; min-height: 300px; }
.page-home #stories .card::before { content: ''; display: block; flex: none; aspect-ratio: 1.91; margin: -28px -28px 26px; border-bottom: 1px solid var(--hair); background: var(--story-cover) center / cover no-repeat; }
.page-home #stories .card:nth-child(1) { --story-cover: url('/assets/share/ugong.jpg'); }
.page-home #stories .card:nth-child(2) { --story-cover: url('/assets/share/atrekes.jpg'); }
.page-home #stories .card:nth-child(3) { --story-cover: url('/assets/share/simpulan.jpg'); }
.page-home #stories .card:nth-child(4) { --story-cover: url('/assets/share/krepusko.jpg'); }
.page-home #stories .card:nth-child(5) { --story-cover: url('/assets/share/eelj.jpg'); }
.page-home #stories .card:nth-child(6) { --story-cover: url('/assets/share/linkscope.jpg'); }
.page-home #system { background: #101f27; }
.step { border-radius: 14px; }
.step::before { display: none; }
.step-no { font: 400 36px/1 var(--mono); color: var(--accent); margin-bottom: 24px; }
.page-home #mission { background: linear-gradient(120deg,#193a35,#142a33); }
.quote { font-size: clamp(28px,3.4vw,44px); line-height: 1.3; font-weight: 500; }
.tl-item { padding-bottom: 38px; }
.tl-when { font: 13px/1.6 var(--mono); margin-bottom: 10px; }
.tl-what { font-size: 23px; }
.tl-note { font-size: 16px; line-height: 1.85; }
.more a,.text-link { display: inline-flex; align-items: center; min-height: 44px; }
.cta-box { padding: 64px 40px; border-radius: 24px; background: linear-gradient(130deg,#1c3c37,#142b36); border-color: var(--hair-2); }
.cta-box::before { display: none; }
.cta-note a,.footer-links a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }
.footer { padding-top: 28px; padding-bottom: 28px; }
.footer-in { gap: 16px; }
.footer-links a { margin-bottom: 0; }

/* Inner-page heroes remain in flow, including their artwork at every size. */
.page-hero { position: relative; padding: 72px 0 64px; background: radial-gradient(ellipse at 100% 0,rgba(80,137,123,.14),transparent 60%); }
.page-hero h1 { font-size: clamp(36px,4.5vw,64px); line-height: 1.12; max-width: 15em; margin-bottom: 24px; }
.page-hero .lead { max-width: 39em; }
.page-cta { margin-top: 30px; }
.hero-split { display: grid; grid-template-columns: minmax(0,1.4fr) minmax(240px,.6fr); gap: 72px; align-items: center; }
.hero-split .photo-wrap { justify-self: end; }
.page-about .grid.three { grid-template-columns: repeat(3,minmax(0,1fr)); }
.page-about .examples { margin-top: 18px; color: var(--accent); font-size: 13px; }
.page-about main > .section:nth-of-type(3),.page-hire main > .section:nth-of-type(3) { background: #101e28; }
.page-hire main > .section:nth-of-type(2) .grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.page-hire .panel-big { font: 500 25px/1.35 var(--head); color: var(--text); margin: 14px 0; }
.page-hire .panel p + p { margin-top: 12px; }
.two-col { grid-template-columns: minmax(0,.65fr) minmax(0,1.35fr); gap: 56px; }
.prose p { line-height: 1.85; }
.list li { line-height: 1.75; }
.contact-list a { display: inline-flex; align-items: center; min-height: 44px; overflow-wrap: anywhere; }
.resume-head { align-items: flex-start; gap: 36px; }
.resume-head > div:first-child { flex: 1 1 480px; }
.resume-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.page-resume .page-hero { background: #122831; }
.r-section { display: grid; grid-template-columns: 190px minmax(0,1fr); gap: 22px 52px; padding: 42px 0; }
.r-section > .r-title { grid-column: 1; grid-row: 1; font: 500 15px/1.6 var(--head); }
.r-section > :not(.r-title) { grid-column: 2; }
.r-role { font-size: 22px; line-height: 1.4; }
.r-item { margin-bottom: 16px; }
.r-stats .stat { padding: 20px 16px; }
.r-stats .stat-num { font-size: 36px; }

/* Visual catalogue: real screens stay uncropped and all descriptions stay visible. */
.page-work .page-hero h1 { max-width: 13em; }
.page-work .card::before { content: ''; display: block; flex: none; height: 260px; margin: -28px -28px 26px; border-bottom: 1px solid var(--hair); background-color: #19303a; background-image: var(--project-screen),radial-gradient(ellipse at 50% 10%,rgba(142,194,178,.18),transparent 80%); background-size: contain,100% 100%; background-position: center; background-repeat: no-repeat; background-origin: content-box,border-box; padding: 24px; }
.page-work .card:nth-child(3n+2)::before { background-color: #1c303d; }
.page-work .card:nth-child(3n)::before { background-color: #25362f; }
.page-work .card:nth-child(1) { --project-screen: url('/assets/work/baldintza-1.webp'); }
.page-work .card:nth-child(2) { --project-screen: url('/assets/work/lipi-1_15-10-26-1.webp'); }
.page-work .card:nth-child(3) { --project-screen: url('/assets/work/nuqt-1_15-10-26-1.webp'); }
.page-work .card:nth-child(4) { --project-screen: url('/assets/work/muganhu-1.webp'); }
.page-work .card:nth-child(5) { --project-screen: url('/assets/work/subtitleshift-1.webp'); }
.page-work .card:nth-child(6) { --project-screen: url('/assets/work/jawibrunei-1.webp'); }
.page-work .card:nth-child(7) { --project-screen: url('/assets/work/lebese-1.webp'); }
.page-work .card:nth-child(8) { --project-screen: url('/assets/work/tactiglyph-1.webp'); }
.page-work .card:nth-child(9) { --project-screen: url('/assets/work/lakirawi-1.webp'); }
.page-work .card:nth-child(10) { --project-screen: url('/assets/work/brojilo-1.webp'); }
.page-work .card:nth-child(11) { --project-screen: url('/assets/work/pwyso-1.webp'); }
.page-work .card:nth-child(12) { --project-screen: url('/assets/work/temelie-1.webp'); }
.page-work .card:nth-child(13) { --project-screen: url('/assets/work/focusandflow-1.webp'); }
.page-work .card:nth-child(14) { --project-screen: url('/assets/work/ugong-1.webp'); }
.page-work .card:nth-child(15) { --project-screen: url('/assets/work/atrekes-1.webp'); }
.page-work .card:nth-child(16) { --project-screen: url('/assets/work/simpulan-1.webp'); }
.page-work .card:nth-child(17) { --project-screen: url('/assets/work/krepusko-1.webp'); }
.page-work .card:nth-child(18) { --project-screen: url('/assets/work/eelj-1.webp'); }
.page-work .card:nth-child(19) { --project-screen: url('/assets/work/linkscope-1.webp'); }
.tools { position: static; display: flex; flex-wrap: wrap; gap: 14px; padding: 20px; border: 1px solid var(--hair-2); border-radius: 16px; background: var(--surface); margin-bottom: 24px; }
.search,.select { min-height: 48px; border-radius: 9px; margin: 0; background-color: #0d1921; }
.search { max-width: none; }
.search::placeholder { color: var(--muted); }
.app-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.app-row { padding: 22px; border-radius: 16px; background: var(--surface); }
.app-row img { width: 52px; height: 52px; border-radius: 13px; }
.app-row-name { font-size: 17px; line-height: 1.4; }
.app-row-cat { font-size: 12px; margin: 5px 0 10px; color: var(--accent); }
.app-row-desc { display: block; -webkit-line-clamp: unset; overflow: visible; line-height: 1.75; }
.apps-art { min-height: 230px; border: 1px solid var(--hair-2); border-radius: 24px; background: url('/assets/apps/murmur.png') 28% 42% / 86px no-repeat,url('/assets/apps/quakesense.png') 74% 30% / 74px no-repeat,url('/assets/apps/labspline.png') 65% 80% / 68px no-repeat,linear-gradient(140deg,#223c3b,#152737); box-shadow: var(--shadow); }
.catalogue-hero { display: grid; grid-template-columns: minmax(0,1.4fr) minmax(240px,.6fr); align-items: center; gap: 80px; }
.page-apps .page-hero h1 { line-height: 1.3; }

/* Chapters are separate blocks, never grid row spans that overlap the next section. */
.case-hero { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(260px,.7fr); gap: 72px; align-items: center; }
.case-art { width: 100%; max-width: 300px; height: 420px; padding: 16px; border: 1px solid var(--hair-2); border-radius: 24px; justify-self: end; background: var(--case-screen) center / contain no-repeat,#11212a; background-origin: content-box; box-shadow: var(--shadow); }
.page-case .page-hero h1 { font-size: clamp(36px,4.1vw,58px); }
.shots { margin: 0 auto; max-width: 1100px; gap: 40px; }
.shots.two { margin-left: auto; margin-right: auto; }
.shot img,.story-video { width: 100%; max-width: 270px; border-radius: 23px; border: 1px solid var(--hair-2); box-shadow: var(--shadow); }
.shot figcaption { max-width: 24em; margin: 18px auto 0; line-height: 1.75; }
.story { max-width: 1100px; margin: 0 auto; }
.story > li { display: grid; grid-template-columns: 56px minmax(0,1fr); gap: 28px; padding: 40px 0; }
.story > li > .story-n { width: auto; font: 400 26px/1.5 var(--mono); color: var(--accent); }
.story > li > div { display: grid; grid-template-columns: minmax(170px,.6fr) minmax(0,1.4fr); gap: 36px; }
.story h2 { font-size: 26px; line-height: 1.25; }
.chapter-copy { min-width: 0; }
.chapter-copy p { font-size: 16px; line-height: 1.85; }
.story .chapter-copy li { display: block; border: 0; padding-top: 0; padding-bottom: 0; }
.story .chapter-copy a { overflow-wrap: anywhere; }
.lessons { max-width: 1100px; margin: 28px auto 0; padding: 28px 32px; background: #142b32; }
.case-ugong { --case-screen: url('/assets/work/ugong-1.webp'); }
.case-temelie { --case-screen: url('/assets/work/temelie-1.webp'); }
.case-pwyso { --case-screen: url('/assets/work/pwyso-1.webp'); }
.case-tactiglyph { --case-screen: url('/assets/work/tactiglyph-1.webp'); }
.case-atrekes { --case-screen: url('/assets/work/atrekes-1.webp'); }
.case-baldintza { --case-screen: url('/assets/work/baldintza-1.webp'); }
.case-brojilo { --case-screen: url('/assets/work/brojilo-1.webp'); }
.case-eelj { --case-screen: url('/assets/work/eelj-1.webp'); }
.case-focusandflow { --case-screen: url('/assets/work/focusandflow-1.webp'); }
.case-jawibrunei { --case-screen: url('/assets/work/jawibrunei-1.webp'); }
.case-krepusko { --case-screen: url('/assets/work/krepusko-1.webp'); }
.case-lakirawi { --case-screen: url('/assets/work/lakirawi-1.webp'); }
.case-lebese { --case-screen: url('/assets/work/lebese-1.webp'); }
.case-linkscope { --case-screen: url('/assets/work/linkscope-1.webp'); }
.case-lipi-bangla-keyboard { --case-screen: url('/assets/work/lipi-1_15-10-26-1.webp'); }
.case-muganhu { --case-screen: url('/assets/work/muganhu-1.webp'); }
.case-nuqt-pronunciation { --case-screen: url('/assets/work/nuqt-1_15-10-26-1.webp'); }
.case-simpulan { --case-screen: url('/assets/work/simpulan-1.webp'); }
.case-subtitleshift { --case-screen: url('/assets/work/subtitleshift-1.webp'); }

/* Progressive motion never changes layout or hides content when scripts fail. */
.js .reveal { opacity: 1; transform: none; -webkit-transform: none; transition: none; }
@media (prefers-reduced-motion: no-preference) {
  .js .reveal.in { animation: content-arrive .65s var(--ease) both; }
  .js .grid.reveal.in > :nth-child(2) { animation: content-arrive .7s .06s var(--ease) both; }
  .js .grid.reveal.in > :nth-child(3) { animation: content-arrive .7s .12s var(--ease) both; }
  .portrait-float { animation: portrait-float 6s ease-in-out infinite; }
  .portrait-stage::before { animation: halo-breathe 6s ease-in-out infinite; }
  .hero-copy,.portrait-stage { animation: content-arrive .8s var(--ease) both; }
  .btn,.card,.app-row,.portrait-frame { transition: transform .35s var(--ease),border-color .35s,box-shadow .35s; }
  .nav a::after { transition: transform .25s var(--ease); }
  @media (hover: hover) and (pointer: fine) {
    .btn:hover { transform: translateY(-2px); }
    .card:hover,.app-row:hover { transform: translateY(-4px); border-color: rgba(164,233,205,.48); box-shadow: var(--shadow); }
    .portrait-frame:hover { transform: translateY(-2px) scale(1.012); border-color: var(--accent); }
  }
}
@keyframes content-arrive { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes portrait-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes halo-breathe { 0%,100% { opacity: .65; transform: scale(.98); } 50% { opacity: 1; transform: scale(1.03); } }
@media (max-width: 1099px) {
  .grid.four,.grid.three,.app-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .capabilities { grid-template-columns: 1fr; }
  .capabilities > .section-head { max-width: 760px; }
  .hero-in { gap: 36px; }
  .hero-split,.catalogue-hero,.case-hero { gap: 36px; }
  .story > li > div { grid-template-columns: minmax(0,1fr); gap: 10px; }
  .split { gap: 40px; }
  .page-about .grid.three { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 819px) {
  html { scroll-padding-top: 100px; }
  .topbar { width: calc(100% - 28px); top: 10px; margin-top: 10px; border-radius: 14px; }
  .topbar-in { height: 66px; padding: 0 16px; }
  .menu-btn { display: block; min-height: 44px; min-width: 62px; border-radius: 8px; }
  .nav { display: none; top: calc(100% + 8px); left: -1px; right: -1px; padding: 12px 18px 18px; border: 1px solid var(--hair-2); border-radius: 14px; background: #101e28; max-height: calc(100dvh - 105px); overflow-y: auto; box-shadow: var(--shadow); }
  .nav.open { display: block; }
  .nav a { display: flex; justify-content: flex-start; padding: 14px 10px; margin: 0; font-size: 16px; }
  .nav a:not(.btn)::after { display: none; }
  .nav .btn { margin: 12px 0 0; justify-content: center; }
  .hero-in,.hero-split,.catalogue-hero { grid-template-columns: 1fr; gap: 36px; }
  .hero-in { padding-top: 44px; padding-bottom: 48px; }
  .hero-copy { max-width: 640px; }
  .portrait-stage { max-width: 410px; justify-self: center; }
  .hero-split .photo-wrap { justify-self: start; max-width: 280px; }
  .page-hero { padding: 48px 0; }
  .case-hero { grid-template-columns: minmax(0,1fr) 180px; gap: 28px; }
  .case-art { height: 300px; }
  .apps-art { max-width: 420px; }
  .split,.two-col { grid-template-columns: 1fr; gap: 30px; }
  .r-section { grid-template-columns: 1fr; gap: 18px; }
  .r-section > :not(.r-title) { grid-column: 1; }
  .r-title { margin-bottom: 4px; }
  .stat { padding: 24px; }
  .stat:first-child { padding-left: 24px; }
  .shots { gap: 24px; }
}
@media (max-width: 599px) {
  .brand { font-size: 16px; }
  .brand img { width: 26px; height: 26px; margin-right: 9px; }
  .hero-line { font-size: clamp(32px,8.7vw,44px); }
  .big-num { font-size: clamp(84px,25vw,120px); }
  .hero-sub { font-size: 16px; }
  .eyebrow { font-size: 13px; }
  .hero-proof { column-gap: 14px; row-gap: 0; }
  .hero-proof a { font-size: 12px; }
  .portrait-stage { width: 100%; max-width: 360px; padding: 14px; }
  .portrait-stage::after { border-radius: 32px; }
  .portrait-frame { border-radius: 25px; padding: 7px; }
  .portrait,.portrait-frame::after { border-radius: 18px; }
  .portrait-frame::after { inset: 7px; }
  .grid.four,.grid.three,.grid.two,.app-grid,.capabilities > .grid,.page-about .grid.three,.page-hire main > .section:nth-of-type(2) .grid { grid-template-columns: 1fr; }
  .panel { padding: 24px; }
  .capabilities { row-gap: 28px; }
  .page-home #work .card { min-height: 0; padding: 26px; }
  .page-home #stories .card::before,.page-work .card::before { margin-left: -24px; margin-right: -24px; margin-top: -24px; }
  .page-work .card::before { height: 240px; }
  .stat { padding: 24px 15px; }
  .stat:first-child { padding-left: 15px; }
  .stat:nth-child(2) { border-right: 0; }
  .stat-label { font-size: 12px; }
  .chip { font-size: 12px; margin-right: 5px; }
  .cta-box { padding: 36px 22px; }
  .cta-box .btn { max-width: none; }
  .case-hero { grid-template-columns: 1fr; }
  .case-art { max-width: 240px; height: 340px; justify-self: center; }
  .page-case .page-hero h1 { font-size: 36px; }
  .story > li { grid-template-columns: 1fr; gap: 10px; padding: 30px 0; }
  .story > li > div { gap: 8px; }
  .story > li > .story-n { font-size: 22px; }
  .story h2 { font-size: 24px; }
  .shots,.shots.two { grid-template-columns: 1fr; gap: 40px; }
  .shot img,.story-video { max-width: 260px; }
  .tools { padding: 16px; gap: 12px; }
  .search,.select { width: 100%; flex-basis: 100%; min-width: 0; }
  .app-row { padding: 18px; }
  .app-row img { width: 44px; height: 44px; margin-right: 12px; }
  .app-row-name { font-size: 16px; }
  .app-row-desc { font-size: 13px; }
  .footer-in { display: block; }
  .footer-links { display: flex; flex-wrap: wrap; column-gap: 16px; }
  .footer-links a { margin-right: 0; }
  .r-stats { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,*::before,*::after { animation: none !important; transition: none !important; }
  .card:hover,.app-row:hover,.btn:hover,.portrait-frame:hover { transform: none; }
}
