/* ==========================================================================
   Overweight Holdings — Design System
   Sophisticated Portfolio (Light) · Modern Editorial · Quiet Luxury
   ========================================================================== */

/* ---------- Design Tokens ---------- */
:root {
  /* Surface & ink */
  --surface: #fcf8f9;
  --surface-dim: #f2edee;
  --surface-container-lowest: #ffffff;
  --surface-container-low: #f7f3f4;
  --surface-container: #f1eded;
  --surface-container-high: #ebe7e8;
  --surface-container-highest: #e5e2e2;

  --ink: #12151c;            /* on-surface / primary */
  --ink-variant: #46464b;    /* on-surface-variant */
  --ink-soft: #5c5e67;

  /* Accents */
  --coral: #cf4636;          /* accent text — vivid but legible */
  --coral-bright: #fd6e5f;
  --coral-deep: #ac3329;
  --gold: #9a7808;           /* accent text — readable on cream */
  --gold-bright: #c59d2e;

  /* Lines & atmosphere */
  --outline: #76777c;
  --outline-variant: #c6c6cb;
  --hairline: rgba(18, 21, 28, 0.08);
  --hairline-soft: rgba(18, 21, 28, 0.05);

  /* Type */
  --font-serif: "Libre Caslon Text", "Playfair Display", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Rhythm (8px base) */
  --xs: 4px;
  --sm: 12px;
  --base: 8px;
  --md: 24px;
  --lg: 48px;
  --xl: 80px;
  --gutter: 24px;
  --margin: 16px;
  --max-w: 1280px;

  /* Radii */
  --r-sm: 0.25rem;
  --r: 0.5rem;
  --r-md: 0.75rem;
  --r-lg: 1rem;
  --r-xl: 1.5rem;
  --r-2xl: 2rem;
  --r-full: 9999px;

  /* Depth (ambient, ink-tinted) */
  --shadow-sm: 0 1px 2px rgba(18, 21, 28, 0.04);
  --shadow-md: 0 12px 32px rgba(18, 21, 28, 0.06);
  --shadow-lg: 0 24px 60px rgba(18, 21, 28, 0.08);
  --shadow-coral: 0 14px 34px rgba(172, 51, 41, 0.28);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (min-width: 768px) {
  :root { --margin: 64px; }
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection {
  background: rgba(172, 51, 41, 0.16);
  color: var(--ink);
}

img,
svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

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

:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

/* ---------- Layout Primitives ---------- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--margin);
}

.section { padding-block: clamp(64px, 10vw, 120px); }
.section--tight { padding-block: clamp(56px, 8vw, 96px); }

.eyebrow {
  display: block;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: var(--md);
}

/* ---------- Typography ---------- */
.serif { font-family: var(--font-serif); font-weight: 400; }

.display {
  font-family: var(--font-serif);
  font-size: clamp(42px, 7vw, 74px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  font-weight: 400;
}

.h2 {
  font-family: var(--font-serif);
  font-size: clamp(32px, 4.6vw, 48px);
  line-height: 1.14;
  letter-spacing: -0.01em;
  font-weight: 400;
}

.h3 {
  font-family: var(--font-serif);
  font-size: clamp(26px, 3vw, 32px);
  line-height: 1.2;
  font-weight: 400;
}

.h4 {
  font-family: var(--font-serif);
  font-size: 22px;
  line-height: 1.3;
  font-weight: 400;
}

.lead {
  font-size: clamp(17px, 1.6vw, 19px);
  line-height: 1.65;
  color: var(--ink-variant);
}

.body { color: var(--ink-variant); line-height: 1.7; }

.italic-coral { font-style: italic; color: var(--coral); }
.italic-gold { font-style: italic; color: var(--gold); }

/* ---------- Buttons ---------- */
.btn {
  --_pad-y: 14px;
  --_pad-x: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: var(--_pad-y) var(--_pad-x);
  border-radius: var(--r);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
    background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
  white-space: nowrap;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--coral-bright) 0%, var(--coral-deep) 100%);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-coral);
}

.btn-secondary {
  color: var(--ink);
  background: transparent;
  border-color: var(--hairline);
}
.btn-secondary:hover {
  background: rgba(18, 21, 28, 0.04);
  border-color: rgba(18, 21, 28, 0.14);
}

.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  transition: gap 0.3s var(--ease), color 0.3s var(--ease);
}
.link-arrow svg { width: 15px; height: 15px; transition: transform 0.3s var(--ease); }
.link-arrow.coral { color: var(--coral); }
.link-arrow.gold { color: var(--gold); }
.link-arrow:hover { gap: 12px; }
.link-arrow:hover svg { transform: translate(2px, -2px); }

/* ---------- Chips / Tags ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: var(--r-full);
}
.chip--outline {
  color: var(--ink-soft);
  border: 1px solid var(--hairline);
  background: transparent;
}
.chip--coral {
  color: var(--coral-deep);
  border: 1px solid rgba(172, 51, 41, 0.22);
  background: rgba(172, 51, 41, 0.06);
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(252, 248, 249, 0.72);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s var(--ease), background-color 0.4s var(--ease),
    box-shadow 0.4s var(--ease);
}
.nav.is-scrolled {
  border-bottom-color: var(--hairline);
  box-shadow: 0 1px 0 rgba(18, 21, 28, 0.02), 0 10px 30px rgba(18, 21, 28, 0.04);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-serif);
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.brand__mark { width: 30px; height: 30px; flex: none; }

.nav__links {
  display: none;
  align-items: center;
  gap: 40px;
}
.nav__link {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(18, 21, 28, 0.66);
  transition: color 0.3s var(--ease);
}
.nav__link:hover { color: var(--coral); }

.nav__toggle {
  display: inline-flex;
  padding: 8px;
  margin-right: -8px;
  background: none;
  border: none;
  color: var(--ink);
  cursor: pointer;
}
.nav__toggle svg { width: 26px; height: 26px; }

@media (min-width: 880px) {
  .nav__links { display: flex; }
  .nav__toggle { display: none; }
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 80px 0 auto 0;
  z-index: 99;
  background: rgba(252, 248, 249, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--hairline);
  padding: var(--md) var(--margin) var(--lg);
  display: flex;
  flex-direction: column;
  gap: 4px;
  transform: translateY(-12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.mobile-menu.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
.mobile-menu a:not(.btn) {
  font-family: var(--font-serif);
  font-size: 22px;
  padding: 14px 0;
  border-bottom: 1px solid var(--hairline-soft);
  color: var(--ink);
}
.mobile-menu .btn { margin-top: var(--md); }
@media (min-width: 880px) { .mobile-menu { display: none; } }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  overflow: hidden;
  text-align: center;
}
.hero__glow {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: radial-gradient(circle at 50% 32%, rgba(253, 110, 95, 0.09) 0%, rgba(252, 248, 249, 0) 60%);
  transition: background 0.2s linear;
}
.hero__orb {
  position: absolute;
  top: 18%;
  right: -14%;
  width: 520px;
  height: 520px;
  border-radius: var(--r-full);
  background: rgba(172, 51, 41, 0.06);
  filter: blur(120px);
  z-index: -1;
  pointer-events: none;
}
.hero__orb--gold {
  top: auto;
  bottom: 6%;
  right: auto;
  left: -12%;
  width: 420px;
  height: 420px;
  background: rgba(197, 157, 46, 0.06);
}
.hero__content { max-width: 860px; margin-inline: auto; }
.hero .display { margin-block: 28px; }
.hero .lead { max-width: 620px; margin-inline: auto; margin-bottom: var(--lg); }

.hero__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
@media (min-width: 560px) {
  .hero__actions { flex-direction: row; }
  .hero__actions .btn { width: auto; }
}

.scroll-cue {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.scroll-cue svg { width: 18px; height: 18px; animation: bob 2.4s var(--ease) infinite; }
@keyframes bob {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50% { transform: translateY(5px); opacity: 1; }
}

/* ==========================================================================
   Mission
   ========================================================================== */
.mission { background: var(--surface-container-lowest); }
.mission__grid {
  display: grid;
  gap: clamp(40px, 6vw, 72px);
  align-items: center;
}
@media (min-width: 900px) {
  .mission__grid { grid-template-columns: 1fr 1fr; }
}
.mission__copy p + p { margin-top: var(--md); }
.mission__copy .h2 { margin-block: var(--md) var(--lg); }

.mission__figure { position: relative; }
.mission__frame {
  position: relative;
  z-index: 2;
  padding: clamp(20px, 4vw, 44px);
  background: var(--surface-container);
  border: 1px solid var(--hairline-soft);
  border-radius: var(--r-2xl);
}
.mission__art {
  aspect-ratio: 1;
  width: 100%;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--hairline-soft);
  box-shadow: var(--shadow-sm);
}
.mission__art svg { width: 100%; height: 100%; }
.mission__figure::after {
  content: "";
  position: absolute;
  bottom: -40px;
  left: -40px;
  width: 200px;
  height: 200px;
  background: rgba(172, 51, 41, 0.12);
  filter: blur(60px);
  z-index: 1;
  border-radius: var(--r-full);
}

/* ==========================================================================
   Portfolio
   ========================================================================== */
.portfolio { position: relative; }
.section-head { text-align: center; max-width: 620px; margin: 0 auto clamp(48px, 7vw, 80px); }
.section-head .h2 { margin-bottom: var(--md); }

.portfolio__grid {
  display: grid;
  gap: var(--gutter);
}
@media (min-width: 980px) {
  .portfolio__grid { grid-template-columns: 1fr 1fr; }
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 480px;
  padding: clamp(28px, 4vw, 48px);
  border-radius: var(--r-2xl);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.5s var(--ease);
}
.card::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 260px;
  height: 260px;
  border-radius: var(--r-full);
  filter: blur(90px);
  opacity: 0.5;
  z-index: 0;
  transition: opacity 0.5s var(--ease);
}
.card--coral::before { background: rgba(253, 110, 95, 0.16); }
.card--gold::before { background: rgba(197, 157, 46, 0.14); }
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: rgba(18, 21, 28, 0.12); }
.card:hover::before { opacity: 0.85; }
.card > * { position: relative; z-index: 1; }

.card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: var(--lg);
}
.card__icon {
  width: 60px;
  height: 60px;
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.card__icon svg { width: 30px; height: 30px; }
.card__icon--coral {
  background: linear-gradient(135deg, var(--coral-bright), var(--coral-deep));
  color: #fff;
  box-shadow: var(--shadow-coral);
}
.card__icon--gold {
  background: var(--surface-container);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-sm);
}
.card__title { margin-bottom: var(--sm); }
.card__quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 20px;
  line-height: 1.4;
  margin-bottom: var(--md);
}
.card__desc { color: rgba(70, 70, 75, 0.9); line-height: 1.65; }

.card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: var(--lg);
  gap: var(--md);
}

/* Stacked avatars */
.avatars { display: flex; }
.avatars span {
  width: 40px;
  height: 40px;
  border-radius: var(--r-full);
  border: 2px solid #fff;
  margin-left: -14px;
  box-shadow: var(--shadow-sm);
}
.avatars span:first-child { margin-left: 0; }
.avatars .a1 { background: linear-gradient(135deg, #fd6e5f, #ac3329); }
.avatars .a2 { background: linear-gradient(135deg, #f0c47a, #9a7808); }
.avatars .a3 { background: linear-gradient(135deg, #8b8d97, #46464b); }

.card__icons { display: flex; align-items: center; gap: 16px; color: rgba(154, 120, 8, 0.55); }
.card__icons svg { width: 22px; height: 22px; }

/* ==========================================================================
   Philosophy
   ========================================================================== */
.philosophy { background: var(--surface-container-low); }
.philosophy__grid {
  display: grid;
  gap: clamp(40px, 5vw, 64px);
}
@media (min-width: 960px) {
  .philosophy__grid { grid-template-columns: 1fr 1.6fr; align-items: start; }
}
.philosophy__intro .h2 { margin-top: var(--md); }

.principles {
  display: grid;
  gap: clamp(32px, 4vw, 48px) var(--gutter);
}
@media (min-width: 620px) { .principles { grid-template-columns: 1fr 1fr; } }
.principle { position: relative; padding-top: var(--md); border-top: 1px solid var(--hairline); }
.principle .h4 { margin-bottom: var(--sm); }
.principle__num {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--coral);
  display: block;
  margin-bottom: var(--sm);
}
.principle p { color: var(--ink-variant); line-height: 1.65; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  border-top: 1px solid var(--hairline);
  background: var(--surface-container-low);
  padding-block: clamp(48px, 7vw, 80px);
}
.footer__inner {
  display: flex;
  flex-direction: column;
  gap: var(--lg);
  justify-content: space-between;
}
@media (min-width: 800px) {
  .footer__inner { flex-direction: row; align-items: flex-start; gap: 0; }
}
.footer__brand { max-width: 320px; }
.footer__brand .name {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 38px);
  color: var(--ink);
  margin-bottom: var(--md);
}
.footer__brand p {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-variant);
  line-height: 1.7;
}
.footer__bottom {
  margin-top: clamp(40px, 6vw, 64px);
  padding-top: var(--md);
  border-top: 1px solid var(--hairline-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  font-size: 12px;
  color: var(--ink-soft);
}

/* ==========================================================================
   Scroll Reveal
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }

@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;
  }
  .reveal { opacity: 1; transform: none; }
}
