/* ==========================================================
   STUDIO IOX — STYLESHEET
   Editorial / DixonBaxi-inspired system
   ========================================================== */

/* ----------------------------------------------------------
   1. THEME TOKENS
   ---------------------------------------------------------- */
:root,
[data-theme="dark"] {
  /* Surfaces */
  --bg:        #080808;
  --bg-alt:    #0d0d0d;
  --surface:   #111111;
  --surface-2: #151515;
  --card:      #1a1a1a;

  /* Lines */
  --line:      rgba(242, 238, 232, 0.10);
  --line-md:   rgba(242, 238, 232, 0.18);
  --line-lg:   rgba(242, 238, 232, 0.32);

  /* Text */
  --fg:        #F2EEE8;
  --muted:     rgba(242, 238, 232, 0.62);
  --faint:     rgba(242, 238, 232, 0.32);

  /* Accent */
  --red:       #D0341C;
  --red-dim:   rgba(208, 52, 28, 0.12);

  /* Inverted (for white text on red bg etc) */
  --on-red:    #FFFFFF;

  /* Mix / overlays */
  --shadow-overlay: rgba(8, 8, 8, 0.92);
}

[data-theme="light"] {
  --bg:        #F4F1EB;
  --bg-alt:    #ECE7DF;
  --surface:   #FFFFFF;
  --surface-2: #ECE7DF;
  --card:      #FFFFFF;

  --line:      rgba(17, 17, 17, 0.10);
  --line-md:   rgba(17, 17, 17, 0.20);
  --line-lg:   rgba(17, 17, 17, 0.36);

  --fg:        #111111;
  --muted:     rgba(17, 17, 17, 0.62);
  --faint:     rgba(17, 17, 17, 0.34);

  --red:       #D0341C;
  --red-dim:   rgba(208, 52, 28, 0.10);

  --on-red:    #FFFFFF;

  --shadow-overlay: rgba(244, 241, 235, 0.94);
}

/* Typography & layout tokens */
:root {
  --font-display: 'Archivo', 'Helvetica Neue', sans-serif;
  --font-body:    'Inter', 'Helvetica Neue', sans-serif;

  --gutter:    clamp(20px, 4.5vw, 56px);
  --section-y: clamp(80px, 10vw, 140px);

  --ease:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-2:  cubic-bezier(0.65, 0, 0.35, 1);
}

/* ----------------------------------------------------------
   2. RESET
   ---------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'ss01', 'cv11';
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }

::selection { background: var(--red); color: #fff; }

/* Scrollbar */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--red); }

/* ----------------------------------------------------------
   3. UTILITIES
   ---------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

section { padding: var(--section-y) 0; }

/* DASH — reusable horizontal rule before eyebrows */
.dash {
  display: inline-block;
  width: 28px;
  height: 1.5px;
  background: var(--red);
  flex-shrink: 0;
  margin-right: 12px;
  vertical-align: middle;
  position: relative;
  top: -3px;
}

/* Section labels */
.section-label {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 32px;
}

/* Section title — bold geometric */
.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(56px, 9vw, 144px);
  line-height: 0.92;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--fg);
}
.section-title em {
  font-style: normal;
  color: var(--red);
}

/* ----------------------------------------------------------
   4. NAVIGATION
   ---------------------------------------------------------- */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 76px;
  display: flex;
  align-items: center;
  background: transparent;
  transition: background 0.4s, border-color 0.4s, height 0.3s;
}
#navbar.is-scrolled {
  height: 64px;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.nav-row {
  width: 100%;
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  color: var(--fg);
  transition: color 0.3s;
}
.nav-logo-mark {
  height: 26px;
  width: auto;
}
.nav-logo-mark .logo-letters path { fill: currentColor; transition: fill 0.3s; }
.nav-logo-mark .logo-dot { fill: var(--red); }

.nav-menu {
  display: flex;
  justify-content: center;
  gap: 44px;
}
.nav-menu a {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  position: relative;
  padding: 6px 0;
  transition: color 0.3s;
}
.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  width: 0; height: 1px;
  background: var(--red);
  transition: width 0.4s var(--ease), left 0.4s var(--ease);
}
.nav-menu a:hover { color: var(--fg); }
.nav-menu a:hover::after { width: 100%; left: 0; }

.nav-tail {
  display: flex;
  align-items: center;
  gap: 14px;
}

.theme-toggle {
  width: 38px; height: 38px;
  border: 1px solid var(--line-md);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted);
  transition: color 0.3s, border-color 0.3s, transform 0.4s var(--ease);
  flex-shrink: 0;
}
.theme-toggle:hover { color: var(--fg); border-color: var(--fg); transform: rotate(20deg); }
.theme-toggle svg { width: 16px; height: 16px; }
.icon-sun { display: none; }
[data-theme="light"] .icon-moon { display: none; }
[data-theme="light"] .icon-sun { display: block; }

.nav-cta {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 12px 22px;
  background: var(--fg);
  color: var(--bg);
  transition: background 0.3s, color 0.3s, transform 0.3s;
}
.nav-cta:hover {
  background: var(--red);
  color: var(--on-red);
}

.hamburger {
  display: none;
  width: 38px; height: 38px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.hamburger span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--fg);
  transition: transform 0.3s var(--ease), opacity 0.3s;
}
.hamburger.is-open span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { transform: translateY(-3px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-menu { display: none; }
  .nav-cta  { display: none; }
  .hamburger { display: flex; }
}

/* Mobile menu */
#mobile-menu {
  position: fixed; inset: 0;
  z-index: 90;
  background: var(--bg);
  display: none;
  padding: 100px var(--gutter) 32px;
}
#mobile-menu.is-open { display: flex; flex-direction: column; }

.mobile-menu-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.mobile-menu-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-top: 1px solid var(--line);
}
.mobile-menu-nav a {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(40px, 9vw, 60px);
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--fg);
  transition: color 0.2s, padding-left 0.3s;
}
.mobile-menu-nav a:hover { color: var(--red); padding-left: 8px; }
.mobile-menu-nav .num {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.18em;
}

.mobile-menu-foot {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
}
.mobile-menu-foot a { color: var(--fg); }
.mobile-menu-foot p { color: var(--muted); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; }

/* ----------------------------------------------------------
   5. BUTTONS
   ---------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 16px 28px;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s var(--ease), color 0.3s, background 0.3s;
}
.btn svg {
  width: 14px; height: 14px;
  transition: transform 0.4s var(--ease);
}
.btn:hover svg { transform: translateX(4px); }

.btn-solid {
  background: var(--fg);
  color: var(--bg);
}
.btn-solid:hover {
  background: var(--red);
  color: var(--on-red);
}

.btn-outline {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--line-md);
}
.btn-outline:hover {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}

/* ----------------------------------------------------------
   6. HERO
   ---------------------------------------------------------- */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: stretch;
  background: var(--bg);
  padding: 100px var(--gutter) 32px;
}

.hero-frame {
  flex: 1;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: clamp(32px, 6vh, 80px);
  border: 1px solid var(--line);
  padding: clamp(24px, 4vw, 56px);
  position: relative;
  background: var(--bg-alt);
}

/* Corner accents */
.hero-frame::before,
.hero-frame::after {
  content: '';
  position: absolute;
  width: 14px; height: 14px;
  border-color: var(--red);
  border-style: solid;
  border-width: 0;
}
.hero-frame::before {
  top: -1px; left: -1px;
  border-top-width: 1.5px; border-left-width: 1.5px;
}
.hero-frame::after {
  bottom: -1px; right: -1px;
  border-bottom-width: 1.5px; border-right-width: 1.5px;
}

/* Top metadata row */
.hero-meta-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}
.meta-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.meta-block.right { text-align: right; align-items: flex-end; }
.meta-key { color: var(--muted); font-weight: 500; }
.meta-value { color: var(--fg); font-weight: 500; }

/* Headline */
.hero-headline-wrap {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-headline {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(72px, 13vw, 200px);
  line-height: 0.86;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  color: var(--fg);
}
.hero-headline em {
  font-style: normal;
  color: var(--red);
}
.hero-headline .line {
  display: block;
  overflow: hidden;
}
.hero-headline .line > span {
  display: block;
  transform: translateY(101%);
  animation: lineUp 1.1s var(--ease) forwards;
}
.hero-headline .line:nth-child(1) > span { animation-delay: 0.1s; }
.hero-headline .line:nth-child(2) > span { animation-delay: 0.22s; }
.hero-headline .line:nth-child(3) > span { animation-delay: 0.34s; }
@keyframes lineUp {
  to { transform: translateY(0); }
}

/* Foot of hero — eyebrow + description + CTAs */
.hero-foot {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: clamp(24px, 4vw, 64px);
  padding-top: clamp(24px, 4vw, 40px);
  border-top: 1px solid var(--line);
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 20px;
}

.hero-desc {
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 480px;
}

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

@media (max-width: 768px) {
  .hero-foot { grid-template-columns: 1fr; }
  .hero-actions { width: 100%; }
  .hero-actions .btn { flex: 1; }
}

/* Status pill outside frame */
.hero-status {
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  z-index: 5;
}
.status-dot {
  display: block;
  width: 8px; height: 8px;
  background: #4ade80;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.18);
  animation: dotPulse 2s infinite;
}
@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.18); }
  50%      { box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); }
}
@media (max-width: 600px) {
  .hero-status { display: none; }
}

/* ----------------------------------------------------------
   7. RIBBON / MARQUEE
   ---------------------------------------------------------- */
.ribbon {
  background: var(--fg);
  color: var(--bg);
  overflow: hidden;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.ribbon-track {
  display: flex;
  white-space: nowrap;
  animation: marquee 38s linear infinite;
  width: max-content;
}
.ribbon-track span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(20px, 2.4vw, 32px);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 0 32px;
}
.ribbon-track .bullet {
  font-size: 8px;
  color: var(--red);
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
}
@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ----------------------------------------------------------
   8. INTRO STATEMENT
   ---------------------------------------------------------- */
.intro {
  padding: clamp(80px, 12vw, 160px) 0;
  background: var(--bg);
}
.intro-eyebrow {
  display: flex;
  align-items: center;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 40px;
}
.intro-statement {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 4.4vw, 64px);
  line-height: 1.1;
  letter-spacing: -0.018em;
  color: var(--fg);
  max-width: 1200px;
}
.intro-statement em {
  font-style: normal;
  color: var(--red);
  font-weight: 800;
}

/* ----------------------------------------------------------
   9. WORK SECTION
   ---------------------------------------------------------- */
.work {
  background: var(--surface);
  padding-top: 0;
}

.work-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  padding: var(--section-y) 0 clamp(48px, 6vw, 80px);
  flex-wrap: wrap;
}
.section-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border: 1px solid var(--line-md);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg);
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.section-link svg { width: 14px; height: 14px; transition: transform 0.4s var(--ease); }
.section-link:hover {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}
.section-link:hover svg { transform: translateX(4px); }

.work-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
}

.work-item {
  grid-column: span 3; /* default: half width */
  position: relative;
}
.work-item.work-large { grid-column: span 6; }
.work-item.work-third { grid-column: span 2; }

@media (max-width: 1024px) {
  .work-item.work-third { grid-column: span 3; }
}
@media (max-width: 768px) {
  .work-grid { gap: 24px; }
  .work-item, .work-item.work-large, .work-item.work-third { grid-column: span 6; }
}

.work-link {
  display: block;
  position: relative;
}

.work-thumb {
  position: relative;
  aspect-ratio: 4/3;
  background: var(--card);
  overflow: hidden;
}
.work-large .work-thumb { aspect-ratio: 21/9; }
.work-third .work-thumb { aspect-ratio: 4/5; }

@media (max-width: 768px) {
  .work-large .work-thumb { aspect-ratio: 16/10; }
  .work-third .work-thumb { aspect-ratio: 4/3; }
}

.work-thumb-img {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1);
  transition: transform 0.8s var(--ease), filter 0.6s;
  filter: brightness(0.92);
}
.work-link:hover .work-thumb-img {
  transform: scale(1.04);
  filter: brightness(0.7);
}

.work-thumb-tag {
  position: absolute;
  top: 16px; left: 16px;
  padding: 6px 10px;
  background: var(--bg);
  color: var(--fg);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  z-index: 2;
}
[data-theme="light"] .work-thumb-tag {
  background: var(--fg);
  color: var(--bg);
}

.work-foot {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 12px;
  padding: 18px 4px 0;
}
.work-foot-l { display: flex; flex-direction: column; gap: 6px; }
.work-no {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.work-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(18px, 1.8vw, 24px);
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--fg);
  line-height: 1;
}
.work-year {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--muted);
}

/* ----------------------------------------------------------
   10. SERVICES
   ---------------------------------------------------------- */
.services {
  background: var(--bg);
}

.services-head {
  margin-bottom: clamp(48px, 7vw, 96px);
  max-width: 1200px;
}
.services-title {
  margin-top: 24px;
}

.services-list {
  border-top: 1px solid var(--line);
}

.service-row {
  display: grid;
  grid-template-columns: 80px 1.4fr 1.6fr 1fr;
  align-items: baseline;
  gap: clamp(20px, 3.5vw, 48px);
  padding: clamp(28px, 3.8vw, 44px) 0;
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: padding 0.4s var(--ease), background 0.4s;
}
.service-row::before {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 0; bottom: 0;
  background: var(--surface-2);
  opacity: 0;
  transition: opacity 0.4s;
  z-index: 0;
}
.service-row > * { position: relative; z-index: 1; }
.service-row:hover::before { opacity: 1; }
.service-row:hover { padding-left: 24px; padding-right: 24px; }

.service-num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--muted);
  transition: color 0.4s;
}
.service-row:hover .service-num { color: var(--red); }

.service-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 4.2vw, 56px);
  line-height: 1;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  color: var(--fg);
  transition: color 0.4s;
}
.service-row:hover .service-name { color: var(--red); }

.service-desc {
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 460px;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-self: end;
  align-self: center;
}
.service-tags span {
  display: inline-block;
  padding: 5px 11px;
  border: 1px solid var(--line-md);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  transition: border-color 0.3s, color 0.3s;
}
.service-row:hover .service-tags span {
  border-color: var(--red);
  color: var(--fg);
}

@media (max-width: 1100px) {
  .service-row { grid-template-columns: 50px 1.2fr 1.6fr; }
  .service-tags { display: none; }
}
@media (max-width: 700px) {
  .service-row {
    grid-template-columns: 36px 1fr;
    grid-template-rows: auto auto;
    align-items: start;
    gap: 12px 16px;
  }
  .service-name { grid-column: 2; }
  .service-desc { grid-column: 1 / -1; }
  .service-row:hover { padding-left: 12px; padding-right: 12px; }
}

/* ----------------------------------------------------------
   11. ABOUT
   ---------------------------------------------------------- */
.about {
  background: var(--surface);
  padding: var(--section-y) 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
  margin-bottom: clamp(64px, 9vw, 120px);
}
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; gap: 48px; } }

.about-l { }
.about-statement {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(36px, 4.6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  color: var(--fg);
  margin-top: 24px;
}
.about-statement em {
  font-style: normal;
  color: var(--red);
}

.about-r { padding-top: 8px; }
.about-body {
  font-size: 16px;
  line-height: 1.72;
  color: var(--muted);
  margin-bottom: 24px;
  max-width: 560px;
}
.about-body strong { color: var(--fg); font-weight: 600; }

.about-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  margin-top: 40px;
  border-top: 1px solid var(--line);
}
.about-meta-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.about-meta-item:nth-child(odd) { border-right: 1px solid var(--line); padding-right: 24px; }
.about-meta-item:nth-child(even) { padding-left: 24px; }
@media (max-width: 600px) {
  .about-meta-grid { grid-template-columns: 1fr; }
  .about-meta-item:nth-child(odd) { border-right: none; padding-right: 0; }
  .about-meta-item:nth-child(even) { padding-left: 0; }
}
.about-meta-key {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.about-meta-val {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  text-transform: uppercase;
  color: var(--fg);
}

/* Three principles */
.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  background: var(--line);
}
@media (max-width: 800px) { .principles { grid-template-columns: 1fr; } }

.principle {
  background: var(--bg);
  padding: clamp(28px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: background 0.4s, transform 0.4s var(--ease);
}
.principle:hover {
  background: var(--surface-2);
  transform: translateY(-4px);
}
.principle-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.principle-letter {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(60px, 7vw, 120px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--red);
}
.principle-no {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.16em;
  color: var(--muted);
}
.principle-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fg);
  margin-top: 16px;
}
.principle-desc {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--muted);
}

/* ----------------------------------------------------------
   12. CONTACT
   ---------------------------------------------------------- */
.contact {
  background: var(--bg);
  padding-top: 0;
}

.contact-marquee {
  background: var(--red);
  color: var(--on-red);
  overflow: hidden;
  padding: 28px 0;
  margin-bottom: var(--section-y);
}
.contact-marquee-track {
  display: flex;
  white-space: nowrap;
  animation: marquee 30s linear infinite;
  width: max-content;
}
.contact-marquee-track span {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(40px, 6vw, 80px);
  letter-spacing: -0.025em;
  text-transform: uppercase;
  padding: 0 32px;
}
.contact-marquee-track i {
  font-style: normal;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(40px, 6vw, 80px);
  padding: 0 8px;
  opacity: 0.6;
}

.contact-grid {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: clamp(40px, 6vw, 96px);
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 56px; } }

.contact-l { }
.contact-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(56px, 7.5vw, 112px);
  line-height: 0.9;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--fg);
  margin: 24px 0;
}
.contact-title em {
  font-style: normal;
  color: var(--red);
}
.contact-lead {
  font-size: 16px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 380px;
  margin-bottom: 48px;
}

.contact-list {
  border-top: 1px solid var(--line);
  margin-bottom: 48px;
}
.contact-row {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left 0.4s var(--ease), color 0.3s;
}
.contact-row:hover { padding-left: 12px; }
.contact-row-key {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-row-val {
  font-size: 15px;
  font-weight: 500;
  color: var(--fg);
}
.contact-row-arrow {
  font-size: 16px;
  color: var(--muted);
  transition: color 0.3s, transform 0.4s var(--ease);
}
.contact-row:hover .contact-row-val { color: var(--red); }
.contact-row:hover .contact-row-arrow { color: var(--red); transform: translate(4px, -4px); }

@media (max-width: 600px) {
  .contact-row { grid-template-columns: 1fr auto; }
  .contact-row-key { grid-column: span 2; margin-bottom: -8px; font-size: 10px; }
}

.contact-socials {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 24px;
  padding-top: 8px;
}
.contact-socials-key {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-socials a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fg);
  position: relative;
  transition: color 0.3s;
}
.contact-socials a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1.5px;
  background: var(--red);
  transition: width 0.4s var(--ease);
}
.contact-socials a:hover { color: var(--red); }
.contact-socials a:hover::after { width: 100%; }

/* Contact form */
.contact-form {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: clamp(28px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  gap: 24px;
}
[data-theme="light"] .contact-form {
  background: var(--surface);
}

.form-eyebrow {
  display: flex;
  align-items: center;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 8px;
}

.form-row { display: grid; grid-template-columns: 1fr; gap: 24px; }
.form-row.two { grid-template-columns: 1fr 1fr; }
@media (max-width: 480px) { .form-row.two { grid-template-columns: 1fr; } }

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-field label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.form-field input,
.form-field select,
.form-field textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line-md);
  padding: 12px 0;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  color: var(--fg);
  outline: none;
  transition: border-color 0.3s;
  -webkit-appearance: none;
  appearance: none;
  border-radius: 0;
}
.form-field select { color: var(--muted); }
.form-field select:focus, .form-field select.has-value { color: var(--fg); }
.form-field select option { background: var(--bg); color: var(--fg); }
.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--faint); }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus { border-bottom-color: var(--red); }
.form-field textarea { resize: none; min-height: 100px; }

.form-submit {
  align-self: flex-start;
  margin-top: 8px;
}
.form-note {
  font-size: 12px;
  line-height: 1.55;
  color: var(--muted);
  min-height: 16px;
}
.form-note.is-error { color: var(--red); }

/* ----------------------------------------------------------
   13. FOOTER
   ---------------------------------------------------------- */
.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.footer-massive {
  text-align: center;
  padding: clamp(48px, 7vw, 80px) 0 0;
  pointer-events: none;
  user-select: none;
}
.footer-massive span {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(72px, 22vw, 320px);
  letter-spacing: -0.04em;
  line-height: 0.85;
  color: transparent;
  -webkit-text-stroke: 1px var(--line-lg);
  white-space: nowrap;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: clamp(40px, 5vw, 64px) 0 24px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
  gap: 16px;
}
.footer-tagline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.06em;
  color: var(--fg);
}
.footer-loc {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-feature-settings: 'tnum';
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p {
  font-size: 12px;
  color: var(--muted);
}
.footer-bottom-links {
  display: flex;
  gap: 16px;
}
.footer-bottom-links a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--muted);
  transition: color 0.25s;
}
.footer-bottom-links a:hover { color: var(--red); }

/* ----------------------------------------------------------
   14. REDUCED MOTION
   ---------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hero-headline .line > span { transform: none !important; }
}

/* ----------------------------------------------------------
   15. UTILITIES — small responsive tweaks
   ---------------------------------------------------------- */
@media (max-width: 480px) {
  :root { --gutter: 20px; }
  .hero { padding: 88px 16px 24px; }
  .hero-frame { padding: 20px; }
  .footer-massive span { letter-spacing: -0.05em; }
}
