/* Studio Doron Amir · white + charcoal, heavy type, plenty of room.
   The home page is a four-act scroll story; every act degrades to a static layout
   under prefers-reduced-motion. */
@font-face { font-family: "Outfit"; src: url(fonts/Outfit-Black.woff2) format("woff2"), url(fonts/Outfit-Black.ttf) format("truetype"); font-weight: 900; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url(fonts/InstrumentSans-Regular.woff2) format("woff2"), url(fonts/InstrumentSans-Regular.ttf) format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "DM Mono"; src: url(fonts/DMMono-Regular.woff2) format("woff2"), url(fonts/DMMono-Regular.ttf) format("truetype"); font-weight: 400; font-display: swap; }

@view-transition { navigation: auto; }

:root {
  --white: #ffffff;
  --charcoal: #111111;
  --muted: #5c5c5c;
  --rule: #e4e4e4;
  --display: "Outfit", "Arial Black", Arial, sans-serif;
  --body: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "DM Mono", ui-monospace, Menlo, monospace;
  --gutter: clamp(20px, 5vw, 72px);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--charcoal); font: 400 18px/1.6 var(--body); }
img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--charcoal); color: var(--white); }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 1000; background: #fff; color: #111; padding: 10px 14px; border: 2px solid #111; }
.skip:focus { top: 16px; }
.mono { font: 400 13px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.wrap { max-width: 1440px; margin: 0 auto; padding-inline: var(--gutter); }
.fig { mix-blend-mode: multiply; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- header: blends so it reads over white and charcoal ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 20; color: var(--white); mix-blend-mode: difference; pointer-events: none; }
.site-header { transition: transform 260ms var(--ease-out); }
.site-header.tucked { transform: translateY(-100%); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; padding-block: 22px; }
.site-header a { pointer-events: auto; }
.site-header .da { width: 54px; }
.nav { display: flex; gap: clamp(18px, 3vw, 44px); font-size: 16px; }
.nav a, .link { text-decoration: none; position: relative; }
.nav a::after, .link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform 220ms var(--ease-out);
}
.link.always::after { transform: scaleX(1); }
@media (hover: hover) and (pointer: fine) {
  .nav a:hover::after, .link:hover::after { transform: scaleX(1); transform-origin: left; }
}

/* ---------- scene scaffolding ---------- */
.scene { position: relative; }
.stage { position: sticky; top: 0; height: 100svh; overflow: hidden; }

/* Act 1 · the signature */
#act-signature { height: 260svh; }
#act-signature .stage { display: grid; }
.a1-studio { position: absolute; left: var(--gutter); right: var(--gutter); top: 15svh;
  font: 900 clamp(84px, 21vw, 330px)/.84 var(--display); letter-spacing: -.02em; margin: 0; will-change: transform, opacity; }
.a1-lead { position: absolute; left: var(--gutter); bottom: 12svh; will-change: opacity, transform; }
.a1-lead p { font-size: clamp(22px, 2.4vw, 34px); line-height: 1.2; margin: 0 0 24px; }
.a1-sig { position: absolute; right: var(--gutter); bottom: 11svh; width: min(52vw, 640px); will-change: transform; }
.a1-sig svg, .a1-sig-static { display: block; width: 100%; height: auto; }
.a1-sig.pen .a1-sig-static { display: none; }   /* static logo only until the pen version is built, or without JS */
.a1-hint { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); }

/* Act 2 · the studio */
#act-studio { height: 420svh; }
#act-studio .stage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(24px, 5vw, 80px); padding-inline: var(--gutter); max-width: 1440px; margin: 0 auto; }
.a2-figs { position: relative; height: min(70svh, 640px); }
.a2-figs img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; will-change: opacity, transform; }
.a2-figs img:first-child { opacity: 1; }
.a2-lines { display: grid; gap: clamp(14px, 2.4svh, 28px); }
.a2-line { color: #8a8a86; transition: color 300ms ease; }   /* inactive lines: 3.5:1 on white, AA for large text */
.a2-line p { opacity: 0; transition: opacity 300ms ease; }
.a2-line.on p { opacity: 1; }
.a2-line.on { color: var(--charcoal); }
.a2-line h2 { font: 400 clamp(32px, 4.2vw, 64px)/1.05 var(--body); letter-spacing: -.01em; margin: 0; }
.a2-line p { margin: 6px 0 0; color: var(--muted); max-width: 46ch; font-size: 17px; }
.a2-count { position: absolute; left: var(--gutter); top: 96px; }

/* Act 3 · the work */
#act-work { height: calc(var(--n, 8) * 100svh); }
#act-work .stage { display: grid; grid-template-rows: 1fr auto; }
.a3-frames { position: relative; overflow: hidden; margin-top: 88px; }
.a3-frame { position: absolute; inset: 0; display: block; transform: translateY(100%); transform-origin: 50% 40%; box-shadow: 0 -18px 40px rgba(17, 17, 17, 0.08); will-change: transform; }
.a3-frame:first-child { transform: none; box-shadow: none; }
.a3-frame { background: var(--white); }
/* show the work whole: fitted, never cropped or blown up past its pixels */
.a3-frame picture { display: contents; }
.a3-frame img { width: 100%; height: 100%; object-fit: contain; padding: 3svh var(--gutter) 1svh; }
.a3-bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: end; padding: 20px var(--gutter) 26px; background: var(--white); }
/* all captions share one grid cell, so the box is as tall as the longest one: nothing is cut */
.a3-captions { display: grid; }
/* the outgoing caption leaves fast, the incoming one arrives just after: names never overlap */
.a3-cap { grid-area: 1 / 1; opacity: 0; transform: translateY(10px); transition: opacity 110ms ease, transform 110ms ease; }
.a3-cap.on { opacity: 1; transform: none; transition: opacity 260ms var(--ease-out) 110ms, transform 260ms var(--ease-out) 110ms; }
.a3-cap h3 { font: 400 clamp(24px, 2.6vw, 36px)/1.1 var(--body); margin: 0; }
.a3-cap p { margin: 4px 0 0; color: var(--muted); font-size: 15px; }
.a3-side { text-align: right; display: grid; gap: 8px; justify-items: end; }

/* Act 4 · sign-off */
#act-signoff { height: 200svh; }
#act-signoff .stage { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.a4-text { background: var(--charcoal); color: var(--white); padding: max(18svh, 150px) var(--gutter) 10svh;   /* keeps the label clear of the fixed header DA */ display: flex; flex-direction: column; justify-content: safe center; overflow: hidden; }
.a4-text h2 { font: 400 clamp(44px, 6.4vw, 104px)/1 var(--body); margin: 0; max-width: 11ch; }
.a4-rule { height: 2px; background: var(--white); margin: 40px 0 0; width: min(100%, 520px); transform: scaleX(0); transform-origin: left; will-change: transform; }
.a4-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.a4-meta { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 10px 32px; }
.a4-meta a { text-decoration: none; }
.a4-figure { background: var(--white); display: grid; place-items: end center; padding-top: 12svh; overflow: hidden; }
.a4-figure img { height: 78svh; width: auto; will-change: transform; }
.btn {
  display: inline-flex; align-items: center; text-decoration: none; font-size: 16px;
  padding: 16px 26px; border: 1px solid currentColor; border-radius: 999px;
  transition: transform 160ms var(--ease-out), background-color 150ms ease, color 150ms ease;
}
.btn:active { transform: scale(0.97); }
.btn.solid { background: var(--white); color: var(--charcoal); border-color: var(--white); }
@media (hover: hover) and (pointer: fine) {
  .a4-text .btn:not(.solid):hover { background: var(--white); color: var(--charcoal); }
}

footer { padding-block: 36px; }
footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
footer .sig { width: 200px; }

/* ---------- live signature: ink trail ---------- */
.ink { position: fixed; inset: 0; z-index: 30; pointer-events: none; mix-blend-mode: difference; }

/* ---------- project pages ---------- */
.project-hero { padding-block: clamp(110px, 14vw, 170px) clamp(32px, 5vw, 64px); }
.project-hero h1 { font: 400 clamp(48px, 8vw, 120px)/1 var(--body); letter-spacing: -.02em; margin: 18px 0 28px; }   /* Outfit Black is reserved for the STUDIO device (brand book) */
.project-hero p { font-size: clamp(20px, 2vw, 28px); line-height: 1.3; max-width: 34ch; margin: 0; }
.project-facts { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 80px); border-top: 1px solid var(--charcoal); padding-block: 24px clamp(48px, 7vw, 96px); }
.project-facts dl { margin: 0; display: grid; gap: 18px; align-content: start; }
.project-facts dt { color: var(--muted); margin-bottom: 4px; }
.project-facts dd { margin: 0; font-size: 17px; line-height: 1.4; }
.project-facts .story { display: grid; gap: 24px; align-content: start; }
.project-facts .story p { margin: 6px 0 0; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.4; max-width: 40ch; }
.project-facts .story .mono { color: var(--muted); }
@media (max-width: 820px) { .project-facts { grid-template-columns: 1fr; } }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); padding-bottom: clamp(64px, 9vw, 120px); }
.gallery img { width: 100%; height: auto; background: #f3f3f3; }
.gallery img.wide, .gallery video.wide { grid-column: 1 / -1; }
.gallery video { width: 100%; height: auto; display: block; background: #f3f3f3; }
.next { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--charcoal); padding-block: 24px 64px; }
.contact-strip { background: var(--charcoal); color: var(--white); padding-block: clamp(64px, 9vw, 120px); }
.contact-strip h2 { font: 400 clamp(40px, 6vw, 88px)/1 var(--body); margin: 0 0 36px; max-width: 12ch; }

/* links page */
.links-page { min-height: 100svh; display: grid; place-items: center; padding: 48px var(--gutter); }
.links-page .inner { width: min(100%, 440px); text-align: center; display: grid; gap: 14px; }
.links-page .sig { width: min(100%, 300px); margin: 0 auto; }
.links-page .mono { margin: 0 0 14px; color: var(--muted); }
.links-page .da { width: 40px; margin: 22px auto 0; }
.links-page .btn { justify-content: center; border-color: var(--charcoal); }
.links-page .btn.solid { background: var(--charcoal); color: var(--white); border-color: var(--charcoal); }

/* ---------- small screens ---------- */
@media (max-width: 820px) {
  #act-studio .stage { grid-template-columns: minmax(0, 1fr); grid-template-rows: 33svh auto; align-content: center; padding-top: 64px; }
  .a2-figs { height: 31svh; }
  .a2-line p { display: none; }
  .a2-line.on p { display: block; }
  .a1-sig { width: 80vw; bottom: 30svh; }
  .a1-lead { bottom: 8svh; }
  /* phones: the sign-off is a normal section, not pinned, so nothing slides under the menu */
  #act-signoff { height: auto; }
  #act-signoff .stage { position: relative; height: auto; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto; }
  /* phones: one white scene. The invitation, then Doron standing on a ground line that leads into the signature */
  .a4-text { background: var(--white); color: var(--charcoal); padding: 104px var(--gutter) 8px; }
  .a4-text h2 { font-size: clamp(40px, 12vw, 56px); }
  .a4-rule { background: var(--charcoal); margin-top: 28px; transform: none !important; }
  .a4-actions { margin-top: 28px; }
  .a4-actions { flex-direction: column; }
  .a4-actions .btn { justify-content: center; padding-block: 18px; }
  .a4-text .btn.solid { background: var(--charcoal); color: var(--white); border-color: var(--charcoal); }
  .a4-text .btn:not(.solid) { color: var(--charcoal); border-color: var(--charcoal); }
  .a4-meta { margin-top: 32px; flex-direction: column; gap: 12px; width: 55%; }
  .a4-figure { padding: 8px var(--gutter) 0; display: flex; justify-content: flex-end; align-items: flex-end; }
  /* Doron stands beside the contact links, feet on the ground line above the signature */
  .a4-figure { margin-top: -118px; background: transparent; pointer-events: none; position: relative; }
  .a4-figure img { height: auto; width: min(33vw, 170px); margin-right: 1vw; transform: none !important; }
  #act-signoff + footer, footer { padding-top: 0; }
  footer .wrap { border-top: 1px solid var(--charcoal); padding-top: 18px; flex-direction: column; align-items: flex-start; gap: 12px; }
  .a3-cap p { font-size: 14px; }
  .a3-frame picture { display: contents; }
  .gallery { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- reduced motion: no pinning, everything in its final state ---------- */
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*) { animation-duration: 0s; }
  #act-signature, #act-studio, #act-work, #act-signoff { height: auto; }
  .stage { position: relative; height: auto; min-height: 100svh; }
  #act-signature .stage { min-height: 100svh; }
  .a2-figs img { opacity: 0; } .a2-figs img:first-child { opacity: 1; }
  .a2-line { opacity: 1; }
  .a3-frames { height: 75svh; }
  .a4-rule { transform: none; }
}

/* page not found */
.notfound { min-height: 70svh; display: flex; flex-direction: column; justify-content: center; gap: 18px; padding-block: 140px 80px; }
.notfound h1 { font: 400 clamp(48px, 8vw, 120px)/1 var(--body); letter-spacing: -.02em; margin: 0; }
.notfound p { font-size: clamp(20px, 2vw, 28px); margin: 0; }
.notfound .nf-links { display: flex; gap: 28px; margin-top: 18px; font-size: 18px; }

/* ---------- service pages ---------- */
.svc-block { border-top: 1px solid var(--charcoal); padding-block: 24px clamp(48px, 7vw, 96px); display: grid; gap: 24px; }
.svc-block > .mono { color: var(--muted); }
.svc-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 40px; }
.svc-list li { font-size: clamp(20px, 2vw, 28px); line-height: 1.3; }
.svc-work { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.svc-card { display: grid; gap: 10px; color: inherit; text-decoration: none; }
.svc-card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: #f3f3f3; }
.svc-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.svc-steps b { display: block; font-weight: 400; font-size: clamp(22px, 2vw, 30px); margin: 8px 0 6px; }
.svc-steps p { margin: 0; line-height: 1.45; max-width: 30ch; }
.svc-cta h2 { font: 400 clamp(32px, 4.5vw, 64px)/1.05 var(--body); letter-spacing: -.02em; margin: 0; max-width: 18ch; }
.svc-cta p { margin: 0; font-size: 18px; line-height: 1.45; max-width: 52ch; }
.svc-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.svc .btn { border-color: var(--charcoal); color: var(--charcoal); }
.svc .btn.solid { background: var(--charcoal); color: var(--white); }
.svc-other { display: flex; gap: 24px; flex-wrap: wrap; }
.foot-svc { display: flex; gap: 18px; flex-wrap: wrap; }
.foot-svc a { color: inherit; }
@media (max-width: 820px) {
  .svc-list, .svc-steps { grid-template-columns: 1fr; }
  .svc-work { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.svc-film { width: min(100%, 520px); height: auto; display: block; background: #f3f3f3; }
.a2-line h2 a { color: inherit; text-decoration: none; }
.a2-line h2 a:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
