/* Case Ateliér · caseatelier.eu
   World: a printer's proof sheet. White stock, proof-grey sheets, black ink,
   orange as a whole field. Crop marks, registration marks, slug lines. Outfit only. */

@font-face {
  font-family: "Outfit";
  src: url("fonts/Outfit-Variable.woff2") format("woff2-variations"),
       url("fonts/Outfit-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --stock: #ffffff;
  --sheet: #cccbce;
  --sheet-2: #efeeec;
  --ink: #0e0e0f;
  --ink-2: #4b4a4d;
  --hair: #d9d8d6;
  --signal: #f05a28;
  --on-signal: #140a06;
  --on-ink: #f4f3f1;
  --on-ink-2: #a7a5a2;

  --face: "Outfit", "Futura", "Century Gothic", "Helvetica Neue", Arial, sans-serif;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1360px;
  --header-h: 68px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (pointer: fine) { html { overscroll-behavior: none; } }
body {
  margin: 0;
  background: var(--stock);
  color: var(--ink);
  font: 350 1.0625rem/1.6 var(--face);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 1.5px; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--signal); color: var(--on-signal); }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 2px; }
html { scrollbar-color: var(--ink-2) var(--sheet-2); }
h1, h2, h3 { scroll-margin-top: calc(var(--header-h) + 16px); }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 50;
  background: var(--ink); color: var(--on-ink); padding: 10px 14px; text-decoration: none;
  transition: top 160ms var(--ease-out);
}
.skip:focus { top: 12px; }

.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- type ---------- */
.display {
  margin: 0;
  font-weight: 700;
  line-height: .95;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.h1 { font-size: clamp(2.9rem, 7.6vw, 6rem); }
.h2 { font-size: clamp(2.2rem, 5vw, 4.25rem); }
.h3 { font-size: clamp(1.45rem, 2.1vw, 1.85rem); font-weight: 600; letter-spacing: -0.025em; line-height: 1.05; }
.lede { margin: 0; font-size: clamp(1.08rem, 1.5vw, 1.28rem); font-weight: 300; line-height: 1.55; color: var(--ink-2); max-width: 36em; text-wrap: pretty; }
.slug {
  font-size: .72rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-2); font-variant-numeric: tabular-nums;
}
.signal { color: var(--signal); }
.nb { white-space: nowrap; }

/* ---------- icons ---------- */
.ico { width: 1.05em; height: 1.05em; flex: none; stroke: currentColor; stroke-width: 1.8; fill: none; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  min-height: 48px; padding: 0 1.35em;
  border: 0; border-radius: 999px;
  background: var(--ink); color: var(--stock);
  font-weight: 500; font-size: 1rem; letter-spacing: -0.01em;
  text-decoration: none; cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, color 200ms ease, box-shadow 200ms ease;
}
.btn:hover { background: var(--signal); color: var(--on-signal); }
.btn:active { transform: scale(0.97); }
.btn .ico { transition: transform 200ms var(--ease-out); }
.btn:hover .ico { transform: translateX(3px); }
.btn--signal { background: var(--signal); color: var(--on-signal); }
.btn--signal:hover { background: var(--ink); color: var(--stock); }
.btn--line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--stock); }
.btn--sm { min-height: 40px; padding: 0 1.05em; font-size: .92rem; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: color-mix(in srgb, var(--stock) 90%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--hair);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--header-h); }
.brand { display: block; width: 88px; color: var(--ink); }
.brand svg { display: block; width: 100%; height: auto; transform-origin: 50% 60%; transition: transform 300ms var(--ease-out); }
.brand:hover svg { transform: rotate(-3deg) scale(1.03); }
.nav { display: flex; align-items: center; gap: clamp(10px, 2.2vw, 28px); }
.navlink { text-decoration: none; font-size: .96rem; font-weight: 400; padding: 8px 2px; transition: color 160ms ease; }
.navlink:hover, .navlink[aria-current="page"] { color: var(--signal); }
.lang { display: inline-flex; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--hair); padding: 3px; }
.lang button {
  border: 0; background: transparent; cursor: pointer;
  min-width: 38px; min-height: 32px; border-radius: 999px;
  font-size: .78rem; font-weight: 600; letter-spacing: .08em;
  color: var(--ink-2);
  transition: background-color 200ms ease, color 200ms ease, transform 160ms var(--ease-out);
}
.lang button:hover { color: var(--ink); }
.lang button:active { transform: scale(0.95); }
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--stock); }
@media (max-width: 720px) { .nav .hide-sm { display: none; } .brand { width: 74px; } }

/* ---------- proof marks ---------- */
.proof { position: relative; }
.cm { position: absolute; width: 0; height: 0; pointer-events: none; }
.cm::before, .cm::after { content: ""; position: absolute; background: var(--ink); }
.cm::before { width: 14px; height: 1px; }
.cm::after { width: 1px; height: 14px; }
.cm.tl { left: 0; top: 0; }    .cm.tl::before { right: 8px; top: 0; }   .cm.tl::after { left: 0; bottom: 8px; }
.cm.tr { right: 0; top: 0; }   .cm.tr::before { left: 8px; top: 0; }    .cm.tr::after { left: -1px; bottom: 8px; }
.cm.bl { left: 0; bottom: 0; } .cm.bl::before { right: 8px; top: -1px; } .cm.bl::after { left: 0; top: 8px; }
.cm.br { right: 0; bottom: 0; } .cm.br::before { left: 8px; top: -1px; } .cm.br::after { left: -1px; top: 8px; }
@media (max-width: 560px) { .cm { display: none; } }

.regmark { width: 18px; height: 18px; flex: none; stroke: var(--ink); fill: none; stroke-width: 1; }
.colorbar { display: inline-flex; height: 14px; box-shadow: inset 0 0 0 1px var(--ink); }
.colorbar i { display: block; width: 18px; }
.colorbar i:nth-child(1) { background: var(--ink); }
.colorbar i:nth-child(2) { background: var(--ink-2); }
.colorbar i:nth-child(3) { background: var(--sheet); }
.colorbar i:nth-child(4) { background: var(--stock); }
.colorbar i:nth-child(5) { background: var(--signal); }
.slugline { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.slugline .grow { flex: 1 1 auto; min-width: 0; }

/* ---------- hero ---------- */
.hero { padding-block: clamp(36px, 6vw, 80px) clamp(40px, 6vw, 72px); }
.hero h1 { max-width: 14ch; margin-bottom: clamp(28px, 4vw, 48px); }
.hero .proof { margin-inline: clamp(0px, 1.4vw, 22px); }
.compare {
  position: relative; overflow: hidden;
  aspect-ratio: 16 / 9; max-width: 100%;
  background: var(--sheet);
  --pos: 62%;
  user-select: none; -webkit-user-select: none;
}
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 66% 50%; }
.compare .after { clip-path: inset(0 0 0 var(--pos)); }
.compare .divider {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px;
  background: var(--stock); pointer-events: none;
  box-shadow: 0 0 0 1px rgb(14 14 15 / .12);
}
.compare .knob {
  position: absolute; top: 50%; left: var(--pos);
  width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%;
  background: var(--stock); color: var(--ink);
  display: grid; place-items: center; pointer-events: none;
  box-shadow: 0 6px 18px -6px rgb(14 14 15 / .45);
  transition: transform 160ms var(--ease-out), box-shadow 200ms ease;
}
.compare .knob svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.compare.is-dragging .knob { transform: scale(0.94); box-shadow: 0 3px 10px -4px rgb(14 14 15 / .5); }
.compare input[type="range"] {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0;
  opacity: 0; cursor: ew-resize; touch-action: pan-y;
}
.compare input[type="range"]:focus-visible ~ .knob { box-shadow: 0 0 0 3px var(--signal), 0 6px 18px -6px rgb(14 14 15 / .45); }
.compare .tag {
  position: absolute; bottom: 16px; padding: 6px 10px; border-radius: 999px;
  background: rgb(255 255 255 / .82); font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  pointer-events: none;
}
.compare .tag--before { left: 16px; }
.compare .tag--after { right: 16px; background: var(--ink); color: var(--stock); }
.hero-copy {
  position: absolute; left: clamp(20px, 3.4vw, 48px); top: 50%; transform: translateY(-50%);
  width: min(40%, 430px); display: grid; gap: 22px; z-index: 2;
}
.hero-copy .lede { color: var(--ink); font-weight: 350; }
.hero-copy .actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero .slugline { margin-top: 30px; padding-inline: clamp(0px, 1.4vw, 22px); }
@media (max-width: 900px) {
  .compare { aspect-ratio: 4 / 5; }
  .compare img { object-position: 64% 50%; }
  .hero-copy { position: static; transform: none; width: auto; margin-top: 28px; padding-inline: clamp(0px, 1.4vw, 22px); }
}

/* ---------- black band ---------- */
.band { background: var(--ink); color: var(--on-ink); }
.band .lede { color: var(--on-ink-2); }
.manifesto { padding-block: clamp(72px, 10vw, 140px); display: grid; gap: 30px; }
.manifesto .strike {
  display: block; font-weight: 300; color: var(--on-ink-2);
  text-decoration: line-through; text-decoration-color: var(--signal); text-decoration-thickness: .075em;
}

/* ---------- sections ---------- */
.section { padding-block: clamp(72px, 9vw, 128px); }
.section-head { display: grid; gap: 20px; margin-bottom: clamp(40px, 5vw, 64px); }
@media (min-width: 960px) { .section-head { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; } }

/* process: contact sheet */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(44px, 4vw, 56px) clamp(28px, 2.6vw, 40px); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1140px) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.step { display: grid; gap: 14px; align-content: start; min-width: 0; }
.step .frame { overflow: hidden; background: var(--sheet-2); }
.step img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform 700ms var(--ease-out); }
.step:hover img { transform: scale(1.035); }
.step .slugline { justify-content: space-between; border-top: 1px solid var(--ink); padding-top: 10px; }
.step p { margin: 0; color: var(--ink-2); font-size: 1rem; max-width: 34em; }

/* segments */
.segments { border-top: 1.5px solid var(--ink); }
.seg { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px 40px; padding-block: 24px; border-bottom: 1px solid var(--hair); }
.seg .display { font-size: clamp(1.9rem, 4vw, 3.2rem); font-weight: 600; transition: color 200ms ease, transform 300ms var(--ease-out); }
.seg:hover .display { color: var(--signal); transform: translateX(6px); }
.seg p { margin: 0; color: var(--ink-2); max-width: 34em; }
@media (min-width: 880px) { .seg { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; } }
.note { margin-top: 32px; max-width: 760px; padding: 20px 22px; background: var(--sheet-2); border-radius: 14px; }
.note p { margin: 0; font-size: .98rem; }
.note strong { font-weight: 600; }

/* ---------- request (orange field) ---------- */
.field { background: var(--signal); color: var(--on-signal); }
.request { padding-block: clamp(72px, 9vw, 128px); display: grid; gap: clamp(40px, 5vw, 72px); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1000px) { .request { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: start; } }
.request .lede { color: var(--on-signal); opacity: .88; }
.request-copy { display: grid; gap: 24px; }
.request-copy .shot { margin-top: 12px; max-width: 520px; }
.form { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .form { grid-template-columns: repeat(2, minmax(0, 1fr)); } .form .full { grid-column: 1 / -1; } }
.fld { display: grid; gap: 7px; min-width: 0; }
.fld label { font-size: .92rem; font-weight: 500; }
.fld .opt { font-weight: 350; opacity: .75; }
.fld input, .fld select, .fld textarea {
  width: 100%; min-height: 50px; padding: 12px 16px;
  border: 1.5px solid rgb(20 10 6 / .28); border-radius: 12px;
  background: rgb(255 255 255 / .92); color: var(--ink);
  transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}
.fld textarea { min-height: 120px; resize: vertical; }
.fld select { appearance: none; -webkit-appearance: none; padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230e0e0f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; }
.fld input::placeholder, .fld textarea::placeholder { color: #77706c; }
.fld input:hover, .fld select:hover, .fld textarea:hover { border-color: rgb(20 10 6 / .55); }
.fld input:focus-visible, .fld select:focus-visible, .fld textarea:focus-visible { outline: none; border-color: var(--ink); background: #fff; box-shadow: 0 0 0 3px rgb(14 14 15 / .18); }
.fld [aria-invalid="true"] { border-color: var(--ink); background: #fff3ee; }
.fld .err { font-size: .88rem; font-weight: 500; color: var(--ink); min-height: 0; }
.fld .err:empty { display: none; }
.form-foot { display: grid; gap: 12px; justify-items: start; }
.form-foot small { font-size: .9rem; opacity: .85; max-width: 40em; }
.form .status { font-weight: 500; }
.form .status:empty { display: none; }

/* ---------- closing band ---------- */
.closing { padding-block: clamp(80px, 11vw, 150px); display: grid; gap: 34px; justify-items: start; }
.closing .display { font-size: clamp(3rem, 8.6vw, 6rem); }
.closing a.big { font-size: clamp(1.15rem, 2.2vw, 1.5rem); font-weight: 400; color: var(--on-ink); display: inline-flex; align-items: center; gap: .5em; text-decoration: underline; text-decoration-color: var(--signal); }
.closing a.big:hover { color: var(--signal); }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: var(--on-ink-2); border-top: 1px solid #262527; }
.site-footer .wrap { display: grid; gap: 26px; padding-block: 40px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 800px) { .site-footer .wrap { grid-template-columns: auto minmax(0, 1fr) auto; align-items: end; } }
.site-footer .brand { color: var(--on-ink); width: 104px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 24px; }
.site-footer a { text-decoration: none; color: var(--on-ink); }
.site-footer a:hover { color: var(--signal); }
.site-footer .slug { color: var(--on-ink-2); }

/* ---------- contact page ---------- */
.contact-hero { padding-block: clamp(40px, 7vw, 96px) clamp(28px, 4vw, 52px); display: grid; gap: 26px; }
.contact-hero h1 { max-width: 16ch; }
.people { display: grid; grid-template-columns: minmax(0, 1fr); border-top: 1.5px solid var(--ink); }
@media (min-width: 920px) { .people { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.person { display: grid; gap: 16px; align-content: start; padding: 26px 0 32px; border-bottom: 1px solid var(--hair); min-width: 0; }
@media (min-width: 920px) {
  .person { padding: 30px 28px 36px; border-bottom: 0; }
  .person:first-child { padding-left: 0; }
  .person + .person { border-left: 1px solid var(--hair); }
}
.person .name { font-size: clamp(2.1rem, 3.3vw, 2.8rem); }
.email-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.email { font-size: 1.06rem; font-weight: 400; overflow-wrap: anywhere; text-decoration: underline; text-decoration-color: var(--signal); }
.email:hover { color: var(--signal); }
.copy {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 34px; padding: 0 12px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--hair); background: var(--stock);
  font-size: .78rem; font-weight: 500; letter-spacing: .02em;
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease, transform 160ms var(--ease-out);
}
.copy:hover { border-color: var(--ink); }
.copy:active { transform: scale(0.96); }
.copy[data-done] { background: var(--ink); color: var(--stock); border-color: var(--ink); }
.contact-lower { display: grid; gap: clamp(40px, 5vw, 72px); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 980px) { .contact-lower { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); } }
.contact-lower > .proof { align-self: start; }
.contact-lower .frame img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.brief { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--ink); counter-reset: b; }
.brief li { counter-increment: b; display: grid; grid-template-columns: 2.6em minmax(0, 1fr); padding-block: 16px; border-bottom: 1px solid var(--hair); }
.brief li::before { content: counter(b); font-weight: 600; color: var(--signal); font-variant-numeric: tabular-nums; padding-top: 2px; }
.brief strong { display: block; font-weight: 500; font-size: 1.08rem; letter-spacing: -0.01em; }
.brief span { color: var(--ink-2); font-size: .98rem; }
.studio { margin: 0; border-top: 1.5px solid var(--ink); }
.studio > div { display: grid; grid-template-columns: minmax(0, 9em) minmax(0, 1fr); gap: 12px; padding-block: 14px; border-bottom: 1px solid var(--hair); }
.studio dt { padding-top: 3px; }
.studio dd { margin: 0; overflow-wrap: anywhere; }
.stack { display: grid; gap: 48px; align-content: start; min-width: 0; }
.stack > div { display: grid; gap: 20px; }

/* ---------- one authored moment: hero proof settles in ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .hero .compare { animation: proof-in 900ms var(--ease-out) both; }
  @keyframes proof-in { from { filter: blur(6px); transform: scale(1.012); } to { filter: blur(0); transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0ms !important; animation: none !important; }
}
