/* ==========================================================================
   Nexcellentia — main stylesheet
   Tokens → base → layout → components → sections → abstract art → responsive
   ========================================================================== */

/* Tokens ----------------------------------------------------------------- */
:root {
  --gold: #A98545;
  --gold-12: rgba(169, 133, 69, 0.12);
  --gold-16: rgba(169, 133, 69, 0.16);
  --ink: #14120F;
  --body: #3B3630;
  --muted: #6B655C;
  --muted-2: #8A8379;
  --faint: #B9B2A6;
  --line: #E7E2D8;
  --line-2: #E3DBCA;
  --line-3: #DCD3C0;
  --bg: #FDFCFA;
  --tint: #FBF8F2;
  --paper: #FFFDF9;
  --cream: #FAF6EE;
  --selection: #EFE3CB;

  --font-sans: "Schibsted Grotesk", Helvetica, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --container: 1280px;
  --gutter: 48px;
  --pad: 140px;          /* vertical rhythm between sections */
  --header-h: 78px;
  --ease: 220ms ease;
}

/* Base ------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

:where(h1, h2, h3, p, figure, blockquote, dl, dd) { margin: 0; }
:where(ul[role="list"]) { list-style: none; margin: 0; padding: 0; }
img, svg { display: block; max-width: 100%; }

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
::selection { background: var(--selection); }

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--ink);
  color: var(--bg);
  font-size: 14px;
}
.skip-link:focus { top: 16px; color: var(--bg); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* Layout ----------------------------------------------------------------- */
.container { max-width: var(--container); margin: 0 auto; }
.section { padding: var(--pad) var(--gutter) 0; }

/* Typography helpers ----------------------------------------------------- */
.mono-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.kicker {
  margin-bottom: 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.h2 {
  font-size: clamp(34px, 3.4vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 600;
}

.h2-sm {
  font-size: clamp(30px, 3vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 600;
}

.h3 {
  margin-bottom: 16px;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.lede {
  margin-top: 28px;
  font-size: 18px;
  line-height: 1.68;
  color: var(--body);
  text-wrap: pretty;
}
.lede--lg { margin-top: 0; font-size: 19px; }

.body-sm {
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
  text-wrap: pretty;
}

.text-gold { color: var(--gold); }

.rule {
  display: block;
  flex: none;
  width: 46px;
  height: 1px;
  background: var(--gold);
}

/* Links & buttons -------------------------------------------------------- */
.btn {
  display: inline-block;
  padding: 13px 22px;
  border: 1px solid var(--gold);
  background: var(--gold);
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background var(--ease), color var(--ease);
}
.btn:hover { background: transparent; color: var(--ink); }
.btn--lg { padding: 17px 32px; }
.btn--on-dark:hover { color: var(--gold); }

.link-underline {
  padding-bottom: 3px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 14px;
  transition: border-color var(--ease);
}
.link-underline:hover { border-color: var(--gold); color: var(--ink); }

.mono-link {
  display: inline-block;
  margin-top: 26px;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: border-color var(--ease);
}
.mono-link:hover { border-color: var(--gold); color: var(--ink); }

.mark { fill: currentColor; }

/* Header ----------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  background: rgba(253, 252, 250, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  height: var(--header-h);
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
}
.brand:hover { color: var(--ink); }
.brand .mark { width: 24px; height: 24px; }
.brand__name { font-size: 17px; font-weight: 600; letter-spacing: 0.01em; }

.nav { display: flex; align-items: center; gap: 38px; }
.nav__list { display: flex; align-items: center; gap: 38px; }
.nav__link {
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 0.01em;
  transition: color var(--ease);
}
.nav__link:hover { color: var(--ink); }
.nav__link[aria-current="page"] { color: var(--ink); }
.nav__link[aria-current="page"]:hover { color: var(--gold); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 22px;
  height: 1px;
  margin: 0 auto;
  background: currentColor;
  transition: transform var(--ease), opacity var(--ease);
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before,
.nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -7px; }
.nav-toggle__bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }

/* Hero ------------------------------------------------------------------- */
.hero { padding: 200px var(--gutter) 0; }

.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 72px;
  align-items: center;
}

.eyebrow-rule {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 40px;
}
.eyebrow-rule .mono-label { letter-spacing: 0.18em; }

.hero__title {
  font-size: clamp(48px, 5.4vw, 82px);
  line-height: 1.03;
  letter-spacing: -0.035em;
  font-weight: 600;
  text-wrap: balance;
}

.hero__lede {
  max-width: 560px;
  margin-top: 34px;
  font-size: 18px;
  line-height: 1.65;
  color: var(--muted);
  text-wrap: pretty;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px;
  margin-top: 48px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: var(--pad);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stats__item {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  padding: 30px 0 30px 40px;
  border-left: 1px solid var(--line);
}
.stats__item:first-child { padding-left: 0; border-left: 0; }
.stats__item .mono-label { margin-top: 8px; }
.stats__value { font-size: 30px; letter-spacing: -0.02em; font-weight: 500; }

/* Section heads ---------------------------------------------------------- */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 72px;
}
.section-head--tight { margin-bottom: 56px; }
.section-head__aside {
  max-width: 380px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
  text-wrap: pretty;
}

/* Service overview cards ------------------------------------------------- */
.service-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}
.service-card {
  padding: 44px 40px 52px;
  border-right: 1px solid var(--line);
  transition: background 260ms ease;
}
.service-card:last-child { border-right: 0; }
.service-card:hover { background: var(--tint); }
.service-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 38px;
}
.service-card__num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--faint);
}

.icon-shape { display: block; width: 22px; height: 22px; border: 1px solid var(--gold); }
.icon-shape--diamond { transform: rotate(45deg); }
.icon-shape--circle { border-radius: 50%; }
.icon-play { width: 22px; height: 22px; fill: none; stroke: var(--gold); stroke-width: 1; stroke-linejoin: round; }

/* Service detail --------------------------------------------------------- */
.service-detail__rule {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}
.service-detail__rule .mono-label { letter-spacing: 0.18em; }
.service-detail__num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--gold);
}

.service-detail__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 80px;
  padding-top: 64px;
  align-items: start;
}
.service-detail__grid--reverse { grid-template-columns: 0.95fr 1.05fr; }

.matrix {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin-top: 48px;
  border-top: 1px solid var(--line);
}
.matrix > li { padding: 22px 24px 22px 0; border-bottom: 1px solid var(--line); }
.matrix > li:nth-child(even) { padding: 22px 0 22px 24px; border-left: 1px solid var(--line); }
.matrix__title { font-size: 15px; font-weight: 600; }
.matrix__text { margin-top: 6px; font-size: 13px; line-height: 1.6; color: var(--muted); }

.meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  margin-top: 44px;
}
.meta dt {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.meta dd { margin-top: 8px; font-size: 16px; }

/* Brand video showreel --------------------------------------------------- */
.showreel { margin-top: 96px; }
.showreel__head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 32px;
}
.showreel__head .mono-label { letter-spacing: 0.18em; }
.showreel__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}
.reel__media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--cream);
}
.reel__media video { display: block; width: 100%; height: 100%; object-fit: cover; }
.reel__link { margin-left: 4px; white-space: nowrap; border-bottom: 1px solid var(--line); color: var(--ink); }
.reel__link:hover { border-color: var(--gold); }

/* About ------------------------------------------------------------------ */
.about {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 80px;
  align-items: start;
}
.about__body { padding-left: 44px; border-left: 1px solid var(--gold); }

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 56px;
}
.pillars__title { font-size: 14px; font-weight: 600; letter-spacing: -0.01em; }
.pillars .matrix__text { margin-top: 8px; }

/* Work ------------------------------------------------------------------- */
.projects {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}
.project__media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--tint);
  transition: border-color 260ms ease;
}
.project__media--paper { background: var(--paper); }
.project:hover .project__media { border-color: var(--gold); }
.project__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.project__title { font-size: 19px; font-weight: 600; letter-spacing: -0.015em; }
.project__cat {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.project--link { display: block; color: inherit; }
.project--link:hover .project__title { color: var(--gold); }
.project--link:focus-visible { outline: 1px solid var(--gold); outline-offset: 8px; }
.project__summary {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
  text-wrap: pretty;
}
.project__media--img img,
.case__media--img img { position: static; display: block; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.project:hover .project__media--img img { transform: scale(1.02); }
.project__media--img img { transition: transform 400ms ease; }
.projects--work { margin-top: 72px; }

/* Case study ------------------------------------------------------------- */
.case__head { max-width: 860px; }
.case__head .h2 { text-wrap: balance; }
.case__actions { margin-top: 36px; }
.case__media { margin-top: 64px; aspect-ratio: 16 / 7; }
.case__media--img { aspect-ratio: auto; overflow: hidden; border: 1px solid var(--line); }
.case__media--img img { height: auto; }
.case-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 32px;
  margin-top: 48px;
}
.case-gallery__item img { display: block; width: 100%; height: auto; border: 1px solid var(--line); }
.case-gallery__caption { margin-top: 14px; font-size: 14px; line-height: 1.6; color: var(--muted); }
.case-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 48px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.case-facts__item { padding: 28px 24px 28px 0; }
.case-facts__item + .case-facts__item { padding-left: 24px; border-left: 1px solid var(--line); }
.case-facts dd { margin: 10px 0 0; font-size: 15px; line-height: 1.5; color: var(--ink); }
.prose.case__body { margin-top: 56px; border-top: 0; padding-top: 0; }
.case__body strong { color: var(--ink); font-weight: 600; }
.case-next {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 16px 32px;
  max-width: 760px;
  margin-top: 72px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.case-next__link { font-size: clamp(24px, 2.4vw, 32px); font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
.case-next__link:hover { color: var(--gold); }
.case-next .link-underline { margin-left: auto; }

/* Founder ---------------------------------------------------------------- */
.founder {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 72px;
  align-items: center;
}
.founder--no-photo { grid-template-columns: 1fr; }
.founder__portrait { position: relative; }
.founder__portrait img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.founder__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line);
  background-image: repeating-linear-gradient(135deg, #F3EEE4 0 1px, transparent 1px 9px);
  color: var(--gold);
}
.founder__mark { width: 64px; height: 64px; opacity: 0.85; }
.founder__corner {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 64px;
  height: 64px;
  border-right: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
}
.founder__title { margin-bottom: 30px; font-size: clamp(32px, 3.2vw, 48px); line-height: 1.1; }
.founder__bio { max-width: 620px; margin-top: 0; }

.signature { display: flex; align-items: center; gap: 16px; margin-top: 40px; }
.signature__name { font-size: 15px; font-weight: 600; }
.signature .mono-label { margin-top: 6px; letter-spacing: 0.12em; }

/* Testimonials ----------------------------------------------------------- */
.testimonials__title { margin-bottom: 64px; }
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.quote {
  display: flex;
  flex-direction: column;
  gap: 28px;
  height: 100%;
  padding: 40px 34px;
  border: 1px solid var(--line);
  transition: border-color 260ms ease;
}
.quote:hover { border-color: var(--gold); }
.quote__mark { font-size: 34px; line-height: 0.6; font-weight: 600; color: var(--gold); }
.quote__text { flex: 1; font-size: 16px; line-height: 1.68; color: var(--body); text-wrap: pretty; }
.quote__by { display: flex; flex-direction: column; gap: 6px; padding-top: 22px; border-top: 1px solid var(--line); }
.quote__name { font-size: 14px; font-weight: 600; }
.quote__role {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* CTA banner ------------------------------------------------------------- */
.cta-banner {
  position: relative;
  overflow: hidden;
  padding: 96px 80px;
  background: var(--ink);
  color: var(--bg);
}
.cta-banner__diamond {
  position: absolute;
  top: -80px;
  right: -80px;
  width: 300px;
  height: 300px;
  border: 1px solid rgba(169, 133, 69, 0.35);
  transform: rotate(45deg);
}
.cta-banner__inner { position: relative; max-width: 720px; }
.cta-banner__title {
  font-size: clamp(34px, 3.8vw, 58px);
  line-height: 1.06;
  letter-spacing: -0.035em;
  font-weight: 600;
}
.cta-banner__text {
  margin-top: 28px;
  font-size: 17px;
  line-height: 1.68;
  color: rgba(253, 252, 250, 0.66);
  text-wrap: pretty;
}
.cta-banner__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 32px;
  margin-top: 44px;
}
.cta-banner__phone {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: rgba(253, 252, 250, 0.8);
}
.cta-banner__phone:hover { color: var(--gold); }

/* Footer ----------------------------------------------------------------- */
.site-footer { padding: var(--pad) var(--gutter) 0; }
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 56px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--line);
}
.site-footer .brand { font-size: 16px; }
.site-footer .brand .mark { width: 22px; height: 22px; color: var(--gold); }
.site-footer .brand__name { font-size: 16px; }
.site-footer__tagline {
  max-width: 380px;
  margin-top: 24px;
  font-size: 22px;
  line-height: 1.4;
  letter-spacing: -0.02em;
}
.site-footer__heading {
  margin-bottom: 22px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.site-footer__list { display: flex; flex-direction: column; gap: 12px; font-size: 15px; font-style: normal; }
.site-footer__list a { color: var(--ink); }
.site-footer__list a:hover { color: var(--gold); }
.site-footer__muted { color: var(--muted); }

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  padding: 28px 0 40px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.site-footer__legal { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer__legal a { color: var(--muted-2); }
.site-footer__legal a:hover { color: var(--ink); }

/* Legal / prose pages ---------------------------------------------------- */
.page { padding: 180px var(--gutter) 0; }
.page__head { max-width: 760px; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 32px; padding: 0; list-style: none; }
.breadcrumbs li + li::before { content: "/"; margin-right: 10px; color: var(--faint); }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--ink); }
.breadcrumbs [aria-current] { color: var(--gold); }

.prose {
  max-width: 760px;
  margin-top: 56px;
  padding-top: 48px;
  border-top: 1px solid var(--line);
  font-size: 16px;
  line-height: 1.75;
  color: var(--body);
}
.prose h2 {
  margin: 48px 0 16px;
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: -0.015em;
  font-weight: 600;
  color: var(--ink);
}
.prose h2:first-child { margin-top: 0; }
.prose p, .prose ul, .prose ol { margin: 0 0 18px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose li::marker { color: var(--gold); }
.prose a { color: var(--ink); border-bottom: 1px solid var(--gold); }
.prose a:hover { color: var(--gold); }
.prose hr { display: none; }

/* ==========================================================================
   Abstract art — pure CSS compositions echoing the logo's diagonals
   ========================================================================== */
.art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.art > * { position: absolute; }

/* Hero */
.art--hero { overflow: visible; }
.art__lines { inset: 0; background-image: repeating-linear-gradient(to bottom, #ECE7DD 0 1px, transparent 1px 44px); }
.art__diamond { aspect-ratio: 1; transform: rotate(45deg); }
.art__diamond--lg { width: 78%; border: 1px solid var(--line); }
.art__diamond--md { width: 55%; border: 1px solid var(--gold); }
.art__diamond--sm { width: 32%; background: var(--cream); }
.art__mark { position: relative; width: 86px; height: 86px; color: var(--gold); }

/* Web development */
.art--web { background: var(--tint); }
.art__grid {
  inset: 0;
  background-image:
    repeating-linear-gradient(to bottom, #EEE8DA 0 1px, transparent 1px 40px),
    repeating-linear-gradient(90deg, #F1EBDE 0 1px, transparent 1px 40px);
}
.art-web__window { left: 14%; top: 20%; right: 26%; bottom: 30%; border: 1px solid var(--gold); background: var(--paper); }
.art-web__bar { left: 14%; top: 20%; right: 26%; height: 1px; background: var(--gold); }
.art-web__line { left: 20%; height: 6px; background: #E6DCC7; }
.art-web__line--1 { top: 34%; width: 26%; height: 8px; background: rgba(169, 133, 69, 0.5); }
.art-web__line--2 { top: 41%; width: 40%; }
.art-web__line--3 { top: 47%; width: 32%; }
.art-web__panel { right: 12%; top: 44%; bottom: 16%; width: 26%; border: 1px solid var(--ink); opacity: 0.14; }
.art-web__base { right: 12%; bottom: 16%; width: 26%; height: 1px; background: var(--gold); }

/* Brand design */
.art--brand { background: var(--paper); border: 1px solid var(--line); }
.art-brand__ring { width: 68%; aspect-ratio: 1; border: 1px solid var(--line-2); border-radius: 50%; }
.art-brand__ring--left { border-color: var(--gold); transform: translateX(-18%); }
.art-brand__ring--right { transform: translateX(18%); }
.art-brand__diamond { width: 22%; aspect-ratio: 1; background: var(--gold-16); transform: rotate(45deg); }
.art-brand__mark { position: relative; width: 52px; height: 52px; color: var(--gold); }
.art-brand__baseline { left: 0; right: 0; bottom: 18%; height: 1px; background: #EFE9DC; }

/* Software development */
.art--software {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-content: center;
  padding: 16%;
  background: var(--tint);
}
.art--software > span { position: relative; aspect-ratio: 1; border: 1px solid var(--line-2); }
.art--software > .is-tint { border-color: var(--gold); background: var(--gold-12); }
.art--software > .is-solid { border-color: var(--gold); background: var(--gold); }
.art__stripes { inset: 0; background-image: repeating-linear-gradient(90deg, #EFE9DC 0 1px, transparent 1px 32px); }

/* Brand video: a storyboard sketched on a whiteboard */
.art--board { background: var(--tint); }
.art-board__surface {
  inset: 9% 7% 15%;
  border: 6px solid #E9E3D7;
  border-radius: 4px;
  background: var(--paper);
  box-shadow: 0 1px 0 var(--line-3), inset 0 0 0 1px var(--line);
}
.art-board__sketch { inset: 9% 7% 15%; width: 86%; height: 76%; }
.art-board__sketch path { stroke-width: 2.4; }
.art-board__sketch .is-ink { stroke: var(--ink); opacity: 0.72; }
.art-board__sketch .is-gold { stroke: var(--gold); stroke-width: 3; }
.art-board__tray { left: 18%; right: 18%; bottom: 12%; height: 6px; border-radius: 3px; background: var(--line-3); }
.art-board__marker { right: 26%; bottom: calc(12% + 6px); width: 46px; height: 8px; border-radius: 4px 2px 2px 4px; background: var(--gold); }
.art-board__marker::after { content: ""; position: absolute; left: -7px; top: 2px; width: 8px; height: 4px; border-radius: 2px 0 0 2px; background: var(--ink); }

/* Drawn in once the board scrolls into view (main.js adds the classes). */
.art--board.is-pending path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.art--board.is-drawn path { transition: stroke-dashoffset 900ms ease; stroke-dashoffset: 0; }
.art--board.is-drawn path:nth-child(2) { transition-delay: 250ms; }
.art--board.is-drawn path:nth-child(3) { transition-delay: 500ms; }
.art--board.is-drawn path:nth-child(4) { transition-delay: 750ms; }
.art--board.is-drawn path:nth-child(5) { transition-delay: 950ms; }
.art--board.is-drawn path:nth-child(6) { transition-delay: 1150ms; }
.art--board.is-drawn path:nth-child(7) { transition-delay: 1350ms; }
.art--board.is-drawn path:nth-child(8) { transition-delay: 1500ms; }
.art--board.is-drawn path:nth-child(9) { transition-delay: 1650ms; }
.art--board.is-drawn path:nth-child(10) { transition-delay: 1800ms; }
.art--board.is-drawn path:nth-child(11) { transition-delay: 1950ms; }

/* About banner */
.art--about {
  justify-content: flex-start;
  aspect-ratio: auto;
  height: 180px;
  margin-bottom: 44px;
  background: var(--tint);
}
.art-about__stripes { inset: 0; background-image: repeating-linear-gradient(90deg, #EDE6D8 0 1px, transparent 1px 26px); }
.art-about__ring { width: 148px; height: 148px; border: 1px solid var(--line-3); border-radius: 50%; }
.art-about__ring--1 { left: 56px; border-color: var(--gold); }
.art-about__ring--2 { left: 132px; }
.art-about__ring--3 { left: 208px; }
.art-about__diamond { right: 48px; width: 74px; height: 74px; background: var(--gold); opacity: 0.14; transform: rotate(45deg); }
.art-about__edge { right: 0; top: 0; bottom: 0; width: 1px; background: var(--gold); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  :root { --gutter: 40px; --pad: 112px; }
  .service-detail__grid,
  .service-detail__grid--reverse,
  .about { gap: 56px; }
  .service-card { padding: 40px 28px 44px; }
  .service-cards { grid-template-columns: repeat(2, 1fr); }
  .service-card:nth-child(2n) { border-right: 0; }
  .service-card:nth-child(n + 3) { border-top: 1px solid var(--line); }
}

@media (max-width: 960px) {
  :root { --header-h: 68px; }

  .nav-toggle { display: block; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px var(--gutter) 32px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--ease), transform var(--ease), visibility 0s linear 220ms;
  }
  .nav.is-open {
    transform: none;
    opacity: 1;
    visibility: visible;
    transition: opacity var(--ease), transform var(--ease);
  }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__link { display: block; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .nav .btn { margin-top: 24px; text-align: center; }

  .hero { padding-top: 150px; }
  .hero__grid { grid-template-columns: 1fr; gap: 56px; }
  .art--hero { width: min(100%, 460px); margin: 0 auto; }

  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats__item:nth-child(3) { padding-left: 0; border-left: 0; }
  .stats__item:nth-child(n + 3) { border-top: 1px solid var(--line); }

  .section-head { flex-direction: column; align-items: flex-start; gap: 20px; margin-bottom: 48px; }

  .service-cards { grid-template-columns: 1fr; }
  .service-card,
  .service-card:nth-child(n + 3) { padding: 36px 0 40px; border-top: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .service-card:hover { background: transparent; }

  .service-detail__grid,
  .service-detail__grid--reverse { grid-template-columns: 1fr; padding-top: 48px; }
  .service-detail__grid--reverse > .art { order: 2; }
  .service-detail .art { width: min(100%, 520px); }

  .about { grid-template-columns: 1fr; gap: 40px; }
  .founder { grid-template-columns: 1fr; gap: 48px; }
  .founder__portrait { max-width: 420px; }

  .testimonials { grid-template-columns: 1fr; gap: 20px; }
  .testimonials__title { margin-bottom: 40px; }

  .cta-banner { padding: 72px 48px; }

  .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .site-footer__grid > :first-child { grid-column: 1 / -1; }

  .page { padding-top: 140px; }

  .case-facts { grid-template-columns: repeat(2, 1fr); }
  .case-facts__item:nth-child(3) { padding-left: 0; border-left: 0; }
  .case-facts__item:nth-child(n + 3) { border-top: 1px solid var(--line); }
}

@media (max-width: 640px) {
  :root { --gutter: 20px; --pad: 88px; }

  .hero { padding-top: 128px; }
  .eyebrow-rule { margin-bottom: 28px; }
  .hero__title { font-size: clamp(38px, 11vw, 48px); }
  .hero__lede { font-size: 17px; }
  .hero__actions { margin-top: 36px; gap: 24px; }

  .stats__item { padding: 24px 0 24px 20px; }
  .stats__value { font-size: 24px; }

  .matrix { grid-template-columns: 1fr; }
  .matrix > li,
  .matrix > li:nth-child(even) { padding: 20px 0; border-left: 0; }
  .meta-row { gap: 24px 32px; }

  .about__body { padding-left: 24px; }
  .art--about { height: 140px; }
  .art-about__ring { width: 116px; height: 116px; }
  .art-about__ring--1 { left: 24px; }
  .art-about__ring--2 { left: 84px; }
  .art-about__ring--3 { left: 144px; }
  .art-about__diamond { right: 28px; width: 56px; height: 56px; }
  .pillars { grid-template-columns: 1fr; gap: 24px; margin-top: 40px; }

  .projects,
  .showreel__list { grid-template-columns: 1fr; gap: 48px; }
  .showreel { margin-top: 72px; }
  .case__media { aspect-ratio: 4 / 3; margin-top: 48px; }
  .case__media--img { aspect-ratio: auto; }
  .case-facts { grid-template-columns: 1fr; }
  .case-facts__item,
  .case-facts__item + .case-facts__item { padding: 20px 0; border-left: 0; }
  .case-facts__item + .case-facts__item { border-top: 1px solid var(--line); }
  .case-next .link-underline { margin-left: 0; }

  .quote { padding: 32px 24px; }

  .cta-banner { padding: 56px 24px; }
  .cta-banner__diamond { width: 200px; height: 200px; top: -70px; right: -70px; }

  .site-footer__grid { grid-template-columns: 1fr; gap: 36px; }
  .site-footer__tagline { font-size: 20px; }
  .site-footer__bottom { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}

@media print {
  .site-header, .nav-toggle, .skip-link, .art, .cta-banner__diamond { display: none !important; }
  .hero, .page { padding-top: 0; }
  .cta-banner { background: none; color: var(--ink); padding: 0; }
}
