/* Object 64 — values from Design/Object 64 homepage — light-html/SiteLight.dc.html (1440px artboard) */

@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Archivo Narrow";
  src: url("fonts/archivo-narrow-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root {
  --bg: #F4F1EC;
  --sand: #EAE3D6;
  --navy: #172E4B;
  --ink-2: #34425A;
  --muted: #4A5670;
  --eyebrow: #B3341B;
  --cta: #C63B1F;
  --vermilion: #DC4729;
  --rule: rgba(23, 46, 75, 0.16);
  --tag-rule: rgba(23, 46, 75, 0.38);

  --gutter: clamp(20px, 4.45vw, 64px);
  --max: 1440px;
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --narrow: "Archivo Narrow", "Arial Narrow", "Helvetica Neue", sans-serif;
  --veil: 244, 241, 236;
}

/* Dark theme: follows the system unless the visitor picked one with the toggle (data-theme) */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0F1C2E;
    --sand: #152841;
    --navy: #F2EDE2;
    --ink-2: #D9D3C7;
    --muted: #A8B3C4;
    --eyebrow: #F07A5E;
    --rule: rgba(242, 237, 226, 0.16);
    --tag-rule: rgba(242, 237, 226, 0.38);
    --veil: 15, 28, 46;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
    --bg: #0F1C2E;
  --sand: #152841;
  --navy: #F2EDE2;
  --ink-2: #D9D3C7;
  --muted: #A8B3C4;
  --eyebrow: #F07A5E;
  --rule: rgba(242, 237, 226, 0.16);
  --tag-rule: rgba(242, 237, 226, 0.38);
  --veil: 15, 28, 46;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--navy);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:hover { opacity: .8; }
a:focus-visible { outline: 2px solid var(--vermilion); outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
img { display: block; max-width: 100%; }

.wrap { max-width: var(--max); margin: 0 auto; }

.eyebrow {
  font-family: var(--narrow);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--eyebrow);
}
.lede { font-size: clamp(17px, 1.35vw, 19px); line-height: 1.55; color: var(--muted); }

.btn {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 54px;
  padding: 0 26px;
  font-weight: 700;
  font-size: 16px;
}
.btn--navy { background: var(--navy); color: var(--bg); }
.btn--cta { background: var(--cta); color: #fff; height: 56px; padding: 0 28px; }

/* ---------- Header ---------- */
.site-header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 2;
  height: 100px;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max);
  margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand span { font-weight: 800; font-size: 19px; letter-spacing: .02em; }
.nav {
  display: flex;
  align-items: center;
  gap: 36px;
  font-family: var(--narrow);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.nav__box { display: flex; align-items: center; height: 44px; padding: 0 20px; border: 2px solid var(--navy); }
.theme-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0;
  background: none; border: 0; color: inherit; cursor: pointer;
}
.theme-toggle:hover { opacity: .8; }
.theme-toggle:focus-visible { outline: 2px solid var(--vermilion); outline-offset: 2px; }
.theme-toggle .icon-sun { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
}
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

.o64-spin {
  transform-box: view-box;
  transform-origin: 135.5px 114px;
  animation: o64spin 5s linear infinite;
}
@keyframes o64spin{0%{transform:scaleX(1)}60%{transform:scaleX(1)}61.667%{transform:scaleX(1.0000)}63.333%{transform:scaleX(0.9999)}65.000%{transform:scaleX(0.9988)}66.667%{transform:scaleX(0.9932)}68.333%{transform:scaleX(0.9743)}70.000%{transform:scaleX(0.9239)}71.667%{transform:scaleX(0.8118)}73.333%{transform:scaleX(0.5972)}75.000%{transform:scaleX(0.2430)}76.667%{transform:scaleX(-0.2447)}78.333%{transform:scaleX(-0.7506)}80.000%{transform:scaleX(-1.0000)}81.667%{transform:scaleX(-0.7506)}83.333%{transform:scaleX(-0.2447)}85.000%{transform:scaleX(0.2430)}86.667%{transform:scaleX(0.5972)}88.333%{transform:scaleX(0.8118)}90.000%{transform:scaleX(0.9239)}91.667%{transform:scaleX(0.9743)}93.333%{transform:scaleX(0.9932)}95.000%{transform:scaleX(0.9988)}96.667%{transform:scaleX(0.9999)}98.333%{transform:scaleX(1.0000)}100.000%{transform:scaleX(1.0000)}}

/* ---------- Hero ---------- */
.hero { position: relative; height: 900px; max-height: 100vh; min-height: 680px; overflow: hidden; }
.hero__img, .hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* The spin video replaces the still photo once the script has picked the clip for the theme */
.hero__video { display: none; }
.has-hero-video .hero__img { display: none; }
.has-hero-video .hero__video { display: block; }
.hero__veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(var(--veil),.94) 0%, rgba(var(--veil),.74) 30%, rgba(var(--veil),0) 54%),
    linear-gradient(180deg, rgba(var(--veil),.6) 0%, rgba(var(--veil),0) 16%);
}
.hero__inner { position: relative; height: 100%; max-width: var(--max); margin: 0 auto; }
.hero__copy {
  position: absolute;
  left: var(--gutter);
  top: clamp(150px, 21vh, 190px);
  width: min(560px, 46vw);
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.hero h1 { font-weight: 800; font-size: clamp(56px, 6.95vw, 100px); line-height: .9; letter-spacing: -.035em; }
.hero__copy .lede { max-width: 440px; color: var(--ink-2); }

/* ---------- Section heads ---------- */
.section-head__title { display: flex; flex-direction: column; gap: 20px; }
h2 { font-weight: 800; letter-spacing: -.03em; }

/* ---------- Principles ---------- */
.principles { background: var(--sand); }
.principles__inner {
  max-width: var(--max); margin: 0 auto;
  padding: 120px var(--gutter);
  display: flex; gap: clamp(48px, 6.7vw, 96px); align-items: center;
}
.principles__img { width: min(560px, 40vw); height: auto; aspect-ratio: 560 / 680; flex-shrink: 0; object-fit: cover; }
.principles__body { flex-grow: 1; display: flex; flex-direction: column; gap: 44px; }
.principles h2 { font-size: clamp(42px, 4.45vw, 64px); line-height: .98; }
.principles h2 span { display: block; }
.principle-list { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--rule); }
.principle { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 16px; padding: 30px 0; border-top: 1px solid var(--rule); }
.principle__num { font-family: var(--narrow); font-weight: 500; font-size: 15px; letter-spacing: .12em; color: var(--eyebrow); padding-top: 6px; }
.principle div { display: flex; flex-direction: column; gap: 10px; }
.principle h3 { font-weight: 700; font-size: clamp(23px, 1.95vw, 28px); letter-spacing: -.015em; }
.principle p { max-width: 520px; font-size: 18px; line-height: 1.55; color: var(--muted); }

/* ---------- Contact ---------- */
.contact { padding: 128px var(--gutter); display: flex; align-items: flex-end; justify-content: space-between; gap: 64px; }
.contact h2 { max-width: 820px; font-size: clamp(48px, 5.85vw, 84px); line-height: .94; letter-spacing: -.035em; }
.contact__side { width: 380px; flex-shrink: 0; display: flex; flex-direction: column; gap: 24px; padding-bottom: 8px; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--rule);
  margin: 0 var(--gutter);
  padding: 48px 0 44px;
  display: flex; flex-direction: column; gap: 40px;
}
.site-footer__row { display: flex; align-items: center; justify-content: space-between; gap: 48px; }
.site-footer__row--small { font-size: 14px; color: var(--muted); }
.site-footer .nav { gap: 36px; }

/* ---------- Tablet ---------- */
@media (max-width: 1100px) {
  .hero__veil {
    background:
      linear-gradient(90deg, rgba(var(--veil),.95) 0%, rgba(var(--veil),.85) 42%, rgba(var(--veil),0) 72%),
      linear-gradient(180deg, rgba(var(--veil),.6) 0%, rgba(var(--veil),0) 16%);
  }
  .contact { flex-direction: column; align-items: flex-start; }
  .contact__side { width: auto; max-width: 460px; }
}

@media (max-width: 860px) {
  .principles__inner { flex-direction: column; align-items: stretch; padding: 88px var(--gutter); }
  .principles__img { width: 100%; aspect-ratio: 4 / 3; object-position: center 40%; }
  .contact { padding: 88px var(--gutter); gap: 36px; }
}

/* ---------- Phone ---------- */
@media (max-width: 720px) {
  .site-header { height: 76px; }
  .nav--primary .nav__plain { display: none; }
  .nav { font-size: 13px; gap: 12px; }
  .nav__box { height: 40px; padding: 0 16px; }

  /* Stack the hero: copy on cream, then the photo — the sculpture sits on the right of the frame */
  .hero { height: auto; max-height: none; min-height: 0; display: flex; flex-direction: column; }
  .hero__inner { height: auto; order: 1; }
  .hero__copy { position: static; width: auto; padding: 120px var(--gutter) 40px; gap: 22px; }
  .hero__img { position: static; order: 2; aspect-ratio: 5 / 4; height: auto; object-position: 66% center; }
  .hero__video { position: static; order: 2; aspect-ratio: 5 / 4; height: auto; object-position: 66% center; }
  .hero__veil { display: none; }
  .hero h1 { font-size: clamp(48px, 14vw, 64px); }


  .principle { grid-template-columns: 36px minmax(0, 1fr); padding: 24px 0; }
  .principle p { font-size: 17px; }

  .site-footer__row { flex-direction: column; align-items: flex-start; gap: 24px; }
  .site-footer .nav { gap: 24px; }
  .site-footer__row--small { gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .o64-spin { animation: none; }
}
