/* ====================================================================== */
/* StudioIA landing - Studio3D visual identity (DESIGN.md).               */
/* White ground, brand black type, D-DIN. The four brand colors live in   */
/* the symbol, the tile texture and thin separators; orange only for      */
/* large headings (it is 4.4:1 on white). Dark bands carry the services   */
/* and contact sections, as in the identity manual's site layout.         */
/* ====================================================================== */

@font-face {
  font-family: "D-DIN";
  src: url("./fonts/d-din-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "D-DIN";
  src: url("./fonts/d-din-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Manual colors (Cores). Never recolor the symbol or wordmark. */
  --brand-black: #2a2929;
  --brand-orange: #c25939;
  --brand-teal: #18726e;
  --brand-red: #a53b3f;
  --brand-navy: #263e5a;

  /* Theme: every color token is light-dark(light, dark). The page follows the
     system; the header toggle forces one by setting data-theme on <html>,
     which only switches color-scheme (below). */
  --bg: light-dark(#ffffff, #1e1d1d);
  --ink: light-dark(#2a2929, #f3f1f0);
  --ink-2: light-dark(#5b5858, #c9c5c3);
  --ink-3: light-dark(#6e6a68, #a8a3a0);
  --rule: light-dark(#dadada, #3a3838);
  /* Brand orange is 3.9:1 on the dark ground - still fine for large headings. */
  --heading-accent: var(--brand-orange);
  --link: light-dark(var(--brand-teal), #7cc4bd);
  --focus: light-dark(var(--brand-teal), #7cc4bd);

  /* Brand colors where they carry meaning on the page ground: teal, navy and
     red are lifted in dark mode to stay legible. */
  --accent-teal: light-dark(var(--brand-teal), #4fa39c);
  --accent-navy: light-dark(var(--brand-navy), #6f93bd);
  --accent-red: light-dark(var(--brand-red), #d0676b);

  /* Dark bands (services, contact) - the same in both themes */
  --band: #2a2929;
  --band-ink: #ffffff;
  --band-ink-2: #cfcbc9;
  --band-rule: #4a4747;

  --btn-bg: light-dark(var(--brand-black), #f3f1f0);
  --btn-ink: light-dark(#ffffff, #2a2929);
  --btn-bg-hover: light-dark(#444141, #ffffff);

  /* Symbol pieces (inline <symbol>). Manual's dark-ground signature: the
     black piece turns light. */
  --sym-black: light-dark(var(--brand-black), #f3f1f0);

  --font: "D-DIN", "DIN Alternate", "Bahnschrift", "Roboto Condensed", Arial, sans-serif;

  --wrap-max: 1200px;
  --gutter: clamp(16px, 5vw, 64px);
  --header-h: 69px; /* 68px row + 1px border */
  --band-h: clamp(56px, 7vw, 96px);

  color-scheme: light dark;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

:root[data-theme="light"] {
  color-scheme: light;
}

:root[data-theme="dark"] {
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  overflow-x: hidden;
}

h1,
h2,
h3,
p {
  margin: 0;
}

a {
  color: inherit;
}

svg {
  display: block;
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

::selection {
  background: var(--brand-teal);
  color: #ffffff;
}

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

/* ---------------------------------------------------------------------- */
/* Buttons                                                                */
/* ---------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-solid {
  background: var(--btn-bg);
  color: var(--btn-ink);
}

.btn-solid:hover:not(:disabled, [aria-disabled="true"]) {
  background: var(--btn-bg-hover);
}

.btn-solid:disabled,
.btn-solid[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: currentColor;
}

.btn-outline:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}

.btn-small {
  min-height: 38px;
  padding: 0 18px;
  font-size: 15px;
}

.btn-block {
  width: 100%;
}

/* Off-screen until focused: the first Tab stop, straight to the content. */
.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 30;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

/* ---------------------------------------------------------------------- */
/* Header                                                                 */
/* ---------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--rule);
}

.header-row {
  display: flex;
  align-items: center;
  gap: 12px;
  height: calc(var(--header-h) - 1px);
}

.header-row .brand {
  margin-right: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  width: 30px;
  height: 31px;
  flex: none;
}

/* Wordmark, matched to the Studio3D logo: D-DIN "Studio" tracked out, a small
   gap, then the second word in a heavier, tightly set bold (D-DIN Bold plus a
   thin stroke, as the logo's "3D" is heavier than the stock bold). */
.brand-name {
  font-size: 25px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.06em;
}

.brand-name b {
  font-weight: 700;
  letter-spacing: -0.04em;
  margin-left: 0.1em;
  -webkit-text-stroke: 0.035em currentColor;
}

.site-nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
  margin-right: 16px;
}

.site-nav a {
  font-size: 16px;
  white-space: nowrap;
  color: var(--ink-2);
  text-decoration: none;
  padding-block: 4px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--brand-orange);
}

/* Language switch: the other language's short code, as a pill. */
.lang-switch {
  flex: none;
  display: inline-grid;
  place-items: center;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.15s ease;
}

.lang-switch:hover {
  border-color: var(--ink);
}

/* Round icon buttons in the header: the light/dark toggle and the phone menu. */
.icon-button {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--rule);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.icon-button:hover {
  border-color: var(--ink);
}

.icon-button[hidden] {
  display: none;
}

.theme-icon,
.menu-icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* The light/dark toggle shows the icon of the theme it switches to. */
.theme-toggle[data-target="light"] .theme-icon-moon,
.theme-toggle[data-target="dark"] .theme-icon-sun {
  display: none;
}

/* The menu only exists on phones (see Responsive). */
.menu-toggle {
  display: none;
}

.menu-toggle[aria-expanded="true"] .menu-icon-open,
.menu-toggle[aria-expanded="false"] .menu-icon-close {
  display: none;
}

/* ---------------------------------------------------------------------- */
/* Hero                                                                   */
/* ---------------------------------------------------------------------- */

/* The hero and the texture band under it fill the first screen exactly
   (header excluded), so the next section starts at the fold. */
/* Copy and figure side by side, the facts in a row under both. The copy
   column is as wide as the headline needs ("Turn a 3D model" at 64px), so the
   figure gets the rest. */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 470px) minmax(0, 1fr);
  /* Vertical spacing also shrinks with the viewport's height, so a short
     laptop screen still fits the hero and the texture band. */
  gap: clamp(24px, 4.5vh, 40px) clamp(32px, 4vw, 56px);
  align-items: center;
  align-content: center;
  min-height: calc(100vh - var(--header-h) - var(--band-h));
  min-height: calc(100svh - var(--header-h) - var(--band-h));
  padding-top: clamp(24px, min(5vw, 6vh), 64px);
  padding-bottom: clamp(24px, min(5vw, 6vh), 64px);
}

.hero-title {
  font-size: clamp(40px, min(5vw, 8vh), 64px); /* smaller on short screens only */
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.hero-title strong {
  font-weight: 700;
}

.lede {
  margin-top: 24px;
  max-width: 44ch;
  font-size: 20px;
  line-height: 1.5;
  color: var(--ink-2);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

/* Facts: label over value, a brand color tick per item. */
.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 40px 0 0;
}

.hero-facts {
  grid-column: 1 / -1;
  margin-top: 0;
}

.fact {
  border-top: 3px solid var(--tick, var(--brand-orange));
  padding-top: 10px;
}

.fact:nth-child(2) {
  --tick: var(--accent-teal);
}

.fact:nth-child(3) {
  --tick: var(--accent-navy);
}

.fact dt {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.fact dd {
  margin: 2px 0 0;
  font-size: 17px;
  font-weight: 700;
}

/* ---- Before / after figure ---- */
.figure {
  margin: 0;
}

.compare {
  position: relative;
  aspect-ratio: 1600 / 874; /* the hero images' own proportions, uncropped */
  overflow: hidden;
  border-radius: 20px;
  background: var(--bg);
  box-shadow: inset 0 0 0 1px var(--rule);
  --pos: 52%;
  user-select: none;
}

/* The inset border sits above both layers. */
.compare::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px var(--rule);
  pointer-events: none;
}

.compare-layer {
  position: absolute;
  inset: 0;
}

/* Both images share one frame and one crop, so they stay aligned at the split
   (the pair is aligned by scripts/brand-assets/build-hero.py). */
.compare-layer img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Model on the left, render on the right: the render sits on top, showing
   from the handle rightward. */
.compare-after {
  clip-path: inset(0 0 0 var(--pos));
}

.compare-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 2px;
  transform: translateX(-1px);
  background: #ffffff;
  box-shadow: 0 0 0 1px rgba(42, 41, 41, 0.25);
  pointer-events: none;
}

/* Grip: a round knob with two drawn chevrons (D-DIN has no arrow glyphs). */
.compare-handle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M16 14l-6 6 6 6M24 14l6 6-6 6' fill='none' stroke='%232a2929' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
      center / 40px no-repeat,
    #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
}

.compare:has(.compare-range:focus-visible) .compare-handle::after {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.compare-tag {
  position: absolute;
  top: 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-black);
  background: #ffffff;
  padding: 4px 12px;
  border-radius: 999px;
  box-shadow: 0 0 0 1px rgba(42, 41, 41, 0.12);
}

.compare-tag-before {
  left: 12px;
}

.compare-tag-after {
  right: 12px;
}

/* Manual watermark: one-color symbol, 50% opacity, bottom-right corner. */
.watermark {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 30px;
  height: 31px;
  opacity: 0.5;
  --sym-black: #ffffff;
  --sym-orange: #ffffff;
  --sym-teal: #ffffff;
  --sym-red: #ffffff;
  --sym-navy: #ffffff;
  pointer-events: none;
}

.compare-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  z-index: 3;
}

figcaption {
  margin-top: 14px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-3);
  max-width: 52ch;
}

/* ---------------------------------------------------------------------- */
/* Texture                                                                */
/* ---------------------------------------------------------------------- */

.texture-band {
  height: var(--band-h);
  background: url("./texture.svg") center / cover no-repeat;
}

/* Footer separator: the full-color texture repeated at a small scale, so
   each piece reads as a small tile (about 20px long). 18px is exactly two
   rows of the weave at this scale, so no row is cut through. */
.texture-strip {
  height: 18px;
  background: url("./texture.svg") left top / 180px auto repeat-x;
}

/* ---------------------------------------------------------------------- */
/* Sections                                                               */
/* ---------------------------------------------------------------------- */

.section {
  padding-top: clamp(56px, 8vw, 104px);
  padding-bottom: clamp(56px, 8vw, 104px);
}

.section-title {
  font-size: clamp(30px, 3.6vw, 44px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.005em;
  margin-bottom: clamp(28px, 4vw, 44px);
}

.section-title-accent {
  color: var(--heading-accent);
}

.section-text {
  max-width: 60ch;
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-2);
}

.band-dark {
  background: var(--band);
  color: var(--band-ink);
  padding-top: clamp(56px, 8vw, 104px);
  padding-bottom: clamp(56px, 8vw, 104px);
  --focus: #7cc4bd;
  --btn-bg: #ffffff;
  --btn-ink: var(--brand-black);
  --btn-bg-hover: #e9e6e4;
}

/* ---- Capabilities (dark band): separators in the brand colors ---- */
.capabilities {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px clamp(28px, 4vw, 56px);
}

.capability {
  border-top: 3px solid var(--sep, var(--brand-orange));
  padding-top: 18px;
}

.capability:nth-child(4n + 2) {
  --sep: var(--brand-teal);
}

.capability:nth-child(4n + 3) {
  --sep: #4f78a6; /* navy lifted so the rule reads on the dark band */
}

.capability:nth-child(4n + 4) {
  --sep: var(--brand-red);
}

.capability h3 {
  font-size: 21px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 8px;
}

.capability p {
  font-size: 16px;
  color: var(--band-ink-2);
  max-width: 40ch;
}

/* ---- How it works: numbers in the brand colors ---- */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 40px);
}

.step {
  border-top: 1px solid var(--rule);
  padding-top: 18px;
}

.step-num {
  display: block;
  font-size: 44px;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--num, var(--brand-orange));
  margin-bottom: 18px;
}

.step:nth-child(2) {
  --num: var(--accent-teal);
}

.step:nth-child(3) {
  --num: var(--accent-navy);
}

.step:nth-child(4) {
  --num: var(--accent-red);
}

.step h3 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 6px;
}

.step p {
  font-size: 16px;
  color: var(--ink-2);
}

/* ---- Contact (dark band) ---- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(36px, 6vw, 88px);
}

.facts-on-dark {
  grid-template-columns: 1fr;
  max-width: 340px;
  gap: 0;
  margin-top: 32px;
}

.facts-on-dark .fact {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  border-top: 1px solid var(--band-rule);
  padding: 10px 0;
}

.facts-on-dark .fact:last-child {
  border-bottom: 1px solid var(--band-rule);
}

.facts-on-dark dt {
  color: var(--band-ink-2);
}

.facts-on-dark dd {
  margin: 0;
}

.contact-invite {
  font-size: 17px;
  color: var(--band-ink-2);
  max-width: 44ch;
  margin-bottom: 24px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field label {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--band-ink-2);
}

/* Manual site layout: white fields on the dark band. */
.field input,
.field textarea {
  width: 100%;
  border: 2px solid transparent;
  border-radius: 12px;
  background: #ffffff;
  color: var(--brand-black);
  caret-color: var(--brand-teal);
  padding: 11px 14px;
  font-family: var(--font);
  font-size: 17px;
  transition: border-color 0.15s ease;
}

.field textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.5;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #6e6a68;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: #7cc4bd;
}

.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: #f0a39c;
}

.form-status {
  min-height: 22px;
  font-size: 15px;
}

.form-status.is-success {
  color: #8fd1b4;
}

.form-status.is-error {
  color: #f0a39c;
}

/* ---------------------------------------------------------------------- */
/* Footer                                                                 */
/* ---------------------------------------------------------------------- */

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 32px clamp(24px, 4vw, 56px);
  padding-top: clamp(40px, 5vw, 56px);
  padding-bottom: clamp(32px, 4vw, 44px);
}

.footer-brand .brand {
  margin-right: 0;
}

.footer-tagline {
  margin-top: 16px;
  max-width: 34ch;
  font-size: 15px;
  color: var(--ink-2);
}

.footer-maker {
  margin-top: 10px;
  font-size: 15px;
  font-weight: 700;
}

.footer-title {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 14px;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
}

.footer-col a {
  display: inline-block;
  padding-block: 4px;
  color: var(--ink);
  text-decoration: none;
  font-size: 16px;
}

.footer-col a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-col a[aria-current="page"] {
  font-weight: 700;
}

.footer-col .footer-instagram {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-instagram svg,
.about-instagram svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  /* 4px less than it looks: "Back to top" carries 4px of hit area each side. */
  padding-top: 12px;
  padding-bottom: 18px;
  border-top: 1px solid var(--rule);
  font-size: 14px;
  color: var(--ink-3);
}

.footer-top {
  display: inline-block;
  padding-block: 4px;
  color: var(--ink-3);
  text-decoration: none;
}

.footer-top:hover {
  color: var(--ink);
  text-decoration: underline;
}

/* ---------------------------------------------------------------------- */
/* Product screenshots                                                    */
/* ---------------------------------------------------------------------- */

.shots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: clamp(28px, 4vw, 44px);
}

.shot {
  margin: 0;
}

.shot-main {
  grid-column: 1 / -1;
}

.shot-frame {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: inset 0 0 0 1px var(--rule);
  background: var(--bg);
}

.shot-frame img {
  display: block;
  width: 100%;
  height: auto;
}

/* The inset border sits above the screenshot. */
.shot-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px var(--rule);
  pointer-events: none;
}

.shot figcaption {
  margin-top: 10px;
}

/* ---------------------------------------------------------------------- */
/* About                                                                  */
/* ---------------------------------------------------------------------- */

.about-hero {
  padding-top: clamp(48px, 8vw, 112px);
  padding-bottom: clamp(48px, 7vw, 96px);
}

.about-hero .lede {
  max-width: 58ch;
}

.founders {
  display: grid;
  gap: clamp(48px, 7vw, 88px);
}

.founder {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.founder-photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 16px;
}

.founder-name {
  font-size: clamp(24px, 2.6vw, 30px);
  font-weight: 700;
  line-height: 1.2;
}

.founder-role {
  margin-top: 6px;
  font-size: 15px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.founder-body > p:not(.founder-role) {
  max-width: 62ch;
  margin-top: 16px;
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-2);
}

.founder-body > .founder-role + p {
  margin-top: 24px;
}

.founder-link {
  display: inline-block;
  margin-top: 20px;
  padding-block: 4px;
  font-weight: 700;
  color: var(--link);
  text-underline-offset: 3px;
}

.about-instagram {
  gap: 10px;
  margin-top: 28px;
  padding-block: 10px;
  line-height: 1.25;
  text-align: center;
  white-space: normal;
}

.principles {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.about-cta {
  text-align: center;
}

.about-cta .section-text {
  margin: 0 auto 28px;
}

/* ---------------------------------------------------------------------- */
/* 404                                                                    */
/* ---------------------------------------------------------------------- */

.not-found {
  padding-top: clamp(56px, 10vw, 128px);
  padding-bottom: clamp(56px, 10vw, 128px);
}

.not-found-code {
  display: block;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  margin-bottom: 14px;
}

.not-found .hero-title {
  max-width: 16ch;
}

/* ---------------------------------------------------------------------- */
/* Motion - one on-load moment; content is visible without it             */
/* ---------------------------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
  .hero-copy > *,
  .figure,
  .hero-facts {
    animation: rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) backwards;
  }
  .hero-copy > *:nth-child(2) { animation-delay: 0.06s; }
  .hero-copy > *:nth-child(3) { animation-delay: 0.12s; }
  .figure { animation-delay: 0.1s; }
  .hero-facts { animation-delay: 0.18s; }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* ---------------------------------------------------------------------- */
/* Responsive                                                             */
/* ---------------------------------------------------------------------- */

@media (max-width: 960px) {
  /* Tablet: the nav keeps all its links, so the header drops its CTA (the
     nav's Contact link goes to the same place) and tightens the nav. */
  .site-nav {
    gap: 18px;
    margin-right: 8px;
  }
  .header-cta {
    display: none;
  }
  .hero {
    grid-template-columns: 1fr;
  }
  .figure {
    max-width: 640px;
  }
  .capabilities {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
  .principles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  /* Phone header: brand, language, theme, menu. The nav opens as a panel
     under the header; without the script it stays hidden and the footer
     carries its links. */
  .header-row {
    gap: 8px;
  }
  .header-row .brand {
    margin-right: 0;
  }
  .menu-toggle:not([hidden]) {
    display: inline-grid;
    order: 1;
  }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 4px var(--gutter) 12px;
    background: var(--bg);
    border-bottom: 1px solid var(--rule);
  }
  .is-menu-open .site-nav {
    display: flex;
  }
  .site-nav a {
    padding-block: 14px;
    font-size: 18px;
    color: var(--ink);
    border-bottom: 0;
  }
  .site-nav a + a {
    border-top: 1px solid var(--rule);
  }
  .site-nav a[aria-current="page"] {
    font-weight: 700;
  }

  /* Phone hero: copy, full-width actions and facts fill the first screen with
     the texture band; the draggable figure is left out (a drag competes with
     scrolling, and at this size it proves little). */
  .figure {
    display: none;
  }
  .hero {
    gap: 0;
    padding-top: 28px;
    padding-bottom: 28px;
  }
  .hero-title {
    font-size: clamp(36px, 10.5vw, 46px);
  }
  .lede {
    margin-top: 18px;
    font-size: 18px;
  }
  .hero-actions {
    flex-direction: column;
    margin-top: 26px;
  }
  .hero-actions .btn {
    width: 100%;
    min-height: 50px;
  }
  .facts:not(.facts-on-dark) {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 28px;
  }
  .facts:not(.facts-on-dark) .fact {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    border-top: 0;
    border-left: 3px solid var(--tick, var(--brand-orange));
    padding: 2px 0 2px 12px;
  }
  .facts:not(.facts-on-dark) .fact dd {
    margin: 0;
    text-align: right;
  }
  .lang-switch {
    margin-left: auto;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .founder {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .founder-photo {
    width: 160px;
  }
  .shots {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  :root {
    font-size: 16px;
  }
  /* Keeps "Follow Studio3D on Instagram" on one line down to 320px; it
     still wraps if the text is enlarged. */
  .about-instagram {
    padding-inline: 16px;
    font-size: 15px;
  }
  .capabilities {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }
  .principles {
    grid-template-columns: 1fr;
  }
}
