/* ==========================================================================
   Monster Equities — site styles
   Tokens first, then shared patterns, then sections, then responsive.
   No border-radius, no box-shadows: both are intentional in this design.
   ========================================================================== */

/* --- Fonts (self-hosted, Google Fonts subsets) ---------------------------- */

/* Space Grotesk — variable weight 300–700 */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/space-grotesk-vietnamese.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/space-grotesk-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/space-grotesk-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Instrument Serif — italic 400 only */
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/instrument-serif-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/instrument-serif-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --- Tokens --------------------------------------------------------------- */

:root {
  /* Neutrals */
  --page:            #fafaf9;
  --ink:             #16161a;
  --ink-muted:       #52524f;
  --gray-label:      #6f6f6c;
  --gray-meta:       #9c9c98;
  --hero-meta:       #4c4a44;
  --hairline:        #e6e6e2;
  --input-hairline:  #cfcfca;

  /* Warm surfaces */
  --warm-surface:       #f3f3ef;
  --warm-surface-light: #fdf8ee;
  --warm-hover:         #faf5ea;
  --belief-body:        #6f6252;

  /* Gold */
  --gold:        #b06e14;
  --gold-deep:   #a86b12;
  --gold-dark:   #7c5510;
  --gold-mark:   #c9861f;
  --gold-bright: #e0a43c;

  /* Dark band */
  --dark:           #191611;
  --dark-hairline:  #2f2a21;
  --dark-body:      #aba396;
  --dark-label:     #9a9288;

  /* Type */
  --font-body:    Helvetica, Arial, sans-serif;
  --font-display: 'Space Grotesk', Helvetica, Arial, sans-serif;
  --font-accent:  'Instrument Serif', Georgia, serif;

  /* Layout */
  --pad-x: 48px;
}

/* --- Base ----------------------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
  /* keeps anchored sections clear of the fixed nav */
  scroll-padding-top: 96px;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--page);
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: var(--ink);
  text-decoration: none;
  transition: color 140ms ease;
}
@media (hover: hover) {
  a:hover { color: var(--gold); }
}

::selection {
  background: var(--ink);
  color: var(--page);
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

img, svg, canvas { display: block; }

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--ink);
  color: var(--page);
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.12em;
  padding: 14px 22px;
}
.skip-link:focus {
  left: 0;
  color: var(--page);
}

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

/* --- Shared patterns ------------------------------------------------------ */

.wrap {
  max-width: 1200px;
  margin: 0 auto;
}

.section-label {
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--gray-label);
  margin: 0 0 64px;
}

.accent {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 400;
  color: var(--gold);
}

.logo-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.14em;
  white-space: nowrap;
}

/* --- Nav ------------------------------------------------------------------ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px var(--pad-x);
  mix-blend-mode: multiply;
}

.nav-links {
  display: flex;
  gap: 36px;
  font-size: 13px;
  letter-spacing: 0.1em;
}

.nav-links a.is-inquire {
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}

/* Over the dark Philosophy band, multiply blending would erase the nav.
   Swap to normal blending and light ink instead. */
.nav.is-inverted {
  mix-blend-mode: normal;
  color: var(--page);
}
.nav.is-inverted a { color: var(--page); }

/* Enlarged tap targets — visual size unchanged, hit area grown to ~44px */
.nav-links a,
.direct-list a,
.footer-credit a {
  position: relative;
}
.nav-links a::after,
.direct-list a::after,
.footer-credit a::after {
  content: '';
  position: absolute;
  inset: -13px -10px;
}

/* --- Hero ----------------------------------------------------------------- */

.hero {
  position: relative;
  /* 100vh on iOS Safari is taller than the visible area, which pushes the
     meta row under the browser chrome. svh is the actual visible height. */
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  /* Fallback for browsers without image-set() */
  background:
    linear-gradient(180deg, rgba(250, 250, 249, 0) 45%, rgba(250, 250, 249, 0.5) 100%),
    url('../img/hero-arch-1672.jpg') center / cover no-repeat;
  background:
    linear-gradient(180deg, rgba(250, 250, 249, 0) 45%, rgba(250, 250, 249, 0.5) 100%),
    image-set(
      url('../img/hero-arch-1672.webp') type('image/webp'),
      url('../img/hero-arch-1672.jpg') type('image/jpeg')
    ) center / cover no-repeat;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.55;
  mix-blend-mode: screen;
  pointer-events: none;
}

.hero-text {
  position: relative;
  padding: 0 var(--pad-x) 72px;
  max-width: 1200px;
  animation: fadeUp 1s ease both;
}

.hero-eyebrow {
  font-size: 13px;
  letter-spacing: 0.22em;
  color: var(--gold-dark);
  font-weight: bold;
  margin: 0 0 28px;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(36px, 6.4vw, 96px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 0;
  text-wrap: balance;
  max-width: 16ch;
}

.hero-meta {
  position: relative;
  padding: 0 var(--pad-x) 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--hero-meta);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* --- 01 Belief ------------------------------------------------------------ */

.belief {
  padding: 180px var(--pad-x);
  background-color: var(--warm-surface-light);
  background-image:
    radial-gradient(1000px 650px at 78% 10%, rgba(240, 178, 60, 0.28), transparent 60%),
    radial-gradient(700px 500px at 5% 100%, rgba(240, 178, 60, 0.14), transparent 65%);
  color: var(--ink);
}

.belief .wrap { max-width: 1280px; }

.belief .section-label {
  color: var(--gold-deep);
  margin-bottom: 56px;
}

.belief-statement {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(34px, 5.8vw, 92px);
  line-height: 1.06;
  letter-spacing: -0.03em;
  margin: 0;
  max-width: 17ch;
  text-wrap: balance;
}

.belief-support {
  margin: 48px 0 0;
  font-size: 17px;
  line-height: 1.65;
  color: var(--belief-body);
  max-width: 44ch;
  text-wrap: pretty;
}

/* --- 02 Thesis ------------------------------------------------------------ */

.thesis {
  padding: 120px var(--pad-x) 160px;
  border-top: 1px solid var(--hairline);
}

/* 1px gap over a gray background draws the hairline dividers */
.thesis-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
}

.thesis-cell {
  background: var(--page);
  padding: 48px 36px 64px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: background 160ms ease;
}
@media (hover: hover) {
  .thesis-cell:hover { background: var(--warm-hover); }
}

.thesis-num {
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--gold);
  letter-spacing: 0.1em;
}

.thesis-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 28px;
  letter-spacing: -0.02em;
  margin: 0;
}

.thesis-body {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-muted);
  margin: 0;
  text-wrap: pretty;
}

/* --- 03 Philosophy -------------------------------------------------------- */

.philosophy {
  padding: 120px var(--pad-x) 160px;
  background: var(--dark);
  color: var(--page);
}

.philosophy .section-label { color: var(--dark-label); }

.philosophy-rows {
  display: flex;
  flex-direction: column;
}

.philosophy-row {
  display: grid;
  grid-template-columns: 80px 1fr 1.2fr;
  gap: 32px;
  align-items: baseline;
  padding: 40px 0;
  border-top: 1px solid var(--dark-hairline);
}

.philosophy-num {
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--gold-bright);
}

.philosophy-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(22px, 2.4vw, 32px);
  letter-spacing: -0.02em;
  margin: 0;
}

.philosophy-body {
  font-size: 15px;
  line-height: 1.65;
  color: var(--dark-body);
  margin: 0;
  text-wrap: pretty;
}

/* --- 04 Inquire ----------------------------------------------------------- */

.inquire {
  padding: 140px var(--pad-x) 160px;
  background: var(--warm-surface);
}

.inquire .wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}

.inquire .section-label { margin-bottom: 28px; }

.inquire-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(30px, 3.6vw, 52px);
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0 0 24px;
  text-wrap: balance;
}

.inquire-body {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-muted);
  margin: 0;
  max-width: 40ch;
  text-wrap: pretty;
}

/* Direct contact — sits under the Inquire copy */
.direct {
  margin: 56px 0 0;
  padding-top: 28px;
  border-top: 1px solid var(--input-hairline);
}

.direct-label {
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--gray-label);
  margin: 0 0 16px;
}

.direct-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
}

.direct-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-muted);
}

.direct-list a {
  color: var(--ink-muted);
  border-bottom: 1px solid var(--input-hairline);
  padding-bottom: 1px;
}

@media (hover: hover) {
  .direct-list a:hover {
    color: var(--gold);
    border-bottom-color: var(--gold);
  }
}

.form {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field > span {
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--gray-label);
}

.field input,
.field textarea {
  border: none;
  border-bottom: 1px solid var(--input-hairline);
  background: transparent;
  padding: 8px 0;
  font-size: 16px;
  font-family: var(--font-body);
  color: var(--ink);
  outline: none;
  border-radius: 0;
  transition: border-color 140ms ease;
}
.field input:focus,
.field textarea:focus {
  border-bottom-color: var(--gold);
}
.field input:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}
.field textarea { resize: vertical; }

/* Honeypot — hidden from humans, visible to bots */
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.submit {
  align-self: flex-start;
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.12em;
  background: var(--ink);
  color: var(--page);
  border: none;
  border-radius: 0;
  padding: 16px 36px;
  cursor: pointer;
  transition: background 140ms ease;
}
@media (hover: hover) {
  .submit:hover { background: var(--gold); }
}
.submit[disabled] { cursor: progress; opacity: 0.6; }

.form-error {
  font-size: 14px;
  line-height: 1.6;
  color: #9c2b12;
  margin: 0;
}

.form-error a {
  color: #9c2b12;
  border-bottom: 1px solid #9c2b12;
}
.form-error a:hover { color: var(--gold); border-bottom-color: var(--gold); }

.form-success {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--hairline);
  padding: 48px;
  text-align: center;
}

.form-success p {
  font-family: var(--font-display);
  font-size: 22px;
  margin: 0;
}

[hidden] { display: none !important; }

/* --- Footer --------------------------------------------------------------- */

.footer {
  padding: 56px var(--pad-x);
  border-top: 1px solid var(--hairline);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.footer .wordmark { font-size: 13px; }

.footer-credit {
  font-size: 13px;
  color: var(--gray-label);
}

.footer-copyright {
  font-size: 12px;
  color: var(--gray-meta);
}

/* --- Responsive ----------------------------------------------------------- */

@media (max-width: 1200px) {
  .hero { background-image:
    linear-gradient(180deg, rgba(250, 250, 249, 0) 45%, rgba(250, 250, 249, 0.5) 100%),
    image-set(
      url('../img/hero-arch-1200.webp') type('image/webp'),
      url('../img/hero-arch-1200.jpg') type('image/jpeg')
    );
  }
}

@media (max-width: 900px) {
  .thesis-grid {
    grid-template-columns: 1fr;
  }

  .philosophy-row {
    grid-template-columns: 80px 1fr;
    row-gap: 16px;
  }
  .philosophy-body {
    grid-column: 1 / -1;
  }

  .inquire .wrap {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  :root { --pad-x: 24px; }

  html { scroll-padding-top: 80px; }

  /* A tall, narrow crop of a landscape photo loses the arch off-frame.
     Nudge the focal point right so it stays centred. */
  .hero { background-position: center, 62% center; }
  .hero-canvas { opacity: 0.42; }

  .nav { padding: 22px var(--pad-x); }
  .nav-links { gap: 0; }
  .nav-links a.is-thesis,
  .nav-links a.is-philosophy { display: none; }

  .wordmark { font-size: 13px; }

  .hero-text { padding-bottom: 48px; }
  .hero-eyebrow {
    font-size: 11px;
    letter-spacing: 0.2em;
    margin-bottom: 20px;
  }
  .hero-meta { padding-bottom: 28px; font-size: 11px; }

  .belief { padding: 104px var(--pad-x); }
  .belief .section-label { margin-bottom: 32px; }
  .belief-support { margin-top: 32px; }

  .thesis { padding: 72px var(--pad-x) 96px; }
  .thesis-cell { padding: 36px 24px 44px; }

  .philosophy { padding: 72px var(--pad-x) 96px; }
  .philosophy-row { padding: 32px 0; }

  .inquire { padding: 84px var(--pad-x) 96px; }
  .direct { margin-top: 40px; }

  .section-label { margin-bottom: 40px; }

  .footer { padding: 40px var(--pad-x); }

  .submit { width: 100%; text-align: center; }
  .form-success { padding: 36px 24px; }
}

/* Very small screens: keep the two-column philosophy number from crowding */
@media (max-width: 420px) {
  .philosophy-row {
    grid-template-columns: 1fr;
    column-gap: 0;
    row-gap: 12px;
  }
}

/* --- Reduced motion -------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-text { animation: none; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
