/* ============================================================
   BarnX - stylesheet v11 ("The Cut")
   Black, white, Anton and Satoshi. One signature moment (the
   diagonal cut through the Works section); everything else is
   quiet so it lands. The older css/style.css is kept only for
   the test pages.
   ============================================================ */

:root{
  --ink:#000; --paper:#fff; --soft:#5a5a5a; --line:rgba(0,0,0,.14);
  --grey:#E6E6E6; --night:#0B0B0B;
  --pad:clamp(20px, 9.375vw, 135px);
  --inset:clamp(10px, 3.34vw, 48px);
  --r-panel:clamp(26px, 4.17vw, 60px);
  --display:'Anton','Satoshi',system-ui,sans-serif;
  --ease:cubic-bezier(.22,1,.36,1);
  --ease-io:cubic-bezier(.65,0,.35,1);
}

*,*::before,*::after{ box-sizing:border-box; margin:0; padding:0; }
html{ -webkit-text-size-adjust:100%; scroll-behavior:smooth; }
html.lenis, html.lenis body{ height:auto; }
html.lenis{ scroll-behavior:auto; }
.lenis.lenis-stopped{ overflow:clip; }
@media (prefers-reduced-motion:reduce){ html{ scroll-behavior:auto; } }
body{
  font-family:'Satoshi',ui-sans-serif,system-ui,-apple-system,'Segoe UI',sans-serif;
  font-weight:500; font-size:17px; line-height:1.55;
  background:var(--paper); color:var(--ink);
  -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility;
}
img,svg{ display:block; max-width:100%; }
a{ color:inherit; }
ol,ul{ list-style:none; }
button{ font:inherit; color:inherit; background:none; border:0; cursor:pointer; }
:focus-visible{ outline:2px solid currentColor; outline-offset:4px; border-radius:4px; }
::selection{ background:var(--ink); color:var(--paper); }

/* film grain, same tile and strength as before */
body::after{
  content:""; position:fixed; inset:0; z-index:99; pointer-events:none;
  background:url(../assets/grain.png) repeat; background-size:161px; opacity:.06;
}

.wrap{ padding-inline:var(--pad); }
.display{
  font-family:var(--display); font-weight:400; text-transform:uppercase;
  line-height:.94; letter-spacing:-.02em;
}
.h2{ font-family:var(--display); font-weight:400; text-transform:uppercase; font-size:clamp(40px,6vw,92px); line-height:.96; letter-spacing:-.015em; }
.eyebrow{ display:block; font-size:15px; font-weight:700; }
.nw{ white-space:nowrap; }
.sr{ position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }

/* ---------- nav: inverts against whatever is under it ---------- */
.nav{
  position:fixed; z-index:50; top:0; left:0; right:0;
  display:flex; align-items:center; justify-content:space-between;
  padding:clamp(10px,2vw,22px) var(--pad);
  color:#fff; mix-blend-mode:difference; pointer-events:none;
}
.nav a{ pointer-events:auto; text-decoration:none; }
.nav-logo{ display:flex; align-items:center; gap:.45em; font-weight:700; font-size:20px; letter-spacing:-.01em; min-height:44px; }
.nav-logo svg{ width:1.5em; height:1.5em; fill:currentColor; transition:transform .6s var(--ease); }
/* on the first screen the name is the hero, so the nav shows the mark alone;
   the word is drawn in beside it once the hero has been cut open */
.nav-logo span{ transition:clip-path .8s var(--ease), opacity .5s var(--ease), transform .8s var(--ease); clip-path:inset(-10% -5% -10% 0); }
.at-hero .nav-logo span{ clip-path:inset(-10% 100% -10% 0); opacity:0; transform:translateX(-8px); }
@media (prefers-reduced-motion:reduce){ .nav-logo span{ transition:none; } }
@media (hover:hover){ .nav-logo:hover svg{ transform:rotate(90deg); } }
.nav-links{ display:flex; gap:clamp(16px,2.4vw,34px); font-size:15px; font-weight:700; }
.nav-links a{ display:inline-flex; align-items:center; min-height:44px; position:relative; }
.nav-links a::after{
  content:""; position:absolute; left:0; right:0; bottom:10px; height:1.5px; background:currentColor;
  transform:scaleX(0); transform-origin:100% 50%; transition:transform .4s var(--ease);
}
@media (hover:hover){ .nav-links a:hover::after{ transform:scaleX(1); transform-origin:0 50%; } }

/* ---------- buttons ---------- */
.btn{
  display:inline-flex; align-items:center; gap:.6em; height:58px; padding:0 30px; border-radius:999px;
  background:var(--ink); color:var(--paper); font-weight:700; font-size:16px; text-decoration:none;
  transition:transform .2s var(--ease), background-color .3s, color .3s;
}
.btn svg{ width:13px; height:13px; transition:transform .4s var(--ease); }
.btn:active{ transform:scale(.97); }
.btn--light{ background:var(--paper); color:var(--ink); }
.btn[disabled]{ opacity:.6; cursor:default; }

.textlink{ display:inline-flex; align-items:center; gap:.4em; min-height:44px; font-size:15px; font-weight:700; text-decoration:none; white-space:nowrap; }
.textlink svg{ width:13px; height:13px; transition:transform .4s var(--ease); }

/* ---------- entrances ---------- */
.rise{ display:block; overflow:hidden; padding-block:.06em; margin-block:-.06em; }
.rise > span{ display:block; }
.js [data-r]{ opacity:0; transform:translateY(18px); transition:opacity .8s var(--ease), transform .8s var(--ease); transition-delay:var(--d,0s); }
.js [data-r].in{ opacity:1; transform:none; }
@media (prefers-reduced-motion:no-preference){
  .rise > span{ animation:rise 1s var(--ease) both; animation-delay:calc(var(--t0,0s) + var(--d,0s)); }
  .fade{ animation:fade .9s var(--ease) both; animation-delay:calc(var(--t0,0s) + var(--d,0s)); }
}
@keyframes rise{ from{ transform:translateY(108%); } }
/* section headings come up line by line from behind a mask */
.mask > span{ display:block; }
@media (prefers-reduced-motion:no-preference){
  .js [data-r] .mask{ overflow:hidden; padding-block:.06em; margin-block:-.06em; }
  .js [data-r] .mask > span{ transform:translateY(112%); transition:transform 1.05s var(--ease); }
  .js [data-r] .mask > span:nth-child(2){ transition-delay:.09s; }
  .js [data-r].in .mask > span{ transform:none; }
}
@keyframes fade{ from{ opacity:0; transform:translateY(14px); } }
@media (prefers-reduced-motion:reduce){
  .js [data-r]{ opacity:1; transform:none; transition:none; }
}

/* ---------- hero ---------- */
.face-hero{
  background:var(--paper); padding:120px var(--pad) clamp(36px,7vh,84px);
  display:flex; flex-direction:column; justify-content:flex-end;
}
/* The name fills the first screen. Its X is drawn as a shape (the font's own outline),
   so the script knows exactly where the X's stroke lies and can run the cut along it. */
.face-hero{ --fs:min(35vw, 62svh); }
.face-hero h1{ font-size:var(--fs); line-height:.8; letter-spacing:-.025em; white-space:nowrap; }
.hero-name{ display:block; padding-block:.04em; margin-block:-.04em; }
.hx{ display:inline-block; max-width:none; height:.8599em; width:.458em; margin:0 -.0123em 0 .0132em; fill:currentColor; vertical-align:baseline; }
.hero-word{ align-self:flex-start; margin-left:-.4vw; }
/* small plain labels in the corners, like a poster */
.hero-meta{ display:flex; justify-content:space-between; gap:24px; margin-bottom:auto; font-size:15px; font-weight:700; }
.hero-meta span{ white-space:nowrap; }
@media (max-width:640px) and (prefers-reduced-motion:no-preference){
  .hero-row > *{ animation:fade .9s var(--ease) both; animation-delay:calc(var(--t0,0s) + .45s); }
}
/* phones: the name is turned to run down the full height of the screen */
@media (max-width:640px){
  .face-hero{ --fs:min(calc((100svh - 250px) / 2.32), 60vw); padding-right:16px; display:grid; grid-template-columns:auto 1fr; grid-template-rows:minmax(0,1fr) auto; column-gap:28px; padding-top:84px; }
  .hero-word{ grid-column:1; grid-row:1; align-self:end; position:relative; width:calc(var(--fs) * .8); height:calc(var(--fs) * 2.3); margin-left:-1vw; }
  .hero-word h1{ position:absolute; left:0; top:0; transform-origin:0 0; transform:rotate(90deg) translateY(-100%); }
  .hero-meta{ grid-column:2; grid-row:1; align-self:end; flex-direction:column; align-items:flex-end; gap:4px; margin:0 0 .2em; }
  /* the sentence sits in the open space beside the name; only the button goes underneath */
  .face-hero .hero-row{ display:contents; }
  .face-hero .hero-row p{ grid-column:2; grid-row:1; align-self:end; max-width:none; font-size:16px; line-height:1.35; margin:0 0 .25em; }
  .face-hero .hero-row .btn{ grid-column:1 / -1; grid-row:2; justify-self:start; margin-top:22px; }
}
.hero-row{ display:flex; flex-wrap:wrap; align-items:flex-end; justify-content:space-between; gap:24px 40px; margin-top:clamp(20px,2.6vw,36px); }
.hero-row p{ max-width:34ch; font-size:clamp(17px,1.5vw,21px); color:var(--soft); text-wrap:balance; }

/* ---------- the cut: static default (no JS / reduced motion) ---------- */
.cut{ position:relative; }
.cut-layer{ position:relative; min-height:100svh; overflow:hidden; }
.cut-face{ position:relative; min-height:100svh; width:100%; }
.cut-line{ display:none; }
.cut-mark{ position:absolute; left:0; top:100vh; top:100svh; width:1px; height:1px; pointer-events:none; }
.cut-anchor{ position:absolute; left:0; bottom:0; width:1px; height:100vh; height:100svh; pointer-events:none; }

.face-title{ background:var(--paper); display:flex; flex-direction:column; justify-content:center; padding:0 var(--pad); }
.face-title .display{ font-size:clamp(56px,12.4vw,190px); margin-top:14px; }
.face-title small{ margin-top:clamp(18px,2.4vw,30px); font-size:15px; color:var(--soft); }

.face-work{
  background:var(--grey); color:var(--ink);
  display:flex; flex-direction:column; justify-content:center; gap:clamp(18px,3vh,34px);
  padding:clamp(76px,11vh,110px) var(--pad) clamp(24px,5vh,52px);
}
.face-work.dark{ background:var(--night); color:var(--paper); }
.stack{ position:relative; width:min(100%, max(280px, calc((100svh - 300px) * 1.6))); margin:0 auto; }
.shot{
  display:block; position:relative; aspect-ratio:16/10;
  border-radius:clamp(12px,1.6vw,22px); overflow:hidden; background:#ccc;
  box-shadow:0 0 0 1px rgba(0,0,0,.07), 0 30px 80px rgba(0,0,0,.18);
}
.face-work.dark .shot{ box-shadow:0 0 0 1px rgba(255,255,255,.1), 0 30px 80px rgba(0,0,0,.5); }
.shot img, .phone img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:50% 0; }
/* live footage: painted over the poster once the first frame is ready */
.live{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:50% 0; opacity:0; }
.live.on{ opacity:1; }
.live-src{ position:absolute; left:0; top:0; width:2px; height:2px; opacity:0; pointer-events:none; }
.phone{
  position:absolute; right:4%; bottom:-5%; height:76%; aspect-ratio:640/1385;
  border-radius:clamp(14px,2vw,26px); border:clamp(3px,.4vw,6px) solid #111; background:#111;
  overflow:hidden; box-shadow:0 0 0 1px rgba(255,255,255,.16), 0 24px 60px rgba(0,0,0,.35);
}
.face-work.dark .phone{ border-color:#2c2c2c; }
.tag{
  display:grid; grid-template-columns:auto 1fr auto; column-gap:clamp(12px,1.6vw,22px);
  align-items:end; width:min(100%, max(280px, calc((100svh - 300px) * 1.6))); margin:0 auto;
}
.tag-num{ font-family:var(--display); font-size:15px; letter-spacing:.02em; align-self:start; padding-top:.5em; }
.tag h3{ font-family:var(--display); font-weight:400; text-transform:uppercase; font-size:clamp(40px,6.4vw,96px); line-height:.92; letter-spacing:-.015em; }
.tag p{ grid-column:2; max-width:46ch; font-size:15px; line-height:1.4; opacity:.7; margin-top:8px; text-wrap:pretty; }
.tag .textlink{ grid-column:3; grid-row:1; align-self:end; }
@media (max-width:640px){
  .stack, .tag{ width:100%; }
  /* phones get both: the desktop frame across the top, the phone frame overlapping it below */
  .has-phone .phone{ position:relative; right:auto; bottom:auto; display:block; height:min(34svh, 300px); margin:-13% 5% 0 auto; z-index:2; }
  .tag{ grid-template-columns:auto 1fr; }
  .tag .textlink{ grid-column:2; grid-row:auto; margin-top:6px; justify-self:start; }
}

.face-about{
  background:var(--ink); color:var(--paper);
  display:flex; flex-direction:column; justify-content:center; padding:96px var(--pad) 48px;
}
.face-about .display{ font-size:clamp(38px,8vw,128px); margin-top:14px; }
.face-about p{ max-width:52ch; margin-top:clamp(20px,2.6vw,36px); font-size:clamp(17px,1.5vw,21px); color:rgba(255,255,255,.72); }
.face-about p + p{ margin-top:1em; }

/* ---------- the cut: live ---------- */
.cut-on .cut-stage{ position:sticky; top:0; height:100vh; height:100svh; overflow:hidden; }
.cut-on .cut-layer{ position:absolute; inset:0; min-height:0; overflow:visible; will-change:transform; }
.cut-on .cut-face{ position:absolute; inset:0; min-height:0; }
.cut-on .cut-half{ position:absolute; inset:0; will-change:transform; }
.cut-on .cut-line{
  display:block; position:absolute; z-index:40; left:0; top:0; height:2px; margin-top:-1px;
  transform-origin:0 50%; pointer-events:none; mix-blend-mode:difference; opacity:0; will-change:transform, opacity;
}
.cut-on .cut-line i{ display:block; height:100%; background:#fff; transform-origin:0 50%; transform:scaleX(0); }

/* cut it yourself (test page): the stroke you draw, and the cursor that says you can */
.slice-line{
  position:absolute; z-index:41; left:0; top:0; width:0; height:2px; margin-top:-1px; transform-origin:0 50%;
  background:#fff; mix-blend-mode:difference; opacity:0; pointer-events:none; will-change:transform, width, opacity;
}
.cut-on [data-slice] .cut-stage{ touch-action:pan-y; cursor:crosshair; }
.slicing, .slicing *{ -webkit-user-select:none; user-select:none; }
.slicing .cursor span{ transform:scale(0); }

/* ---------- sections ---------- */
.sec{ padding-block:clamp(84px,13vw,180px); }
.head{ display:flex; flex-wrap:wrap; align-items:flex-end; justify-content:space-between; gap:20px 40px; margin-bottom:clamp(36px,5vw,72px); }
.head .h2{ margin-top:14px; }

/* services: a typographic list, no pictures */
.svc-list li{
  position:relative; isolation:isolate;
  display:grid; grid-template-columns:56px minmax(0,1.1fr) minmax(0,1fr) auto; column-gap:clamp(16px,3vw,48px);
  align-items:baseline; padding:clamp(22px,3vw,40px) clamp(12px,1.6vw,24px); margin-inline:calc(clamp(12px,1.6vw,24px) * -1);
  border-top:1px solid var(--line); transition:color .45s var(--ease);
}
.svc-list li:last-child{ border-bottom:1px solid var(--line); }
.svc-list li::before{
  content:""; position:absolute; inset:0; z-index:-1; background:var(--ink);
  clip-path:polygon(0 0, -70px 0, 0 100%, 0 100%); transition:clip-path .7s var(--ease);
}
.svc-n{ font-family:var(--display); font-size:15px; letter-spacing:.02em; }
.svc-list h3{
  font-family:var(--display); font-weight:400; text-transform:uppercase;
  font-size:clamp(38px,6vw,92px); line-height:.94; letter-spacing:-.015em;
}
.svc-list p{ color:var(--soft); max-width:40ch; transition:color .45s var(--ease); }
.svc-t{ font-size:15px; font-weight:700; white-space:nowrap; }
@media (hover:hover){
  .svc-list li:hover{ color:var(--paper); }
  .svc-list li:hover p{ color:rgba(255,255,255,.72); }
  .svc-list li:hover::before{ clip-path:polygon(0 0, 100% 0, calc(100% + 70px) 100%, 0 100%); }
}
@media (max-width:860px){
  .svc-list li{ grid-template-columns:40px 1fr; row-gap:10px; }
  .svc-list p, .svc-t{ grid-column:2; }
}

/* testimonials: set large, one after the other; the words ink in as they are read */
.quotes{ display:grid; gap:clamp(64px,9vw,150px); }
.quotes figure{ max-width:min(100%, 1100px); }
.quotes figure:nth-child(even){ margin-left:auto; }
.quotes blockquote{ font-size:clamp(26px,3.7vw,58px); line-height:1.12; letter-spacing:-.025em; font-weight:500; text-wrap:pretty; }
.quotes figcaption{ margin-top:clamp(20px,2.2vw,32px); font-size:15px; }
.quotes figcaption strong{ display:block; font-weight:700; }
.quotes figcaption span{ color:var(--soft); }
.ink-on .w{ opacity:.14; transition:opacity .35s linear; }
.ink-on .w.lit{ opacity:1; }

/* faq: the one black panel after the cut */
.faq{
  margin-inline:var(--inset); border-radius:var(--r-panel); background:var(--ink); color:var(--paper);
  padding:clamp(64px,9vw,130px) calc(var(--pad) - var(--inset));
}
.faq-grid{ display:grid; grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr); gap:clamp(32px,6vw,96px); }
.faq-q{
  display:flex; align-items:center; justify-content:space-between; gap:24px; width:100%; text-align:left;
  padding-block:22px; min-height:68px; font-size:clamp(18px,1.6vw,22px); font-weight:700;
}
.faq-item{ border-top:1px solid rgba(255,255,255,.18); }
.faq-item:last-child{ border-bottom:1px solid rgba(255,255,255,.18); }
.faq-ico{ position:relative; flex:none; width:16px; height:16px; }
.faq-ico::before,.faq-ico::after{
  content:""; position:absolute; left:0; top:7px; width:16px; height:2px; border-radius:2px; background:currentColor;
  transition:transform .45s var(--ease);
}
.faq-ico::after{ transform:rotate(90deg); }
.faq-item.open .faq-ico::after{ transform:rotate(0deg); }
.faq-a{ display:grid; grid-template-rows:0fr; transition:grid-template-rows .5s var(--ease); }
.faq-item.open .faq-a{ grid-template-rows:1fr; }
.faq-a > div{ overflow:hidden; }
.faq-a p{ padding-bottom:24px; max-width:52ch; color:rgba(255,255,255,.72); }
.faq-foot{ margin-top:clamp(28px,4vw,48px); display:flex; flex-wrap:wrap; align-items:center; gap:16px 24px; color:rgba(255,255,255,.72); }
@media (max-width:860px){ .faq-grid{ grid-template-columns:1fr; } }
@media (prefers-reduced-motion:reduce){ .faq-a,.faq-ico::before,.faq-ico::after{ transition:none; } }

/* closing line */
/* one rhythm down the end of the page: a wide breath above the closing line, a short step to the footer, a tight footer */
.cta{ padding:clamp(72px,11vw,160px) var(--pad) clamp(28px,4vw,56px); }
.cta a{ display:block; text-decoration:none; }
.cta .display{ font-size:clamp(58px,14.6vw,236px); }
.cta-arrow{
  display:inline-grid; place-items:center; vertical-align:.08em; margin-left:.14em;
  width:.74em; height:.74em; border-radius:50%; background:var(--ink); color:var(--paper);
  transition:transform .6s var(--ease);
}
.cta-arrow svg{ width:38%; height:38%; }
@media (hover:hover){ .cta a:hover .cta-arrow{ transform:rotate(45deg); } }
/* the closing line is cut on the same diagonal: it parts under the pointer, and once on arrival */
.split{ position:relative; }
.sp{ display:block; transition:transform .8s var(--ease); will-change:transform; }
.sp-a{ clip-path:polygon(-10% -10%, calc(50% - var(--sh,300px) / 2 + 1px) -10%, calc(50% - var(--sh,300px) / 2 + 1px) 0, calc(50% + var(--sh,300px) / 2 + 1px) 100%, calc(50% + var(--sh,300px) / 2 + 1px) 110%, -10% 110%); }
.sp-b{ position:absolute; inset:0; clip-path:polygon(calc(50% - var(--sh,300px) / 2) -10%, 110% -10%, 110% 110%, calc(50% + var(--sh,300px) / 2) 110%, calc(50% + var(--sh,300px) / 2) 100%, calc(50% - var(--sh,300px) / 2) 0); }
.split.in .sp-a{ animation:part-a 1.5s .5s var(--ease-io); }
.split.in .sp-b{ animation:part-b 1.5s .5s var(--ease-io); }
@keyframes part-a{ 45%{ transform:translate(-.055em, .055em); } }
@keyframes part-b{ 45%{ transform:translate(.055em, -.055em); } }
@media (hover:hover){
  .cta a:hover .sp-a{ transform:translate(-.055em, .055em); }
  .cta a:hover .sp-b{ transform:translate(.055em, -.055em); }
}

/* footer */
.footer{ padding:0 var(--pad) clamp(22px,3vw,36px); }
.footer-row{ display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:2px 40px; font-size:15px; }
.footer-mail{ font-size:clamp(20px,2.2vw,30px); font-weight:700; text-decoration:none; display:inline-flex; min-height:44px; align-items:center; }
.footer-meta{ display:flex; flex-wrap:wrap; align-items:center; gap:8px 14px; color:var(--soft); }
.footer-meta > span{ white-space:nowrap; }
[data-clock]{ font-variant-numeric:tabular-nums; }
.footer-punjab{ width:30px; height:auto; fill:none; stroke:var(--ink); stroke-width:14; stroke-linejoin:round; }
.footer-pa{ color:var(--ink); font-size:18px; }
/* the outline and the Punjabi wordmark always travel together */
.footer-meta > .footer-sig{ display:inline-flex; align-items:center; gap:10px; }

/* ---------- contact page ---------- */
.contact{ min-height:100svh; padding:clamp(120px,16vh,190px) var(--pad) clamp(60px,8vw,110px); display:grid; grid-template-columns:minmax(0,1fr) minmax(0,.9fr); gap:clamp(40px,7vw,120px); align-items:start; }
.contact h1{ font-size:clamp(52px,8.4vw,132px); margin-top:14px; }
.contact-lead{ max-width:34ch; margin-top:clamp(20px,2.6vw,34px); font-size:clamp(17px,1.5vw,21px); color:var(--soft); }
.contact .footer-mail{ margin-top:18px; }
@media (max-width:900px){ .contact{ grid-template-columns:1fr; } }

.form{ display:grid; gap:clamp(22px,2.6vw,34px); }
.hp{ position:absolute; left:-9999px; }
.field > label, .field > .lbl{ display:block; font-size:15px; font-weight:700; margin-bottom:6px; }
.field input[type=text], .field input[type=email], .field textarea{
  width:100%; font:inherit; font-size:18px; color:var(--ink); background:none; border:0; border-radius:0;
  border-bottom:1.5px solid var(--line); padding:12px 0; transition:border-color .3s;
}
.field textarea{ min-height:120px; resize:vertical; }
.field input::placeholder, .field textarea::placeholder{ color:#9a9a9a; }
.field input:focus, .field textarea:focus{ outline:none; border-bottom-color:var(--ink); }
.budget{ display:flex; flex-wrap:wrap; gap:10px; margin-top:4px; }
.budget input{ position:absolute; opacity:0; pointer-events:none; }
.budget label{
  display:inline-flex; align-items:center; min-height:46px; padding:0 20px; border-radius:999px;
  border:1.5px solid var(--line); font-size:15px; font-weight:700; cursor:pointer;
  transition:background-color .25s, color .25s, border-color .25s, transform .2s var(--ease);
}
.budget label:active{ transform:scale(.96); }
.budget input:checked + label{ background:var(--ink); color:var(--paper); border-color:var(--ink); }
.budget input:focus-visible + label{ outline:2px solid var(--ink); outline-offset:3px; }
.form .btn{ justify-self:start; }
.form-note{ font-size:15px; color:var(--soft); }
.form-note a{ color:var(--ink); font-weight:700; }
.form-done{ padding-top:8px; }
.form-done b{ display:block; font-family:var(--display); font-weight:400; text-transform:uppercase; font-size:clamp(44px,6vw,88px); line-height:.95; letter-spacing:-.015em; }
.form-done p{ margin-top:16px; color:var(--soft); max-width:34ch; }
@media (prefers-reduced-motion:no-preference){ .form-done{ animation:fade .8s var(--ease) both; } }

/* ---------- page to page: the same diagonal opens the next page ---------- */
@view-transition{ navigation:auto; }
@media (prefers-reduced-motion:no-preference){
  ::view-transition-old(root){ animation:none; }
  ::view-transition-new(root){ animation:cut-in .8s var(--ease-io) both; }
}
@keyframes cut-in{
  from{ clip-path:polygon(0 0, 100% 100%, 100% 100%, 0 0); }
  to{ clip-path:polygon(50% -50%, 150% 50%, 50% 150%, -50% 50%); }
}

/* very small phones: the wordmark and three links do not fit, so Services drops out */
@media (max-width:360px){ .nav-links a:nth-child(2){ display:none; } }

/* ---------- opening ----------
   Once per session, never with reduced motion (html.intro is set in the head before
   first paint). The screen starts black. On the home page the cut engine takes over
   (html.cut-intro): a line is drawn along the X's stroke and the two halves of the
   page slide in from either side and lock together. Where the engine does not run,
   html.intro-css plays the plain version below: a line, then two black doors parting.
   If the script never arrives at all, the black simply lifts after a few seconds. */
.curtain{ display:none; }
.intro{ --t0:1.05s; }
.cut-intro{ --t0:1.75s; }
.intro .curtain{ display:block; position:fixed; inset:0; z-index:90; pointer-events:none; animation:curtain-off 0s 4.5s forwards; }
.cut-intro .curtain{ display:none; }
.intro-css .curtain{ animation:curtain-off 0s 2.4s forwards; }
.curtain i{ position:absolute; inset:0; background:#000; will-change:transform; }
.curtain .ca{ clip-path:polygon(0 0, calc(50% - 50vh + 1.5px) 0, calc(50% + 50vh + 1.5px) 100%, 0 100%); }
.curtain .cb{ clip-path:polygon(calc(50% - 50vh) 0, 100% 0, 100% 100%, calc(50% + 50vh) 100%); }
.intro-css .curtain .ca{ animation:door-a 1.15s .6s var(--ease-io) forwards; }
.intro-css .curtain .cb{ animation:door-b 1.15s .6s var(--ease-io) forwards; }
@media (orientation:portrait){
  .curtain .ca{ clip-path:polygon(0 calc(50% - 50vw - 1.5px), 100% calc(50% + 50vw - 1.5px), 100% 100%, 0 100%); }
  .curtain .cb{ clip-path:polygon(0 0, 100% 0, 100% calc(50% + 50vw), 0 calc(50% - 50vw)); }
}
.curtain b{ position:absolute; left:50%; top:50%; width:141.5vmin; margin-left:-70.75vmin; height:2px; margin-top:-1px; transform:rotate(45deg); opacity:0; }
.intro-css .curtain b{ opacity:1; }
.curtain b::after{ content:""; display:block; height:100%; background:#fff; transform-origin:0 50%; }
.intro-css .curtain b::after{ animation:line-draw .55s .05s var(--ease-io) both, line-out .25s .6s forwards; }
@keyframes door-a{ to{ transform:translate(-56vmax, 56vmax); } }
@keyframes door-b{ to{ transform:translate(56vmax, -56vmax); } }
@keyframes line-draw{ from{ transform:scaleX(0); } }
@keyframes line-out{ to{ opacity:0; } }
@keyframes curtain-off{ to{ visibility:hidden; } }
.cut-black{ position:absolute; inset:0; background:#000; }

/* ---------- "Visit" cursor over project screens ---------- */
.cursor{ position:fixed; left:0; top:0; z-index:60; width:0; height:0; pointer-events:none; }
.cursor span{
  position:absolute; left:-46px; top:-46px; width:92px; height:92px; border-radius:50%;
  display:grid; place-items:center; background:var(--paper); color:var(--ink);
  font-size:14px; font-weight:700; box-shadow:0 10px 30px rgba(0,0,0,.25);
  transform:scale(0); transition:transform .35s var(--ease);
}
.cursor.on span{ transform:scale(1); }
.has-cursor [data-cursor]{ cursor:none; }

/* ============================================================
   The small controls. Each one answers the pointer or the thumb,
   and each one uses the same slanted edge as the cut.
   ============================================================ */
html{ -webkit-tap-highlight-color:transparent; }

/* buttons: ink pours in behind a 45deg edge; the arrow leaves and a new one arrives */
.btn{
  position:relative; isolation:isolate; overflow:hidden;
  --fill:var(--paper); --on:var(--ink); --ring:var(--ink);
  transition:transform .2s var(--ease), color .45s var(--ease);
}
.btn--light{ --fill:var(--ink); --on:var(--paper); --ring:var(--paper); }
/* the outline sits on top of the fill, so the wipe can never cover it */
.btn::after{ content:""; position:absolute; inset:0; border-radius:inherit; border:1.5px solid var(--ring); pointer-events:none; }
.btn::before{
  content:""; position:absolute; inset:0; z-index:-1; background:var(--fill);
  clip-path:polygon(0 0, -60px 0, 0 100%, 0 100%); transition:clip-path .6s var(--ease);
}
.btn svg, .textlink svg{ overflow:hidden; }
@keyframes arrow-swap{
  0%{ transform:translate(0,0); } 45%{ transform:translate(17px,-17px); }
  45.01%{ transform:translate(-17px,17px); } 100%{ transform:translate(0,0); }
}
@media (hover:hover){
  .btn:not([disabled]):hover, .btn.hov{ color:var(--on); }
  .btn:not([disabled]):hover::before, .btn.hov::before{ clip-path:polygon(0 0, 100% 0, calc(100% + 60px) 100%, 0 100%); }
}
@media (hover:hover) and (prefers-reduced-motion:no-preference){
  .btn:not([disabled]):hover svg path, .btn.hov svg path,
  .textlink:hover svg path, .textlink.hov svg path{ animation:arrow-swap .55s var(--ease-io); }
}
.btn.busy svg path{ animation:arrow-swap .8s var(--ease-io) infinite; }

/* text links: the underline draws in from the left and leaves to the right */
.textlink, .footer-mail{ position:relative; transition:opacity .2s; }
.textlink::after, .footer-mail::after{
  content:""; position:absolute; left:0; right:0; bottom:9px; height:1.5px; background:currentColor;
  transform:scaleX(0); transform-origin:100% 50%; transition:transform .45s var(--ease);
}
.footer-mail::after{ bottom:4px; height:2px; }
@media (hover:hover){
  .textlink:hover::after, .textlink.hov::after, .footer-mail:hover::after{ transform:scaleX(1); transform-origin:0 50%; }
}
/* thumbs get an answer too */
.textlink:active, .footer-mail:active, .nav a:active{ opacity:.55; }
.nav a{ transition:opacity .2s; }

/* nav: steps out of the way while reading down, returns on the way up */
.nav{ transition:transform .55s var(--ease); }
.nav--hide{ transform:translateY(-110%); }
@media (prefers-reduced-motion:reduce){ .nav{ transition:none; } }

/* faq: the plus turns into the diagonal; the answer rises into place */
.faq-ico{ transition:transform .5s var(--ease); }
.faq-item.open .faq-ico{ transform:rotate(45deg); }
.faq-q > span:first-child{ transition:transform .45s var(--ease); }
.faq-q:active > span:first-child{ transform:translateX(8px); }
@media (hover:hover){ .faq-q:hover > span:first-child{ transform:translateX(8px); } }
@media (prefers-reduced-motion:no-preference){
  .faq-a p{ opacity:0; transform:translateY(14px); transition:opacity .35s var(--ease), transform .6s var(--ease); }
  .faq-item.open .faq-a p{ opacity:1; transform:none; transition-delay:.1s; }
}

/* form: the line under a field draws across when you are in it */
.field{ position:relative; }
.field textarea{ display:block; }
.field:not(:has(.budget))::after{
  content:""; position:absolute; left:0; right:0; height:1.5px; background:var(--ink); pointer-events:none;
  top:var(--line-y, auto); bottom:0; transform:scaleX(0); transform-origin:0 50%; transition:transform .55s var(--ease), background-color .3s;
}
.field:not(:has(.budget)):focus-within::after{ transform:scaleX(1); }
.field.bad::after{ transform:scaleX(1) !important; background:#b3261e !important; }
.field.bad{ padding-bottom:30px; }
.field.bad::after{ bottom:30px; }
.err{ position:absolute; left:0; bottom:0; font-size:14px; font-weight:700; color:#b3261e; }
@media (prefers-reduced-motion:no-preference){ .err{ animation:fade .4s var(--ease) both; } }
@media (hover:hover){ .budget label:hover{ border-color:var(--ink); } }
/* sent: the thank-you is cut open on the diagonal */
@media (prefers-reduced-motion:no-preference){ .form-done{ animation:cut-in .9s var(--ease-io) both; } }

/* ============================================================
   Case studies. One page per project: the name, the idea, the
   site moving, and the way on to the next one.
   ============================================================ */
.case-head{ padding-top:clamp(120px,16vh,190px); }
.case-head h1{ font-size:clamp(64px,15vw,230px); margin-top:14px; }
.case-top{ display:grid; grid-template-columns:minmax(0,1.1fr) minmax(0,1fr); gap:clamp(24px,5vw,80px); align-items:end; margin-top:clamp(24px,3vw,44px); }
.case-idea{ font-size:clamp(21px,2.2vw,32px); line-height:1.25; letter-spacing:-.012em; max-width:26ch; text-wrap:balance; }
.case-meta{ display:grid; grid-template-columns:repeat(3,auto); justify-content:end; gap:6px clamp(20px,3vw,48px); font-size:15px; }
.case-meta dt{ color:var(--soft); }
.case-meta dd{ font-weight:700; }
.case-meta .textlink{ min-height:0; }
.case-meta .textlink::after{ bottom:-2px; }
.case-hero{ margin-top:clamp(40px,6vw,90px); }
.case-media{ position:relative; z-index:1; overflow:hidden; border-radius:clamp(12px,1.6vw,22px); background:#ccc; box-shadow:0 0 0 1px rgba(0,0,0,.07), 0 30px 80px rgba(0,0,0,.18); }
.case-media.desk{ aspect-ratio:16/10; }
.case-media.mob{ aspect-ratio:480/1040; }
.case-media img, .case-media video{ display:block; width:100%; height:100%; object-fit:cover; object-position:50% 0; }
.case-text{ display:grid; grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr); gap:clamp(24px,6vw,96px); padding-block:clamp(84px,13vw,180px); }
.case-text p{ max-width:52ch; font-size:clamp(17px,1.5vw,21px); line-height:1.55; }
.case-text p + p{ margin-top:1em; }
.case-scope li{ font-family:var(--display); text-transform:uppercase; font-size:clamp(26px,3.2vw,50px); line-height:1.04; letter-spacing:-.012em; text-wrap:balance; }
.case-scope li + li{ margin-top:.18em; }
.case-grid{ display:grid; grid-template-columns:repeat(12,minmax(0,1fr)); column-gap:clamp(12px,2vw,28px); row-gap:clamp(40px,8vw,120px); align-items:start; }
.g-a{ grid-column:1 / span 8; }
.g-b{ grid-column:10 / span 3; margin-top:clamp(60px,14vw,220px); }
.g-c{ grid-column:2 / span 3; }
.g-d{ grid-column:6 / span 7; margin-top:clamp(40px,8vw,120px); }
.g-e{ grid-column:3 / span 8; }
/* images arrive: the frame rises a little and the picture inside eases back to size */
@media (prefers-reduced-motion:no-preference){
  .js .case-media[data-r]{ transform:translateY(34px); transition:opacity .9s var(--ease), transform 1.2s var(--ease); }
  .js .case-media[data-r] img, .js .case-media[data-r] video{ transform:scale(1.09); transition:transform 1.8s var(--ease); }
  .js .case-media[data-r].in{ transform:none; }
  .js .case-media[data-r].in img, .js .case-media[data-r].in video{ transform:none; }
}
/* the idea sits in a black panel, the same one the homepage uses for its questions */
.case-crumb{ display:flex; align-items:center; justify-content:space-between; gap:20px; }
.case-crumb .textlink::after{ bottom:9px; }
.case-dark{ margin:clamp(56px,8vw,120px) var(--inset) 0; border-radius:var(--r-panel); background:var(--ink); color:var(--paper); padding:clamp(64px,9vw,130px) calc(var(--pad) - var(--inset)); }
.case-dark p{ color:rgba(255,255,255,.76); }
.case-dark + .case-grid{ margin-top:clamp(84px,13vw,180px); }
.case-next{ display:block; text-decoration:none; padding:clamp(72px,11vw,160px) var(--pad) clamp(28px,4vw,56px); }
.case-next .display{ display:block; margin-top:10px; font-size:clamp(44px,11vw,184px); white-space:nowrap; }
.case-next .cta-arrow{ vertical-align:.08em; }
@media (hover:hover){ .case-next:hover .cta-arrow{ transform:rotate(45deg); } }
@media (max-width:760px){
  .case-top, .case-text{ grid-template-columns:1fr; }
  .case-meta{ justify-content:start; grid-template-columns:repeat(2,auto); }
  .g-a, .g-d, .g-e{ grid-column:1 / -1; margin-top:0; }
  .g-b{ grid-column:6 / span 7; margin-top:0; }
  .g-c{ grid-column:1 / span 6; }
}
/* The water surface (js/water.js) moves text and content, never the photos. Words and,
   in large type, letters are inline blocks so each can be nudged along the surface. */
.wv, .wv-c, .wv-w{ display:inline-block; }
.wv-w{ white-space:nowrap; position:relative; }
.water .w{ display:inline-block; }
/* while the surface is moving, the entrance masks stop clipping, or they would slice the type as it bends */
.water-live .rise, .water-live [data-r].in .mask{ overflow:visible; }

/* the hero sentence ends on a word that changes: each client, then you */
.swap-line{ display:block; }
.swap{ display:inline-block; overflow:hidden; vertical-align:bottom; white-space:nowrap; color:var(--ink); padding-bottom:.08em; margin-bottom:-.08em; }
.swap > span{ display:inline-block; }

/* ---------- page turn, for browsers without built-in page transitions ----------
   Leaving: two black halves close on the diagonal. Arriving: they part again. */
.turn{ position:fixed; inset:0; z-index:96; pointer-events:none; }
.turn i{ position:absolute; inset:0; background:#000; will-change:transform; }
.turn .ca{ clip-path:polygon(0 0, calc(50% - 50vh + 1.5px) 0, calc(50% + 50vh + 1.5px) 100%, 0 100%); }
.turn .cb{ clip-path:polygon(calc(50% - 50vh) 0, 100% 0, 100% 100%, calc(50% + 50vh) 100%); }
@media (orientation:portrait){
  .turn .ca{ clip-path:polygon(0 calc(50% - 50vw - 1.5px), 100% calc(50% + 50vw - 1.5px), 100% 100%, 0 100%); }
  .turn .cb{ clip-path:polygon(0 0, 100% 0, 100% calc(50% + 50vw), 0 calc(50% - 50vw)); }
}
html.turn-in::before{ content:""; position:fixed; inset:0; z-index:96; background:#000; animation:curtain-off 0s 1.6s forwards; }

/* ---------- 404 ---------- */
.lost{ min-height:100svh; background:var(--ink); color:var(--paper); display:flex; flex-direction:column; justify-content:flex-end; padding:120px var(--pad) clamp(36px,7vh,84px); }
.lost h1{ font-size:clamp(56px,12.4vw,190px); }
.lost .hero-row p{ color:rgba(255,255,255,.72); }
