/* AR portfolio layer over the arko case template: tokens, nav, footer and motion from ar.md */
:root{
  --fs-xl:clamp(80px,11vw,180px);--fs-l:clamp(40px,5.6vw,88px);--fs-m:clamp(24px,2.3vw,32px);--fs-b:16px;--fs-s:14px;
  --fs-caption:var(--fs-s); --fs-small:var(--fs-s); --fs-body:var(--fs-b); --fs-lead:var(--fs-b); --fs-title:var(--fs-m); --fs-heading:var(--fs-l); --fs-display:var(--fs-l);
  --cgap:calc(var(--gutter) * 2); /* one column gap for every case-page grid (26 Nov 2026) */
  --fs-case-h:calc(var(--fs-l) / 1.5); /* case study h1 + section h2: 1.5x smaller than --fs-l (54 at 1440, 27 on phones), 26 Nov 2026 */
  --paper:#F2F2F2; --ink:#0B0B0B; --sun:#0027BF; --sun-dark:#1E1B9E;
  --grey:#6E6E73; --pale:#B4B4B9; --line:#E4E4E6; --surface:#E4E4E6;
  /* grid: full bleed, side padding only (ar.md §2 Layout) */
  --pad:clamp(20px,4vw,56px); --grid-max:100000px; --gap-section:clamp(120px,15vw,240px);
  font-family:'Onest','Helvetica Neue',Helvetica,Arial,sans-serif;
}
body{background:var(--paper)}
.ar-mono,.arfoot .mono{font-family:inherit;font-size:var(--fs-s)}
.blue{color:var(--sun)}
/* every blue word leans on hover, like "digital products" in the hero; contacts are the exception: they underline */
.blue,.board-back{display:inline-block;transition:transform .5s cubic-bezier(.2,.8,.2,1)}
.blue:hover,.board-back:hover{transform:translateX(12px) skewX(-6deg)}
.arfoot .row a:hover{text-decoration:underline;text-underline-offset:4px}

/* nav (ar.md §3 Nav) */
.arnav{position:fixed;inset:0 0 auto 0;z-index:300;display:flex;justify-content:space-between;align-items:center;padding:18px var(--pad);mix-blend-mode:difference;color:#fff}
.arnav .links{display:flex;gap:28px}
.arnav{pointer-events:none}.arnav a{pointer-events:auto} /* the bar never blocks what sits under it, only its links take the pointer */
.arnav a{font-size:var(--fs-s);text-decoration:none;color:inherit}
.arnav a:hover{opacity:.6}
.arnav .mark{height:21px;width:auto;display:block}

/* footer */
.arfoot .wrap{padding:0 var(--pad)} /* pages without arko.css (values, skills, stage pages) still sit on the grid edge */
.arfoot{background:#FFFFFF;padding:120px 0 40px} /* one white block, heading + contacts together */
.arfoot h2{margin:0;font-weight:400;font-size:var(--fs-l);letter-spacing:-.04em;line-height:1}
.arfoot .row{display:flex;justify-content:space-between;align-items:flex-end;margin-top:48px;border-top:1px solid var(--line);padding-top:24px;font-size:var(--fs-s)}
@media (max-width:600px){.arnav .links{gap:16px}.arfoot .row{flex-direction:column;align-items:flex-start;gap:16px}}
.arfoot .row a{color:var(--sun);margin-right:20px;text-decoration:none}

/* word-by-word blur reveal (ar.md §4 Motion) */
.ar-w{display:inline-block;opacity:0;filter:blur(10px);transform:translateY(.25em);transition:opacity .7s ease,filter .7s ease,transform .7s cubic-bezier(.2,.8,.2,1);transition-delay:calc(var(--wi)*var(--wd,45ms))}
.ar-words.ar-in .ar-w{opacity:1;filter:none;transform:none}
@media (prefers-reduced-motion:reduce){.ar-w{opacity:1!important;filter:none!important;transform:none!important;transition:none}}

/* one section rhythm on case pages (was 120 to 176px); "main" outranks the page's own <style> */
main .prob3{padding-top:var(--gap-section)}
main .chal{padding-top:var(--gap-section)}
main .chal + .slabfig{margin-top:calc(var(--gap-section) / 2)}
main .proc2{padding-top:var(--gap-section)}
main .sol2{padding-top:var(--gap-section)}
main .resband{margin-top:var(--gap-section)}
main .more2{padding-top:var(--gap-section)}

/* stage pages: the folder's sheet is a pinboard (25 Nov 2026). Notes hang unevenly with a pin; hover straightens one.
   Individual rotate/translate so the drop-in animation (which animates transform) keeps the tilt */
.board .notes{gap:40px 32px;padding-top:12px}
.board .note{position:relative;rotate:var(--r,0deg);translate:var(--dx,0) var(--dy,0);box-shadow:0 18px 26px -14px rgba(11,11,11,.45),0 2px 4px rgba(11,11,11,.12);transition:rotate .35s cubic-bezier(.2,.8,.2,1),translate .35s cubic-bezier(.2,.8,.2,1),box-shadow .35s}
.board .note::before{content:"";position:absolute;left:50%;top:-7px;width:14px;height:14px;margin-left:-7px;border-radius:50%;background:var(--ink);box-shadow:0 3px 4px rgba(11,11,11,.35)}
.board .note.ink::before{background:var(--pale)}
@media (hover:hover) and (pointer:fine){.board .note:hover{rotate:0deg;translate:0 -8px;box-shadow:0 28px 36px -18px rgba(11,11,11,.5),0 2px 4px rgba(11,11,11,.12)}}
.board-bar{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:48px}
.board-back{font-size:var(--fs-s);font-weight:500;color:var(--sun);text-decoration:none}
.board-dl{display:inline-flex;align-items:center;height:44px;padding:0 20px;background:var(--sun);color:#fff;font-size:var(--fs-s);font-weight:500;text-decoration:none}
.board-dl[aria-disabled="true"]{cursor:default}

/* polish pass 25 Nov 2026: browser surfaces from the palette, visible keyboard focus, current page, phone tap targets */
::selection{background:#0027BF;color:#FFFFFF}
html{scrollbar-color:#B4B4B9 transparent}
::-webkit-scrollbar{width:10px;height:10px}::-webkit-scrollbar-thumb{background:#B4B4B9;border-radius:10px;border:3px solid transparent;background-clip:content-box}
a:focus-visible,button:focus-visible,[tabindex]:focus-visible{outline:2px solid #0027BF;outline-offset:3px}
.process :focus-visible,.skills :focus-visible,.sf.c1 :focus-visible,.sf.c1:focus-visible,.wcase :focus-visible,.icard :focus-visible,.resband :focus-visible{outline-color:#FFFFFF}
@media (max-width:900px){.arnav .links a,.arnav .brand{padding-top:12px;padding-bottom:12px;margin-top:-12px;margin-bottom:-12px}.arfoot .row a,.board-back{padding-top:6px;padding-bottom:6px;margin-top:-6px;margin-bottom:-6px}}
/* dots are circles, never squares: the arko square-corner reset skips the process point and the board pins (26 Nov 2026) */
.seg,.note::before,.tk-line p::before{border-radius:50%!important} /* the key decision arrow buttons stay square (her call, 26 Nov 2026) */
/* case key decisions: What, Why, Key impact read first, arrows sit at the right end on a transparent ground (26 Nov 2026) */
.kmeta{column-gap:calc(var(--gutter) * 2)!important} /* more air between What, Why and Key impact (26 Nov 2026) */
.kmeta .nav2{justify-self:end}
.kmeta .nav2 button,.kmeta .nav2 button:hover{background:transparent!important}
.kmeta .nav2 button:hover{border-color:var(--ink)!important}
/* Judgment: AI versus human (case pages, after Solutions, 26 Nov 2026): before/after slider + AI creation / Human improvement notes */
.judg{padding-top:160px;padding-bottom:80px} /* extra air before the images that follow */
.judg>h2{margin:0 0 56px;font-size:var(--fs-case-h);font-weight:400;line-height:1.08;letter-spacing:-.025em}
.ba{position:relative;overflow:hidden;aspect-ratio:16/10;background:#FFFFFF;touch-action:pan-y;-webkit-user-select:none;user-select:none;transition:opacity .2s ease}
.ba.swap{opacity:.4}
.ba-before,.ba-after{position:absolute;inset:0}
.ba-media{position:absolute;inset:0;display:grid;place-items:center}
.ba-media img{width:100%;height:100%;object-fit:cover;object-position:top left;display:block;pointer-events:none}
.ba-before .ba-media{background:#E4E4E6}.ba-after .ba-media{background:#FFFFFF}
.ba-ph{position:absolute;bottom:20px;font-size:var(--fs-s);color:var(--grey)}.ba-before .ba-ph{left:20px}.ba-after .ba-ph{right:20px;text-align:right}
.ba-tag{position:absolute;bottom:20px;padding:6px 12px;background:#0B0B0B;color:#FFFFFF;font-size:var(--fs-s);line-height:1.2}
.ba-before .ba-tag{left:20px}.ba-after .ba-tag{right:20px}
.ba-line{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;overflow:visible}
.ba-line path{fill:none;stroke:#6E6E73;stroke-width:2} /* DS grey: visible on light and dark screens (26 Nov 2026) */
.ba-handle{position:absolute;top:50%;width:56px;height:56px;margin:-28px 0 0 -28px;border-radius:50%!important;background:#FFFFFF;color:#0B0B0B;display:grid;place-items:center;box-shadow:0 6px 20px -6px rgba(11,11,11,.35);cursor:ew-resize;transition:transform .15s ease}
.ba.drag .ba-handle{transform:scale(.94)}
.ba-handle svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.jmeta{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));column-gap:calc(var(--gutter) * 2);row-gap:28px;margin-top:56px;align-items:start;transition:opacity .2s ease}
.jmeta.swap .j-ai,.jmeta.swap .j-human{opacity:0}
.jmeta>:nth-child(1){grid-column:1/5}.jmeta>:nth-child(2){grid-column:5/8}.jmeta>:nth-child(3){grid-column:11/-1;justify-self:end} /* same columns as What / Why */
.jmeta .lab{margin:0 0 16px;font-size:var(--fs-s);color:var(--grey)}
.jmeta p{margin:0;font-size:var(--fs-b);line-height:1.5;color:var(--ink)}
.j-ai,.j-human{transition:opacity .25s ease}
.jmeta .nav2{display:flex;gap:16px}
.jmeta .nav2 button{width:51px;height:51px;border:1px solid var(--line);background:transparent;color:var(--ink);display:grid;place-items:center;cursor:pointer;transition:border-color 200ms ease}
.jmeta .nav2 button:hover{border-color:var(--ink)}
.jmeta .nav2 svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
@media (max-width:1100px){.judg{padding-top:120px}.jmeta{grid-template-columns:minmax(0,1fr)}.jmeta>:nth-child(n){grid-column:1/-1}}
@media (max-width:700px){.ba{aspect-ratio:4/5}.ba-handle{width:48px;height:48px;margin:-24px 0 0 -24px}.ba-tag{bottom:12px}.ba-before .ba-tag{left:12px}.ba-after .ba-tag{right:12px}}
/* case pages: the More cases cards end 120px above the footer, the same air as the footer top to "Let's move" (26 Nov 2026) */
section.more2{padding-bottom:var(--foot-top,120px)}
@media (max-width:700px){section.more2{padding-bottom:112px}} /* the phone card list already leaves 8px */
/* Judgment layout (her pick, 26 Nov 2026): title and notes in one block on the left (cols 1/6), the slider on the right
   (cols 7/13), one empty column between them for air; stacks on phones */
.judg-side .judg-left>h2{margin:0 0 40px;font-size:var(--fs-case-h);font-weight:400;line-height:1.08;letter-spacing:-.025em;text-align:left}
.judg-body{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));column-gap:var(--cgap);align-items:center}
.judg-left{grid-column:1/6}
.judg-side .jmeta{display:flex;flex-direction:column;gap:32px;margin-top:0}
.judg-side .jmeta>:nth-child(n){grid-column:auto;grid-row:auto}
.judg-side .ba{grid-column:7/-1;grid-row:1}
@media (max-width:1100px){.judg{padding-bottom:40px}.judg-body{grid-template-columns:minmax(0,1fr);row-gap:40px}.judg-left,.judg-side .ba{grid-column:1/-1}.judg-side .ba{grid-row:2}}
/* case pages: one grid (26 Nov 2026). 12 columns, one 48px gap. Text blocks with a title and a paragraph use 8+4 (1/9, 9/13);
   three-column blocks use equal thirds (1/5, 5/9, 9/13), arrows end the last third; so every text column starts on 1, 5 or 9. The process timeline keeps its own layout (1/6 and 8/13). Desktop only: phones keep one column. */
@media (min-width:1101px){
  body .icard .top,body .prob3,body .chal-top,body .kmeta,body .jmeta,body .judg-body{column-gap:var(--cgap)}
  body .ires,body .chal .cols,body .gwrap.g3,body .gwrap.g4{column-gap:var(--cgap)}
  body .icard .top>:first-child{grid-column:1/7}body .prob3>:first-child,body .chal-top>:first-child{grid-column:1/9} /* intro title + summary: one block over the first half */
  body .icard .top>:last-child,body .prob3>:last-child,body .chal-top>:last-child{grid-column:9/-1}
  body .kmeta>*,body .jmeta>*{grid-row:1}
  body .kmeta>:nth-child(1),body .jmeta>:nth-child(1){grid-column:1/5}
  body .kmeta>:nth-child(2),body .jmeta>:nth-child(2){grid-column:5/9}
  body .kmeta>:nth-child(3){grid-column:9/-1}
  body .kmeta>:nth-child(4),body .jmeta>:nth-child(3){grid-column:9/-1;justify-self:end}
  body .chal .cols>div+div::before{left:calc(var(--cgap) / -2)}
  body .judg-side .jmeta>*{grid-row:auto}
}
/* intro: the title fills its column like the summary under it, so both read as one block (26 Nov 2026) */
@media (min-width:1101px){body .icard h1{text-wrap:pretty}}
/* Solutions on phones and tablets (27 Nov 2026): the arrows sit right under the image, on the left, before What / Why / Key impact */
@media (max-width:1100px){body .kmeta .nav2{order:-1;justify-self:start;grid-column:1/-1}}
/* visuals strip (27 Nov 2026): the screen fills its 16:10 card from the top left. Absolute fill, because iOS Safari
   left a white band above images that were sized by height:100% inside the grid card */
.hslab .shot{position:relative}
.hslab .shot img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:top left}
/* case card with a still image instead of a video (InteleTravel until its showreel is ready, 27 Nov 2026) */
.wc-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center top;transition:transform 900ms var(--ease-out)}
@media (hover:hover) and (pointer:fine){.wcase:hover .wc-img{transform:scale(1.025)}}
.case .media img.cf-vid{object-position:center top}
/* case intro: numbers row sits at the same height on every case, whatever the title length (28 Nov 2026) */
@media (min-width:1101px){.icard .top{min-height:320px}}
/* One site grid for page headers (27 Nov 2026): heading on cols 1-8, description on cols 9-12 of the same
   12-column grid as the case pages (gap --cgap 48px), so every right-hand text column starts on one line.
   Home (index.html, no ar.css) repeats this rule in its own style block. */
@media (min-width:1101px){
  body .v-head,body .sk-head{grid-template-columns:repeat(12,minmax(0,1fr));column-gap:48px}
  body .v-head>:first-child,body .sk-head>:first-child{grid-column:1/9}
  body .v-head>:last-child,body .sk-head>:last-child{grid-column:9/13}
}
/* case likes + views (1 Dec 2026): pills under the intro summary, on the dark card. Hidden until the API answers. */
.cstats{display:flex;flex-wrap:wrap;gap:10px;margin-top:32px}
.cstats .cs-like,.cstats .cs-views{display:inline-flex;align-items:center;gap:8px;height:40px;padding:0 16px;border-radius:999px;border:1px solid rgba(255,255,255,.2);background:rgba(255,255,255,.1);color:#fff;font:inherit;font-size:var(--fs-b);font-variant-numeric:tabular-nums}
.cstats svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linejoin:round}
.cstats .cs-like{cursor:pointer;transition:background .2s,border-color .2s}
@media (hover:hover){.cstats .cs-like:hover{border-color:rgba(255,255,255,.5)}}
.cstats .cs-like[aria-pressed=true] svg{fill:#fff}
.cstats .cs-like.pop svg{animation:cs-pop .4s cubic-bezier(.2,.8,.2,1)}
@keyframes cs-pop{40%{transform:scale(1.3)}}
.cstats .cs-views{color:var(--pale)}
