/* ============================================================
   MO Rörteknik — designsystem
   Teknisk blueprint · nordisk industri
   ============================================================ */

/* ---- Fonter laddas i <head> via Google Fonts ---- */

:root {
  --graphite: #0E1113;
  --graphite-1: #121619;
  --graphite-2: #171C20;
  --graphite-3: #1E252A;
  --ink: #090B0C;

  --paper: #F3F0E9;
  --paper-2: #EAE6DC;
  --paper-3: #DED9CC;

  --steel: #8B939C;
  --steel-dim: #5C646C;

  --blue: #2B5FE3;
  --blue-bright: #5E86FF;
  --blue-deep: #1E49B8;

  --fg-dark: #ECEAE3;      /* text on graphite */
  --fg-dark-dim: #A0A7AE;  /* muted text on graphite */
  --fg-light: #14181B;     /* text on paper */
  --fg-light-dim: #545C63; /* muted text on paper */

  --line-dark: rgba(236, 234, 227, 0.14);
  --line-dark-soft: rgba(236, 234, 227, 0.08);
  --line-light: rgba(20, 24, 27, 0.14);
  --line-light-soft: rgba(20, 24, 27, 0.08);

  --radius: 2px;
  --container: 1240px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-y: clamp(4.5rem, 9vw, 9rem);

  --ff-display: "Familjen Grotesk", "Helvetica Neue", Arial, sans-serif;
  --ff-body: "Familjen Grotesk", "Helvetica Neue", Arial, sans-serif;
  --ff-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}
body {
  font-family: var(--ff-body);
  background: var(--graphite);
  color: var(--fg-dark);
  line-height: 1.6;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
input, textarea, select { font: inherit; color: inherit; }
ul { list-style: none; padding: 0; }
::selection { background: var(--blue); color: #fff; }

body.nav-open { overflow: hidden; }
[hidden] { display: none !important; }

/* ---- Grain + focus ---- */
:focus-visible {
  outline: 2px solid var(--blue-bright);
  outline-offset: 3px;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* ---- Layout ---- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
main { position: relative; z-index: 2; }
.section { padding-block: var(--section-y); position: relative; }
.section--paper { background: var(--paper); color: var(--fg-light); }
.section--graphite { background: var(--graphite); color: var(--fg-dark); }
.section--ink { background: var(--ink); color: var(--fg-dark); }

.pad-top-header { padding-top: 76px; }

/* ---- Typography ---- */
h1, h2, h3, h4 {
  font-family: var(--ff-display);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.02em;
}
.display {
  font-weight: 700;
  font-size: clamp(2.6rem, 6.2vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
}
h2, .h2 {
  font-size: clamp(1.85rem, 3.8vw, 3.1rem);
  letter-spacing: -0.025em;
}
h3, .h3 {
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  letter-spacing: -0.015em;
  line-height: 1.15;
}
p { max-width: 62ch; }
.lead {
  font-size: clamp(1.1rem, 1.6vw, 1.4rem);
  line-height: 1.5;
  color: var(--fg-dark-dim);
  font-weight: 400;
}
.section--paper .lead { color: var(--fg-light-dim); }
.text-dim { color: var(--fg-dark-dim); }
.section--paper .text-dim { color: var(--fg-light-dim); }

/* mono label / eyebrow */
.label {
  font-family: var(--ff-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--steel);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.label::before {
  content: "";
  width: 1.6rem;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}
.label--plain::before { display: none; }
.label--blue { color: var(--blue-bright); }
.section--paper .label { color: var(--steel-dim); }
.section--paper .label--blue { color: var(--blue); }

.chapter-num {
  font-family: var(--ff-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--steel-dim);
}

/* ---- Buttons ---- */
.btn {
  --btn-bg: var(--blue);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.95rem 1.5rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border-radius: var(--radius);
  font-weight: 600;
  letter-spacing: -0.01em;
  font-size: 0.98rem;
  border: 1px solid transparent;
  transition: transform 0.35s var(--ease), background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
  will-change: transform;
}
.btn .arrow {
  transition: transform 0.4s var(--ease);
  display: inline-block;
}
.btn:hover { transform: translateY(-2px); }
.btn:hover .arrow { transform: translateX(5px); }
.btn:active { transform: translateY(0); }

.btn-primary { --btn-bg: var(--blue); --btn-fg: #fff; }
.btn-primary:hover { --btn-bg: var(--blue-deep); }

.btn-ghost {
  --btn-bg: transparent;
  --btn-fg: var(--fg-dark);
  border-color: var(--line-dark);
}
.btn-ghost:hover { background: rgba(236,234,227,0.06); border-color: rgba(236,234,227,0.28); }
.section--paper .btn-ghost { --btn-fg: var(--fg-light); border-color: var(--line-light); }
.section--paper .btn-ghost:hover { background: rgba(20,24,27,0.04); border-color: rgba(20,24,27,0.3); }

.btn-lg { padding: 1.1rem 1.9rem; font-size: 1.05rem; }
.btn-sm { padding: 0.62rem 1.05rem; font-size: 0.9rem; }

.cta-row { display: flex; flex-wrap: wrap; gap: 0.9rem; }

/* text link with underline draw */
.tlink {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--blue-bright);
  position: relative;
  padding-bottom: 2px;
}
.section--paper .tlink { color: var(--blue); }
.tlink::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1.5px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.tlink:hover::after { transform: scaleX(1); }
.tlink .arrow { transition: transform 0.4s var(--ease); }
.tlink:hover .arrow { transform: translateX(4px); }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line-dark-soft);
  transition: border-color 0.4s var(--ease);
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(14, 17, 19, 0.72);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  transition: background-color 0.4s var(--ease);
  z-index: -1;
  pointer-events: none;
}
.site-header.scrolled { border-bottom-color: var(--line-dark); }
.site-header.scrolled::before { background: rgba(10, 12, 13, 0.92); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 76px;
  position: relative;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  flex-shrink: 0;
}
.brand-mark {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.brand-mark svg { width: 30px; height: 30px; }
.brand-word {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: 0.02em;
  color: var(--fg-dark);
  text-transform: uppercase;
  line-height: 1;
}
.brand-word em {
  font-style: normal;
  font-weight: 500;
  color: var(--steel);
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.4vw, 2.2rem);
}
.nav-desktop a {
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--fg-dark-dim);
  position: relative;
  padding: 0.35rem 0;
  transition: color 0.25s var(--ease);
}
.nav-desktop a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 1.5px;
  background: var(--blue-bright);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.nav-desktop a:hover { color: var(--fg-dark); }
.nav-desktop a:hover::after { transform: scaleX(1); }
.nav-desktop a[aria-current="page"] { color: var(--fg-dark); }
.nav-desktop a[aria-current="page"]::after { transform: scaleX(1); background: var(--steel); }

.header-cta { display: flex; align-items: center; gap: 1.1rem; }
.header-phone {
  font-family: var(--ff-mono);
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  color: var(--fg-dark);
  white-space: nowrap;
  transition: color 0.25s var(--ease);
}
.header-phone:hover { color: var(--blue-bright); }

/* burger + checkbox hack */
.nav-toggle { position: absolute; }
.nav-burger {
  display: none;
  width: 46px; height: 46px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
}
.nav-burger span {
  position: absolute;
  left: 50%; top: 50%;
  width: 18px; height: 1.5px;
  background: var(--fg-dark);
  transform: translate(-50%, -50%);
  transition: transform 0.35s var(--ease), opacity 0.2s var(--ease);
}
.nav-burger span:first-child { transform: translate(-50%, -5px); }
.nav-burger span:last-child { transform: translate(-50%, 5px); }

.nav-mobile {
  position: fixed;
  inset: 76px 0 0 0;
  background: var(--graphite);
  padding: 1.75rem var(--gutter) 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s;
  overflow-y: auto;
  border-top: 1px solid var(--line-dark-soft);
}
.nav-toggle:checked ~ .nav-mobile {
  opacity: 1;
  transform: none;
  pointer-events: auto;
  visibility: visible;
}
.nav-toggle:checked ~ .header-inner .nav-burger span:first-child { transform: translate(-50%, -50%) rotate(45deg); }
.nav-toggle:checked ~ .header-inner .nav-burger span:last-child { transform: translate(-50%, -50%) rotate(-45deg); }
.nav-toggle:checked ~ .header-inner .nav-burger span:nth-child(2) { opacity: 0; }

.nav-mobile a.m-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--ff-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line-dark-soft);
  color: var(--fg-dark);
}
.nav-mobile a.m-link .idx { font-family: var(--ff-mono); font-size: 0.75rem; color: var(--steel-dim); font-weight: 400; }
.nav-mobile a.m-link[aria-current="page"] { color: var(--blue-bright); }
.nav-mobile .m-contact {
  margin-top: auto;
  padding-top: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.nav-mobile .m-meta { display: flex; flex-direction: column; gap: 0.4rem; }
.nav-mobile .m-meta a { font-family: var(--ff-mono); font-size: 0.95rem; color: var(--fg-dark-dim); }
.nav-mobile .m-meta a:hover { color: var(--fg-dark); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  background: var(--graphite);
  overflow: hidden;
  padding-top: clamp(8.5rem, 16vw, 12rem);
  padding-bottom: clamp(3.5rem, 7vw, 6rem);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line-dark-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-dark-soft) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(120% 90% at 15% 0%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(120% 90% at 15% 0%, #000 30%, transparent 78%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: end;
  position: relative;
}
.hero-copy { position: relative; z-index: 3; }
.hero-copy .label { margin-bottom: 1.6rem; }
.hero h1 { margin-bottom: 1.6rem; }
.hero .lead { max-width: 46ch; margin-bottom: 2.3rem; }
.hero .cta-row { margin-bottom: 2.4rem; }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem 2.6rem;
  padding-top: 1.7rem;
  border-top: 1px solid var(--line-dark-soft);
}
.hero-meta .mi { display: flex; flex-direction: column; gap: 0.25rem; }
.hero-meta .mi .k { font-family: var(--ff-mono); font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--steel-dim); }
.hero-meta .mi .v { font-size: 0.98rem; color: var(--fg-dark); font-weight: 500; }

.hero-visual {
  position: relative;
  z-index: 2;
  align-self: stretch;
  min-height: 340px;
}
.hero-figure {
  position: relative;
  height: 100%;
  min-height: 340px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 26px 100%, 0 calc(100% - 26px));
}
.hero-figure img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.05) brightness(0.82);
  transition: transform 1.4s var(--ease), filter 0.8s var(--ease);
}
.hero-figure::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(150deg, rgba(43,95,227,0.16), transparent 55%), linear-gradient(0deg, rgba(9,11,12,0.55), transparent 60%);
  mix-blend-mode: normal;
}
.hero-figure .fig-tag {
  position: absolute;
  left: 14px; bottom: 14px;
  z-index: 2;
  font-family: var(--ff-mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-dark);
  background: rgba(9,11,12,0.6);
  border: 1px solid var(--line-dark);
  padding: 0.4rem 0.6rem;
  backdrop-filter: blur(4px);
}

/* on-load masked reveal */
.reveal-line { display: block; overflow: hidden; padding-bottom: 0.04em; }
.reveal-line > span { display: block; }
.js .hero-anim .reveal-line > span { transform: translateY(112%); }
.js .hero-anim.run .reveal-line > span {
  animation: rise 0.95s var(--ease) forwards;
}
.js .hero-anim.run .reveal-line:nth-child(2) > span { animation-delay: 0.08s; }
.js .hero-anim.run .reveal-line:nth-child(3) > span { animation-delay: 0.16s; }
@keyframes rise { to { transform: translateY(0); } }

.js .hero-fade { opacity: 0; transform: translateY(18px); }
.js .hero-fade.run { animation: heroFade 0.9s var(--ease) forwards; }
.hero-fade.d1 { animation-delay: 0.34s !important; }
.hero-fade.d2 { animation-delay: 0.46s !important; }
.hero-fade.d3 { animation-delay: 0.58s !important; }
.hero-fade.d4 { animation-delay: 0.7s !important; }
@keyframes heroFade { to { opacity: 1; transform: none; } }

/* ============================================================
   REVEAL ON SCROLL (progressive enhancement)
   ============================================================ */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.js .reveal.in-view { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: 0.08s; }
.js .reveal.d2 { transition-delay: 0.16s; }
.js .reveal.d3 { transition-delay: 0.24s; }
.js .reveal.d4 { transition-delay: 0.32s; }

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.sec-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
  max-width: 760px;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.sec-head .label { margin-bottom: 0.4rem; }
.sec-head h2 { max-width: 18ch; }
.sec-head p { color: inherit; }

.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.split--reverse { grid-template-columns: 1.1fr 0.9fr; }

/* ============================================================
   TRUST STRIP
   ============================================================ */
.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 3rem;
  align-items: center;
  padding-block: 2rem;
  border-top: 1px solid var(--line-light-soft);
  border-bottom: 1px solid var(--line-light-soft);
}
.trust .ti { display: flex; align-items: baseline; gap: 0.7rem; }
.trust .ti .n { font-family: var(--ff-display); font-weight: 700; font-size: 1.55rem; letter-spacing: -0.02em; }
.trust .ti .t { font-size: 0.9rem; color: var(--fg-light-dim); max-width: 20ch; }

/* ============================================================
   SERVICE / FEATURE LIST (sharp, hairline — no big rounded cards)
   ============================================================ */
.rows { border-top: 1px solid var(--line-light); }
.section--graphite .rows, .section--ink .rows { border-top-color: var(--line-dark); }
.row-item {
  display: grid;
  grid-template-columns: 4rem 1fr auto;
  gap: 1.5rem;
  align-items: baseline;
  padding: clamp(1.6rem, 3vw, 2.4rem) 0;
  border-bottom: 1px solid var(--line-light);
  transition: background-color 0.4s var(--ease), padding-left 0.4s var(--ease);
}
.section--graphite .row-item, .section--ink .row-item { border-bottom-color: var(--line-dark); }
.row-item:hover { padding-left: 0.75rem; }
.section--paper .row-item:hover { background: rgba(20,24,27,0.02); }
.row-item .r-num { font-family: var(--ff-mono); font-size: 0.85rem; color: var(--steel-dim); }
.row-item .r-body h3 { margin-bottom: 0.5rem; }
.row-item .r-body p { color: var(--fg-light-dim); max-width: 54ch; font-size: 0.98rem; }
.section--graphite .row-item .r-body p, .section--ink .row-item .r-body p { color: var(--fg-dark-dim); }
.row-item .r-arrow { color: var(--steel); transition: transform 0.4s var(--ease), color 0.3s var(--ease); }
.row-item:hover .r-arrow { transform: translateX(6px); color: var(--blue); }
.section--graphite .row-item:hover .r-arrow { color: var(--blue-bright); }

/* card grid (used sparingly, sharp) */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 1px;
  background: var(--line-light);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  overflow: hidden;
}
.section--graphite .cards, .section--ink .cards { background: var(--line-dark); border-color: var(--line-dark); }
/* 3-column variant for grids where the count divides evenly by 3 */
.cards--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .cards--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cards--3 { grid-template-columns: 1fr; } }
.card {
  background: var(--paper);
  padding: clamp(1.6rem, 3vw, 2.3rem);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  transition: background-color 0.4s var(--ease);
}
.section--graphite .card, .section--ink .card { background: var(--graphite-1); }
.card:hover { background: var(--paper-2); }
.section--graphite .card:hover, .section--ink .card:hover { background: var(--graphite-2); }
.card .c-idx { font-family: var(--ff-mono); font-size: 0.75rem; color: var(--steel-dim); letter-spacing: 0.1em; }
.card h3 { margin-top: 0.2rem; }
.card p { color: var(--fg-light-dim); font-size: 0.96rem; }
.section--graphite .card p, .section--ink .card p { color: var(--fg-dark-dim); }
.card .c-ico { width: 26px; height: 26px; color: var(--blue); margin-bottom: 0.5rem; }
.section--graphite .card .c-ico, .section--ink .card .c-ico { color: var(--blue-bright); }

/* ============================================================
   PROCESS (numbered chapters)
   ============================================================ */
.process { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); border-radius: var(--radius); overflow: hidden; }
.step { background: var(--graphite-1); padding: clamp(1.8rem, 3vw, 2.6rem); position: relative; min-height: 220px; display: flex; flex-direction: column; }
.step .s-num { font-family: var(--ff-mono); font-size: 0.8rem; color: var(--blue-bright); letter-spacing: 0.12em; margin-bottom: auto; }
.step h3 { margin: 2.5rem 0 0.6rem; font-size: 1.35rem; }
.step p { color: var(--fg-dark-dim); font-size: 0.97rem; }

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  padding-block: 1.5rem;
  background: var(--ink);
}
.marquee-track {
  display: flex;
  gap: 3.5rem;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  padding-inline: 1.5rem;
}
.marquee-item {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: clamp(1rem, 1.8vw, 1.4rem);
  letter-spacing: -0.01em;
  color: var(--fg-dark);
  display: inline-flex;
  align-items: center;
  gap: 1.75rem;
  white-space: nowrap;
  flex-wrap: wrap;
  justify-content: center;
}
.marquee-item .dot { width: 8px; height: 8px; background: var(--blue); border-radius: 50%; flex-shrink: 0; }
.marquee-item.dim { color: var(--steel-dim); }
@keyframes scroll-x { to { transform: translateX(-50%); } }

/* ============================================================
   IMAGE FRAME
   ============================================================ */
.frame {
  position: relative;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  overflow: hidden;
}
.section--paper .frame { border-color: var(--line-light); }
.frame img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.04) brightness(0.9);
  transition: transform 1.2s var(--ease), filter 0.7s var(--ease);
}
.frame:hover img { transform: scale(1.03); filter: grayscale(55%) contrast(1.04) brightness(0.94); }
.frame--tall img { aspect-ratio: 3 / 4; }
.frame--wide img { aspect-ratio: 16 / 9; }
.frame .f-cap {
  position: absolute;
  left: 12px; bottom: 12px;
  font-family: var(--ff-mono);
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-dark);
  background: rgba(9,11,12,0.62);
  border: 1px solid var(--line-dark);
  padding: 0.35rem 0.55rem;
  backdrop-filter: blur(4px);
}

/* ============================================================
   MANIFESTO / BIG STATEMENT
   ============================================================ */
.statement {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: clamp(1.9rem, 4.6vw, 3.6rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
  max-width: 20ch;
}
.statement .accent { color: var(--blue-bright); }
.section--paper .statement .accent { color: var(--blue); }

/* geo list */
.geo {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.geo li {
  font-family: var(--ff-mono);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  border: 1px solid var(--line-dark);
  border-radius: 100px;
  padding: 0.5rem 1rem;
  color: var(--fg-dark-dim);
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.geo li:hover { border-color: var(--blue-bright); color: var(--fg-dark); }
.section--paper .geo li { border-color: var(--line-light); color: var(--fg-light-dim); }
.section--paper .geo li:hover { border-color: var(--blue); color: var(--fg-light); }
.geo li.primary { border-color: var(--blue); color: var(--fg-dark); }
.section--paper .geo li.primary { color: var(--fg-light); }

/* bullet list */
.tick-list { display: grid; gap: 0.85rem; }
.tick-list li { display: flex; gap: 0.8rem; align-items: flex-start; font-size: 1rem; }
.tick-list li .tk { color: var(--blue-bright); flex-shrink: 0; margin-top: 0.15rem; }
.section--paper .tick-list li .tk { color: var(--blue); }

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band { position: relative; overflow: hidden; background: var(--ink); }
.cta-band::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line-dark-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-dark-soft) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: radial-gradient(90% 110% at 85% 100%, #000 20%, transparent 72%);
  -webkit-mask-image: radial-gradient(90% 110% at 85% 100%, #000 20%, transparent 72%);
}
.cta-band .container { position: relative; z-index: 2; }
.cta-band h2 { max-width: 16ch; margin-bottom: 1.4rem; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.contact-info { display: flex; flex-direction: column; gap: 1.8rem; }
.contact-card {
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  transition: border-color 0.3s var(--ease), transform 0.4s var(--ease);
}
.contact-card:hover { border-color: rgba(236,234,227,0.3); transform: translateY(-2px); }
.contact-card .cc-k { font-family: var(--ff-mono); font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--steel-dim); }
.contact-card .cc-v { font-size: 1.35rem; font-weight: 600; font-family: var(--ff-display); letter-spacing: -0.01em; }
.contact-card a.cc-v:hover { color: var(--blue-bright); }

.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.2rem; }
.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field-full { grid-column: 1 / -1; }
.field label { font-family: var(--ff-mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-dark-dim); }
.field label .opt { color: var(--steel-dim); text-transform: none; letter-spacing: 0.02em; }
.field input, .field textarea {
  background: var(--graphite-1);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
  color: var(--fg-dark);
  font-size: 1rem;
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: var(--steel-dim); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue-bright); background: var(--graphite-2); }
.field textarea { resize: vertical; min-height: 130px; }
.contact-form .btn { grid-column: 1 / -1; justify-content: center; }
.form-note { grid-column: 1 / -1; font-size: 0.9rem; color: var(--fg-dark-dim); }
.form-note a { color: var(--blue-bright); font-weight: 500; }
.form-note a:hover { text-decoration: underline; }

.form-success {
  border: 1px solid var(--blue);
  background: rgba(43,95,227,0.08);
  border-radius: var(--radius);
  padding: 1.6rem 1.7rem;
  font-size: 1.05rem;
  color: var(--fg-dark);
}
.form-success strong { color: var(--blue-bright); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--ink); color: var(--fg-dark); border-top: 1px solid var(--line-dark); }
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2rem;
  padding-block: clamp(3rem, 6vw, 5rem);
}
.footer-brand .brand-word { font-size: 1.3rem; }
.footer-brand p { color: var(--fg-dark-dim); font-size: 0.94rem; margin-top: 1.1rem; max-width: 34ch; }
.footer-col h4 { font-family: var(--ff-mono); font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--steel-dim); font-weight: 500; margin-bottom: 1.1rem; }
.footer-col ul { display: grid; gap: 0.65rem; }
.footer-col a { color: var(--fg-dark-dim); font-size: 0.95rem; transition: color 0.25s var(--ease); }
.footer-col a:hover { color: var(--fg-dark); }
.footer-col .mono { font-family: var(--ff-mono); font-size: 0.92rem; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.5rem;
  justify-content: space-between;
  align-items: center;
  padding-block: 1.6rem;
  border-top: 1px solid var(--line-dark-soft);
  font-family: var(--ff-mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  color: var(--steel-dim);
}
.footer-bottom a:hover { color: var(--fg-dark); }

/* ============================================================
   MISC
   ============================================================ */
.eyebrow-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.hr-line { height: 1px; background: var(--line-dark); border: 0; margin: 0; }
.section--paper .hr-line { background: var(--line-light); }
.stack-sm { display: grid; gap: 0.9rem; }
.stack-md { display: grid; gap: 1.5rem; }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.mb-2 { margin-bottom: 2rem; }
.maxw { max-width: 56ch; }
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--blue); color: #fff; padding: 0.7rem 1.1rem; border-radius: var(--radius);
}
.skip-link:focus { left: 12px; top: 12px; }

/* 404 */
.nf { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 2rem; }
.nf .code { font-family: var(--ff-mono); color: var(--blue-bright); letter-spacing: 0.2em; margin-bottom: 1rem; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 300px; margin-top: 1rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .split, .split--reverse { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .nav-desktop, .header-phone { display: none; }
  .nav-burger { display: block; }
  .header-cta .btn { display: none; }
}
@media (max-width: 640px) {
  .row-item { grid-template-columns: 1fr; gap: 0.6rem; }
  .row-item .r-num { display: none; }
  .row-item .r-arrow { display: none; }
  .footer-top { grid-template-columns: 1fr; gap: 2.4rem; }
  .contact-form { grid-template-columns: 1fr; }
  .trust { gap: 1rem 1.4rem; padding-block: 1.4rem; display: grid; grid-template-columns: auto 1fr; column-gap: 1rem; row-gap: 0.9rem; align-items: baseline; }
  .trust .ti { display: contents; }
  .trust .ti .n { font-size: 1.25rem; }
  .trust .ti .t { font-size: 0.85rem; max-width: none; }
  .cta-row { width: 100%; }
  .cta-row .btn { flex: 1 1 auto; justify-content: center; }
  .marquee { padding-block: 0.9rem; }
  .marquee-track { gap: 0; padding-inline: 1rem; row-gap: 0.4rem; }
  .marquee-item { font-size: 0.82rem; gap: 0.6rem; letter-spacing: 0.02em; text-transform: uppercase; font-family: var(--ff-mono); font-weight: 500; color: var(--fg-dark-dim); }
  .marquee-item .dot { width: 4px; height: 4px; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .js .hero-anim .reveal-line > span,
  .js .hero-fade { transform: none !important; opacity: 1 !important; }
  .js .reveal { opacity: 1 !important; transform: none !important; }
  .marquee-track { animation: none !important; }
}
