/* ================================================================
   DESIGN TOKENS — extracted from the live oimachi.co
   ================================================================ */
:root{
  --bg:        #F0F0F0;
  --media:     #C9C8C6;
  --media-2:   #DFDFDF;
  --white:     #FFFFFF;  /* surface (pills, cards) */
  --black:     #000000;  /* ink (text, buttons) */
  --gray-text: #696764;
  --green:     #00E200;
  --hairline:  rgba(0,0,0,.18);
  --overlay-tag: rgba(255,255,255,.4);
  --r-card:    6px;
  --r-btn:     4px;
  --pad-page:  10px;
  --gap:       10px;
  --font: "Inter Tight", Arial, sans-serif;
  --ease: cubic-bezier(.25,.75,.3,1);
}
/* DARK THEME — like oimachi's dark mode (toggle in nav) */
html.dark{
  --bg:        #161616;
  --media:     #2C2B29;
  --media-2:   #232323;
  --white:     #0E0E0E;
  --black:     #FFFFFF;
  --gray-text: #9B9994;
  --hairline:  rgba(255,255,255,.2);
  --overlay-tag: rgba(20,20,20,.5);
}
html, body{ transition:background 250ms var(--ease), color 250ms var(--ease); }

/* ================================================================
   BASE
   ================================================================ */
*,*::before,*::after{ box-sizing:border-box; margin:0; padding:0; }
html{ scroll-behavior:smooth; }
/* Hide scrollbars everywhere (scroll still works, no visible bar) */
*{ scrollbar-width:none; -ms-overflow-style:none; }
*::-webkit-scrollbar{ display:none; }
html, body{ overflow-x:hidden; max-width:100%; }
body{
  background:var(--bg);
  color:var(--black);
  font-family:var(--font);
  font-weight:300;
  font-size:16px;
  line-height:1.4;
  -webkit-font-smoothing:antialiased;
  letter-spacing:-0.01em;
}
a{ color:inherit; text-decoration:none; }
button{ font:inherit; background:none; border:none; cursor:pointer; color:inherit; }
img,svg,video{ display:block; }
ul{ list-style:none; }

.h1{ font-size:clamp(34px,3.9vw,54px); font-weight:300; line-height:1.08; letter-spacing:-0.03em; }
.h2{ font-size:clamp(24px,2.55vw,35px); font-weight:300; line-height:1.05; letter-spacing:-0.023em; }
/* Emphasis — kept neutral for now (same face as body, no cursive) */
em{ font-family:inherit; font-style:normal; font-weight:inherit; letter-spacing:inherit; }
.text-tiny{ font-size:12px; line-height:1.35; }
.text-gray{ color:var(--gray-text); }

/* ================================================================
   BUTTONS — black rectangles, small radius
   ================================================================ */
.btn{
  display:inline-flex; align-items:center; gap:8px;
  background:var(--black); color:var(--bg);
  font-size:15px; font-weight:500;
  padding:10px 16px; border-radius:var(--r-btn);
  transition:opacity 250ms var(--ease);
}
.btn:hover{ opacity:.75; }
.btn.ghost{ background:var(--white); color:var(--black); }

/* ================================================================
   NAV — fixed, transparent; donut logo + pills LEFT, contact + theme RIGHT
   ================================================================ */
.nav{
  position:fixed; top:0; left:0; right:0; z-index:100;
  display:flex; align-items:center; justify-content:space-between;
  padding:var(--pad-page);
  pointer-events:none;
}
.nav > *{ pointer-events:auto; }
.nav-left{ display:flex; align-items:center; gap:4px; }
.nav-logo{
  width:32px; height:32px; border-radius:50%;
  background:var(--bg);
  border:7px solid var(--black);   /* donut mark */
  display:block;
  transition:border-color 250ms var(--ease), background 250ms var(--ease);
  margin-right:4px;
}
.nav-right{ display:flex; align-items:center; gap:4px; }
.pill{
  display:inline-block;
  background:var(--white); color:var(--black);
  font-size:12px; font-weight:500;
  padding:4px 10px 5px; border-radius:var(--r-btn);
  transition:background 250ms var(--ease), color 250ms var(--ease);
}
.pill:hover{ background:var(--black); color:var(--bg); }
.theme-toggle{
  display:inline-flex; align-items:center; justify-content:center;
  background:var(--white); color:var(--black);
  width:26px; height:24px; border-radius:var(--r-btn);
  font-size:13px; line-height:1;
  transition:background 250ms var(--ease), color 250ms var(--ease);
}
.theme-toggle:hover{ background:var(--black); color:var(--bg); }
.contact-panel{
  position:absolute; top:52px; right:10px; z-index:120;
  display:none; flex-direction:column; gap:6px;
  width:min(320px, calc(100vw - 20px));
}
.contact-panel.open{ display:flex; }
.cp-card{
  background:var(--white); border-radius:var(--r-card);
  padding:14px; display:flex; align-items:center; gap:12px;
  box-shadow:0 10px 30px rgba(0,0,0,.25);
}
.cp-t{ font-size:13px; font-weight:500; }
.cp-d{ font-size:12px; color:var(--gray-text); }
.cp-dot{ width:8px; height:8px; border-radius:50%; background:var(--green); flex:0 0 auto; }
.cp-arrow{ margin-left:auto; font-size:12px; color:var(--gray-text); }
.cp-face{ width:40px; height:40px; border-radius:var(--r-btn); object-fit:cover; }
.cp-info{ flex-direction:column; align-items:flex-start; gap:4px; }
.cp-mail{ font-size:13px; font-weight:500; }
.lang-wrap{ position:relative; }
.lang-menu{
  position:absolute; top:32px; right:0; z-index:130;
  display:none; flex-direction:column;
  background:var(--white); border-radius:var(--r-card);
  padding:4px; min-width:130px;
  box-shadow:0 10px 30px rgba(0,0,0,.25);
}
.lang-menu.open{ display:flex; }
.lang-menu button{ font-size:12px; padding:7px 10px; border-radius:var(--r-btn); text-align:left; }
.lang-menu button:hover, .lang-menu button.active{ background:var(--bg); }

/* ================================================================
   HERO — headline top-left, media card + feed column below
   ================================================================ */
.hero{ padding:150px var(--pad-page) 0; }
.hero h1{ max-width:980px; margin-bottom:56px; }
.hero-bottom{ display:grid; grid-template-columns:1fr 333px; gap:var(--gap); }
.hero-graphic{
  background:var(--media);
  border-radius:var(--r-card);
  min-width:0;              /* never push into the live-sites column */
  aspect-ratio:1557/611;    /* natural proportion of the slideshow frames */
  display:flex; align-items:flex-end;
  padding:14px;
  position:relative; overflow:hidden;
}
/* hero breakpoints: square on phones, natural ratio from tablets up */
@media (max-width:768px){ .hero-graphic{ aspect-ratio:1/1; } }
.hero-slide{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; opacity:0; }
.hero-slide.active{ opacity:1; }
.hero-graphic .caption{ position:relative; }
.hero-graphic .caption{
  background:var(--overlay-tag);
  font-size:12px; padding:4px 10px 5px; border-radius:var(--r-btn);
}
.hero-feed{
  display:flex; flex-direction:column; gap:var(--gap);
  max-height:clamp(380px, 52vh, 560px);
  overflow-y:auto;
}
.feed-head{
  display:flex; justify-content:space-between; align-items:center;
  font-size:12px; padding:2px 2px 0;
  flex:0 0 auto;
}
/* Card style inspired by oimachi's "Latest posts" widget: invisible at
   rest (blends with the hero background), surface color only on hover —
   same pattern already used by .rail-item elsewhere in this file. */
.feed-item{
  background:transparent; border-radius:var(--r-card);
  padding:10px; display:flex; flex-direction:column; gap:10px;
  flex:0 0 auto;
  cursor:pointer;
  transition:background 250ms var(--ease), transform 250ms var(--ease), opacity 700ms var(--ease);
}
.feed-item:hover{ background:var(--white); transform:translateY(-2px); }
.feed-thumb{
  height:70px; border-radius:var(--r-btn); background:var(--media); overflow:hidden;
  transition:height 400ms var(--ease);
  display:flex; align-items:center; justify-content:center;
  font-size:11px; color:var(--gray-text);
}
.feed-item:hover .feed-thumb{ height:210px; }
.feed-thumb img{ width:100%; height:100%; object-fit:cover; object-position:top; }
/* phones: thumbnail beside text, reference typography + hairline rows */
@media (max-width:768px){
  .feed-head{ font-size:20px; font-weight:400; padding-bottom:6px; }
  .feed-item{ flex-direction:row; gap:12px; align-items:flex-start;
    padding:14px 2px; border-radius:0; border-top:1px solid var(--hairline); }
  .feed-item:hover{ background:transparent; transform:none; }
  .feed-thumb{ flex:0 0 96px; height:72px; transition:none; }
  .feed-item:hover .feed-thumb{ height:72px; }
  .feed-item .t{ font-size:15px; }
  .feed-item .d{ font-size:13px; line-height:1.45;
    display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
}
/* tablet landscape (769-1000px): hero full width at natural ratio,
   live sites as a 2-column card grid, projects stacked with 3 images,
   about images tracking the panel height (reference layouts) */
@media (min-width:769px) and (max-width:1000px){
  .hero-bottom{ grid-template-columns:1fr; }
  .hero-feed{ display:grid; grid-template-columns:1fr 1fr; gap:28px var(--gap);
    max-height:none; overflow:visible; margin-top:34px; }
  .feed-head{ grid-column:1 / -1; font-size:clamp(24px,2.55vw,35px); font-weight:300; letter-spacing:-0.023em; }
  .feed-item{ flex-direction:column; gap:12px; padding:0; }
  .feed-item:hover{ background:transparent; transform:none; }
  .feed-thumb{ height:auto; aspect-ratio:16/10; width:100%; transition:none; }
  .feed-item:hover .feed-thumb{ height:auto; }
  .feed-item .t{ font-size:16px; }
  .feed-item .d{ font-size:13px; line-height:1.5; }
  .work-row{ flex-direction:column; gap:0; }
  .work-details{ flex-basis:auto; }
  .section-head{ padding-left:0; }
  .footer-cols{ grid-template-columns:1fr 1fr; row-gap:48px; }
}
/* desktop (1001px+): live sites column matches the hero card height exactly */
@media (min-width:1001px){
  .hero-bottom{ position:relative; }
  .hero-feed{ position:absolute; top:0; right:0; bottom:0; width:333px; max-height:none; }
}
/* very large screens: the live-sites column grows with the hero */
@media (min-width:1500px){
  .hero-bottom{ grid-template-columns:1fr 420px; }
  .hero-feed{ width:420px; }
  .feed-thumb{ height:104px; }
  .feed-item .t{ font-size:14px; }
  .feed-item .d{ font-size:13px; }
}
@media (min-width:1800px){
  .hero-bottom{ grid-template-columns:1fr 480px; }
  .hero-feed{ width:480px; }
  .feed-thumb{ height:128px; }
}
.feed-item .t{ font-size:12px; font-weight:500; margin-bottom:2px; }
.feed-item .d{ font-size:12px; color:var(--gray-text); }

/* ================================================================
   SECTION SHELL
   ================================================================ */
.section{ padding:140px var(--pad-page) 0; }
/* Section head — flush with the same left edge as the content below it */
.section-head{
  position:relative;
  display:flex; flex-direction:column; align-items:flex-start;
  gap:24px; margin-bottom:80px; padding-top:20px;
}
.section-head .h2{ max-width:560px; text-align:left; }
.section-head .link-plain{ position:absolute; right:0; bottom:-36px; }
.link-plain{
  font-size:12px; font-weight:500; background:var(--white);
  padding:4px 10px 5px; border-radius:var(--r-btn);
  white-space:nowrap;
  transition:background 250ms var(--ease), color 250ms var(--ease);
}
.link-plain:hover{ background:var(--black); color:var(--bg); }

/* ================================================================
   WORK — full-width rows: details left, image strip right, hairline
   ================================================================ */
.work-row{
  display:flex; gap:var(--gap);
  padding-top:6px; margin-bottom:6px;
  border-top:1px solid var(--hairline);
  cursor:pointer;
}
.work-details{ flex:0 0 33%; padding:6px 0 24px; }
/* Selected work heading lines up with .work-images below, not with
   .work-details or the page's outer margin (matches oimachi.co) */
.section-head{ padding-left:calc(33% + var(--gap)); }
.work-title{ font-size:12px; font-weight:500; }
.work-cat{ font-size:12px; font-weight:300; color:var(--gray-text); }
.work-id{ display:flex; gap:12px; align-items:center; margin-bottom:16px; }
.work-id .rail-chip{ flex:0 0 34px; width:34px; height:34px; font-size:14px; border-radius:var(--r-card); }
.work-id .work-title{ line-height:1.3; }
.work-id .work-cat{ line-height:1.3; }
.work-desc{ font-size:12px; max-width:300px; }
.work-view{
  font-size:12px; color:var(--gray-text); margin-top:14px;
  opacity:0; transform:translateY(4px);
  transition:opacity 250ms var(--ease), transform 250ms var(--ease);
}
.work-row:hover .work-view{ opacity:1; transform:none; }
.work-images{
  flex:1; display:grid; grid-template-columns:repeat(3,1fr); gap:var(--gap);
  padding-bottom:24px;
}
.work-thumb{
  aspect-ratio:3/2; border-radius:var(--r-card);
  background:var(--media); overflow:hidden;
  display:flex; align-items:center; justify-content:center;
  font-size:11px; color:var(--gray-text);
  transition:transform 350ms var(--ease);
}
.work-thumb img{ width:100%; height:100%; object-fit:cover; object-position:top; }
.work-row:hover .work-thumb{ transform:translateY(-4px); }
/* staggered nudge, like the live rows */
.work-row .work-thumb:nth-child(1){ transition-delay:0ms; }
.work-row .work-thumb:nth-child(2){ transition-delay:60ms; }
.work-row .work-thumb:nth-child(3){ transition-delay:120ms; }

/* Live sites overlay gallery — 2–3 small screenshots side by side, not stacked */
.ov-strip{ display:flex; gap:var(--gap); margin-bottom:28px; }
.ov-strip-item{
  flex:1; min-width:0;
  height:clamp(140px, 34vh, 320px);
  border-radius:var(--r-card);
  background:var(--media); overflow:hidden;
  display:flex; align-items:center; justify-content:center;
  font-size:11px; color:var(--gray-text);
}
.ov-strip-item img{ width:100%; height:100%; object-fit:cover; object-position:top; }

/* ================================================================
   QUOTES — two large media cards with overlay text
   ================================================================ */
/* ================================================================
   LABS — masonry grid of small cards with tiny captions
   ================================================================ */
.labs-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(200px, 1fr));
  grid-auto-rows:8px; grid-auto-flow:dense;
  column-gap:var(--gap);
  align-items:start;
}
.lab-item{ min-width:0; }
.labs-more-wrap{ display:flex; justify-content:center; margin-top:28px; }
@media (max-width:768px){
  .labs-grid{ grid-template-columns:repeat(2, minmax(0,1fr)); }
}
.labs-col{ display:flex; flex-direction:column; gap:var(--gap); flex:1; min-width:0; }
.lab-media{
  border-radius:var(--r-card); background:var(--media);
  width:100%; overflow:hidden;
  display:flex; align-items:center; justify-content:center;
  font-size:11px; color:var(--gray-text);
  transition:transform 250ms var(--ease);
}
.lab-media img{ display:block; width:100%; height:auto; }
.lab-item:hover .lab-media{ transform:scale(.98); }
.lab-cap{ font-size:12px; padding:6px 2px 2px; }
.lab-cap b{ font-weight:500; }
.lab-cap span{ color:var(--gray-text); font-weight:300; }

/* ================================================================
   ABOUT — text/buttons left, image cards right
   ================================================================ */
.about-grid{ display:grid; grid-template-columns:1fr 1fr; gap:var(--gap); align-items:stretch; }
/* Inner panel — text top-aligned, buttons pinned to the bottom (reference) */
.about-left{
  background:var(--media-2); border-radius:var(--r-card);
  padding:28px;
  display:flex; flex-direction:column; justify-content:space-between;
}
.btn .btn-dot{ width:8px; height:8px; border-radius:50%; background:var(--green); }
/* big statement text, same scale as the section headings */
.about-left p{
  font-size:clamp(22px,2.2vw,30px); font-weight:300;
  line-height:1.2; letter-spacing:-0.02em;
  margin-bottom:22px;
}
.about-actions{ display:flex; gap:6px; margin-top:28px; }
.about-right{ display:grid; gap:var(--gap); grid-template-rows:auto 1fr; }
.about-card{ border-radius:var(--r-card); background:var(--media); position:relative; overflow:hidden; }
.about-card img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.about-card.wide{ aspect-ratio:1.94; }
.about-card .tag{
  position:absolute; left:12px; bottom:12px;
  background:var(--overlay-tag);
  font-size:12px; padding:4px 10px 5px; border-radius:var(--r-btn);
}
.about-card .tag b{ font-weight:500; }
.about-card .tag span{ color:var(--gray-text); margin-left:8px; }
.about-people{ display:grid; grid-template-columns:1fr 1fr; gap:var(--gap); min-height:0; }
.about-card.person{ min-height:220px; }

/* ================================================================
   FOOTER — link columns, huge CTA line, meta bottom
   ================================================================ */
.footer{ padding:150px var(--pad-page) var(--pad-page); }
.footer-cols{ display:grid; grid-template-columns:repeat(3,1fr); gap:var(--gap); margin-bottom:110px; }
.footer-col .h2{ margin-bottom:18px; }
.f-row{
  display:flex; align-items:center; gap:10px;
  font-size:14px; font-weight:300; color:var(--gray-text);
  padding:9px 2px; border-bottom:1px solid var(--hairline);
  transition:color 250ms var(--ease);
}
.footer-col .f-row:first-of-type{ border-top:1px solid var(--hairline); }
.f-row:hover{ color:var(--black); }
.f-chip{
  width:26px; height:26px; border-radius:var(--r-btn);
  display:inline-flex; align-items:center; justify-content:center;
  color:#fff; font-size:12px; font-weight:500; flex:0 0 auto;
}
.f-chip.dark{ background:var(--black); color:var(--bg); }
.footer-cta{ display:flex; gap:48px; align-items:flex-start; margin-bottom:110px; }
.footer-cta-body{ flex:1; min-width:0; }
.footer-logo{
  flex:0 0 150px; height:150px; border-radius:50%;
  background:var(--bg); border:36px solid var(--black);
}
@media (max-width:768px){ .footer-logo{ display:none; } }
.footer-cta .h2{ max-width:520px; margin-bottom:26px; }
.footer-contact{ display:flex; gap:6px; align-items:center; flex-wrap:wrap; }
.footer-contact .mail{
  font-size:15px; font-weight:500; color:var(--gray-text); margin-left:14px;
  transition:color 250ms var(--ease);
}
.footer-contact .mail:hover{ color:var(--black); }
.footer-meta{
  display:flex; justify-content:space-between; align-items:center;
  font-size:12px; color:var(--gray-text);
  border-top:1px solid var(--hairline); padding-top:10px;
  gap:12px; flex-wrap:wrap;
}
.footer-meta .live{ display:inline-flex; align-items:center; gap:6px; }
.footer-meta .dot{ width:7px; height:7px; border-radius:50%; background:var(--green); }

/* ================================================================
   PROJECT DETAIL OVERLAY — full-screen page with LEFT RAIL listing
   all projects (like oimachi's /work/... view). Fade + scale entrance.
   ================================================================ */
.overlay{
  position:fixed; inset:0; z-index:200;
  background:var(--bg);
  display:flex;
  opacity:0; visibility:hidden;
  transform:scale(.985);
  transition:opacity 250ms var(--ease), visibility 250ms var(--ease), transform 250ms var(--ease);
}
.overlay.active{ opacity:1; visibility:visible; transform:none; }
.overlay-rail{
  flex:0 0 280px;
  padding:56px 10px 10px;
  border-right:1px solid var(--hairline);
  display:flex; flex-direction:column; gap:2px;
  overflow-y:auto;
}
.rail-item{
  display:flex; gap:10px; align-items:flex-start;
  padding:10px; border-radius:var(--r-card);
  cursor:pointer;
  transition:background 250ms var(--ease);
}
.rail-item:hover, .rail-item.active{ background:var(--white); }
.rail-chip{
  flex:0 0 28px; height:28px; border-radius:var(--r-btn);
  display:flex; align-items:center; justify-content:center;
  color:#fff; font-size:13px; font-weight:500;
}
.rail-item .rn{ font-size:12px; font-weight:500; }
.rail-item .rd{ font-size:11px; color:var(--gray-text); line-height:1.35; }
.overlay-main{ flex:1; overflow-y:auto; padding:56px 10px 40px 24px; }
.overlay-close{
  position:absolute; top:10px; right:10px; z-index:2;
  background:var(--white); border-radius:var(--r-btn);
  font-size:12px; padding:4px 10px 5px;
}
.overlay-close:hover{ background:var(--black); color:var(--bg); }
/* Case study title — big and light, with blur reveal */
.ov-title{
  font-size:clamp(26px,2.6vw,40px); font-weight:300;
  letter-spacing:-0.025em; line-height:1.12;
  max-width:820px; margin-bottom:32px;
}
.ov-meta{
  display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:var(--gap);
  margin-bottom:36px; max-width:760px;
}
.ov-meta h4{ font-size:12px; font-weight:500; margin-bottom:6px; }
.ov-meta li{ font-size:12px; color:var(--gray-text); padding:1px 0; }
/* Case study gallery — images stacked one below the other (reference) */
.ov-img{
  display:block; width:100%;
  border-radius:var(--r-card);
  margin-bottom:var(--gap);
  background:var(--media);
}
.ov-ph{
  background:var(--media); border-radius:var(--r-card);
  aspect-ratio:16/9; margin-bottom:var(--gap);
  display:flex; align-items:center; justify-content:center;
  font-size:11px; color:var(--gray-text);
}
/* Text block between images — centered reading column (reference) */
.ov-desc{
  font-size:15px; line-height:1.55; color:var(--gray-text);
  max-width:620px; margin:56px auto;
}
.ov-links{ display:flex; gap:6px; flex-wrap:wrap; margin-top:32px; }
/* Split case study (AI Imagery) — media column left, reading column right.
   Rule: every image fits the viewport height, so it's always seen whole
   without scrolling; enlarging is the visitor's choice, not the layout's. */
.ov-split{ display:flex; gap:36px; align-items:flex-start; margin-bottom:110px; }
.ov-split:last-of-type{ margin-bottom:40px; }
.ov-split-media{ flex:1; min-width:0; display:flex; flex-direction:column; gap:var(--gap); }
.ov-split-media img{
  display:block; width:auto; max-width:100%;
  max-height:calc(100vh - 72px);
  margin:0 auto; border-radius:var(--r-card);
}
/* Detail coverage — 2-column grid, equal cells, order 1-2 / 3-4 / … */
.ov-split-media.grid{
  display:grid; grid-template-columns:repeat(2,1fr);
  gap:var(--gap); align-items:start;
}
.ov-split-media.grid img{
  width:auto; height:auto; margin:0; justify-self:center;
  max-width:100%; max-height:calc(100vh - 72px);
}
/* Reading column — sticky, same 12px label + gray copy as the rest of the site */
.ov-split-text{ flex:0 0 300px; position:sticky; top:20px; padding-top:6px; }
.ov-split-text h4{
  font-size:12px; font-weight:500; margin-bottom:12px;
  padding-top:8px; border-top:1px solid var(--hairline);
}
.ov-split-text p{ font-size:14px; line-height:1.6; color:var(--gray-text); margin-bottom:14px; }
.ov-intro{ font-size:15px; line-height:1.55; color:var(--gray-text); max-width:620px; margin:0 0 72px; }
/* Vimeo reels: hosted on Vimeo, embedded here so the page stays light */
.ov-videos{ display:grid; grid-template-columns:repeat(3,1fr); gap:var(--gap); margin-bottom:var(--gap); }
.ov-videos figure{ min-width:0; margin:0; }
.ov-videos iframe{ display:block; width:100%; aspect-ratio:9/16; border:0; border-radius:var(--r-card); background:var(--media); }
.ov-videos figcaption{ font-size:12px; color:var(--gray-text); padding:6px 2px 2px; }
@media (max-width:768px){ .ov-videos{ grid-template-columns:1fr; } }

/* ================================================================
   ANIMATIONS — behaviors seen on the live site
   ================================================================ */
/* Blur text reveal — words emerge from a soft blur (like the live site).
   Applied to headlines / attention text only, never to case-study copy. */
.bw{
  display:inline-block;
  opacity:0; filter:blur(14px); transform:translateY(6px);
  transition:opacity 600ms var(--ease), filter 900ms var(--ease), transform 600ms var(--ease);
}
.blur-in .bw{ opacity:1; filter:blur(0); transform:none; }
/* Scroll reveal: fade + slide up entering the viewport */
.reveal{ opacity:0; transform:translateY(26px);
  transition:opacity 700ms var(--ease), transform 700ms var(--ease); }
.reveal.in{ opacity:1; transform:none; }

/* ================================================================
   RESPONSIVE — single column below 768px
   ================================================================ */
@media (max-width:768px){
  .hero{ padding-top:120px; }
  .hero h1{ margin-bottom:36px; }
  .hero-bottom{ grid-template-columns:1fr; }
  .section{ padding-top:80px; }
  .section-head{ flex-direction:column; margin-bottom:40px; }
  .work-row{ flex-direction:column; gap:0; }
  .work-details{ flex-basis:auto; }
  .section-head{ padding-left:0; }
  .work-images{ grid-template-columns:repeat(2,1fr); }
  .work-images .work-thumb:first-child{ grid-column:1 / -1; aspect-ratio:16/10; }
  .about-grid{ grid-template-columns:1fr; }
  .footer-cols{ grid-template-columns:1fr; gap:36px; margin-bottom:70px; }
  .footer{ padding-top:90px; }
  .footer-cta{ margin-bottom:70px; }
  .ov-split{ flex-direction:column; gap:24px; margin-bottom:70px; }
  .ov-split-media{ flex-basis:auto; }
  .ov-split-text{ position:static; flex-basis:auto; }

  /* nav pills stay visible on mobile, slightly tighter (reference behavior) */
  .nav .pill{ font-size:11px; padding:4px 8px 5px; }
  .nav-left{ gap:3px; }

}
/* Rail: horizontal strip on top below 850px (a side rail would eat half
   the screen); side rail returns from 850px up. */
@media (max-width:849px){
  .overlay{ flex-direction:column; }
  .overlay-rail{ flex:0 0 auto; flex-direction:row; overflow-x:auto; border-right:none; border-bottom:1px solid var(--hairline); padding:48px 10px 8px; }
  .rail-item{ flex:0 0 200px; }
  .overlay-main{ padding:16px 10px 40px; }
}
/* Content: Design/Build/Delivery and the screenshots stay in a row down to
   500px; only true small phones stack them into a single column. */
@media (max-width:499px){
  .ov-meta{ grid-template-columns:1fr; }
  .ov-strip{ flex-direction:column; }
  .ov-strip-item{ height:auto; aspect-ratio:16/10; }
}
