/* Kueffer Capital, Inc. — Editorial luxury (onyx + champagne gold) */

/* ============================================================
   Design tokens
   ============================================================ */
:root {
  --ink: #050505;
  --onyx: #0b0b0d;
  --onyx-2: #121217;
  --graphite: #1c1c22;
  --line: #2a2a33;

  --gold: #c9a14a;
  --gold-hi: #e6c77a;
  --gold-lo: #8a6e2f;
  --parchment: #f5f1e8;
  --parchment-dim: #cfc9b9;
  --body: #b6b1a5;

  --serif: 'Cormorant Garamond', 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'Inter Tight', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --wide: 1240px;
  --narrow: 880px;

  --space-section: clamp(5rem, 3rem + 6vw, 10rem);
  --space-edge: clamp(1.25rem, 1rem + 2vw, 3rem);

  --duration-fast: 180ms;
  --duration-normal: 320ms;
  --duration-slow: 680ms;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ============================================================
   Self-hosted fonts (subsetted latin). WOFF2 only.
   If font files are missing, the system-ui stack in --serif/--sans
   keeps typography legible as a fallback.
   ============================================================ */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/cormorant-garamond-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/cormorant-garamond-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/cormorant-garamond-400-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/inter-tight-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/inter-tight-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('assets/fonts/inter-tight-600.woff2') format('woff2');
}

/* ============================================================
   Reset + base
   ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.65;
  color: var(--body);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

.sr-defs { position: absolute; }

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

.skip-link {
  position: absolute;
  top: -40px;
  left: 0.5rem;
  z-index: 200;
  padding: 0.5rem 1rem;
  background: var(--gold);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: top var(--duration-fast) var(--ease-out-expo);
}
.skip-link:focus { top: 0.5rem; }

/* ============================================================
   Atmospheric background — layered radial gradients as onyx
   marble, plus a subtle SVG grain overlay.
   ============================================================ */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1200px 800px at 85% 10%, rgba(201, 161, 74, 0.08), transparent 60%),
    radial-gradient(900px 700px at 10% 90%, rgba(201, 161, 74, 0.06), transparent 65%),
    radial-gradient(1400px 900px at 50% 50%, rgba(18, 18, 23, 1), rgba(5, 5, 5, 1) 80%),
    linear-gradient(180deg, #060608, #050505);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ============================================================
   Typography
   ============================================================ */
h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--parchment);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.1;
}
h1 { font-size: clamp(2.75rem, 1.4rem + 6vw, 6rem); font-weight: 400; }
h2 { font-size: clamp(2rem, 1.2rem + 2.5vw, 3.25rem); font-weight: 500; }
h3 { font-size: clamp(1.25rem, 1.05rem + 0.6vw, 1.5rem); }

p { max-width: 62ch; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 2.25rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}

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

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

/* ============================================================
   Navigation — sticky glass rail
   Uses <details>/<summary> so the mobile menu works without JS.
   ============================================================ */
.site-header { display: block; }

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.25rem var(--space-edge);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: rgba(5, 5, 5, 0.55);
  border-bottom: 1px solid rgba(201, 161, 74, 0.12);
  transition: background var(--duration-normal) var(--ease-out-expo),
              border-color var(--duration-normal) var(--ease-out-expo);
}
.nav-container {
  max-width: var(--wide);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  position: relative;
}
.brand-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: var(--parchment);
}
.brand-mark {
  width: 34px;
  height: 34px;
  display: block;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.brand-text strong {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.25rem;
  color: var(--parchment);
  letter-spacing: 0.01em;
}
.brand-text small {
  font-size: 0.62rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 3px;
}

.nav-menu { display: contents; }
.nav-menu > summary { list-style: none; }
.nav-menu > summary::-webkit-details-marker { display: none; }

.nav-links {
  display: flex;
  gap: 2.25rem;
  list-style: none;
}
.nav-links a {
  color: var(--parchment-dim);
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  position: relative;
  padding: 0.25rem 0;
  transition: color var(--duration-fast) var(--ease-out-expo);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--duration-normal) var(--ease-out-expo);
}
.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a[aria-current="page"] {
  color: var(--parchment);
}
.nav-links a:hover::after,
.nav-links a:focus-visible::after,
.nav-links a[aria-current="page"]::after {
  transform: scaleX(1);
}

.mobile-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(201, 161, 74, 0.35);
  color: var(--gold);
  width: 42px;
  height: 42px;
  cursor: pointer;
  font-size: 1.1rem;
  align-items: center;
  justify-content: center;
}
.mobile-toggle-icon { line-height: 1; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem var(--space-edge) 6rem;
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      115deg,
      rgba(5, 5, 5, 0.92) 0%,
      rgba(5, 5, 5, 0.78) 40%,
      rgba(5, 5, 5, 0.55) 100%
    ),
    url('assets/generated/hero-bg-onyx-marble.png') center/cover no-repeat;
  z-index: -2;
}
.hero-inner {
  max-width: var(--wide);
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 4rem;
  align-items: center;
}
.hero-copy { max-width: 40rem; }
.hero h1 { margin: 1.75rem 0 1.5rem; }
.hero h1 .serif-accent { display: block; }
.hero-copy p {
  font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.2rem);
  color: var(--parchment-dim);
  max-width: 36rem;
  line-height: 1.6;
}
.hero-cta {
  margin-top: 2.5rem;
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  align-items: center;
}

.hero-monogram {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  aspect-ratio: 1/1;
}
.hero-monogram::before {
  content: "";
  position: absolute;
  inset: -10%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(201, 161, 74, 0.18), transparent 70%);
  filter: blur(6px);
  z-index: -1;
}
.hero-monogram img {
  width: 78%;
  max-width: 420px;
  height: auto;
  opacity: 0.95;
  filter: drop-shadow(0 24px 60px rgba(201, 161, 74, 0.22));
  animation: float 12s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-10px) rotate(0.5deg); }
}

.hero-frame {
  position: absolute;
  inset: 7rem var(--space-edge) 4rem;
  pointer-events: none;
  border-top: 1px solid rgba(201, 161, 74, 0.22);
  border-bottom: 1px solid rgba(201, 161, 74, 0.22);
}
.hero-frame::before, .hero-frame::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border: 1px solid var(--gold);
  transform: rotate(45deg);
  background: var(--ink);
}
.hero-frame::before { top: -6px; left: 0; }
.hero-frame::after { bottom: -6px; right: 0; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 1.75rem;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--gold);
  color: var(--ink);
  background: linear-gradient(135deg, var(--gold-hi) 0%, var(--gold) 55%, var(--gold-lo) 100%);
  position: relative;
  overflow: hidden;
  transition: transform var(--duration-normal) var(--ease-out-expo),
              box-shadow var(--duration-normal) var(--ease-out-expo);
}
.btn::after {
  content: "→";
  font-size: 1rem;
  transition: transform var(--duration-normal) var(--ease-out-expo);
}
.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(201, 161, 74, 0.28);
  outline: none;
}
.btn:hover::after,
.btn:focus-visible::after { transform: translateX(4px); }

.btn-ghost {
  background: transparent;
  color: var(--gold);
  border: 1px solid rgba(201, 161, 74, 0.45);
}
.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: var(--gold);
  color: var(--parchment);
  box-shadow: inset 0 0 0 1px var(--gold);
}

/* Email-specific button — shows the address inline with slight tracking. */
.btn-email {
  letter-spacing: 0.06em;
  text-transform: none;
  font-size: 0.95rem;
  font-family: var(--serif);
  font-weight: 500;
}
.btn-email::after { content: "↗"; }

/* ============================================================
   Gold ornament divider (art-deco)
   ============================================================ */
.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 3rem auto;
  color: var(--gold);
}
.ornament-subhero { margin-top: 2rem; }

.ornament .line {
  flex: 1;
  max-width: 180px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.ornament .line.right {
  background: linear-gradient(90deg, var(--gold), transparent);
}
.ornament .diamond {
  width: 10px;
  height: 10px;
  border: 1px solid var(--gold);
  transform: rotate(45deg);
}
.ornament .diamond.filled {
  background: var(--gold);
  box-shadow: 0 0 18px rgba(201, 161, 74, 0.45);
}

/* ============================================================
   Sections
   ============================================================ */
.section {
  padding: var(--space-section) var(--space-edge);
  position: relative;
}
.section-inner {
  max-width: var(--wide);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.section-head {
  text-align: center;
  max-width: 44rem;
  margin: 0 auto 4rem;
}
.section-head h2 { margin: 1rem 0 1.25rem; }
.section-head p {
  margin: 0 auto;
  color: var(--parchment-dim);
}

.section-alt {
  position: relative;
  background:
    linear-gradient(180deg, rgba(201, 161, 74, 0.02), transparent 40%, rgba(201, 161, 74, 0.02)),
    linear-gradient(180deg, var(--onyx), var(--onyx-2));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section-alt::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('assets/generated/texture-grain-gold.png');
  background-size: 400px;
  background-repeat: repeat;
  opacity: 0.08;
  pointer-events: none;
  mix-blend-mode: screen;
  z-index: 0;
}

/* ============================================================
   Feature cards — editorial bento
   ============================================================ */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}
.feature-card {
  position: relative;
  padding: 2.5rem 2rem 2.25rem;
  background: linear-gradient(180deg, rgba(18, 18, 23, 0.85), rgba(11, 11, 13, 0.85));
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform var(--duration-normal) var(--ease-out-expo),
              border-color var(--duration-normal) var(--ease-out-expo),
              box-shadow var(--duration-normal) var(--ease-out-expo);
}
.feature-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.5;
  transition: opacity var(--duration-normal) var(--ease-out-expo);
}
.feature-card::after {
  content: "";
  position: absolute;
  inset: auto -30% -60% auto;
  width: 140%;
  height: 140%;
  background: radial-gradient(closest-side, rgba(201, 161, 74, 0.12), transparent 70%);
  opacity: 0;
  transition: opacity var(--duration-slow) var(--ease-out-expo);
  pointer-events: none;
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(201, 161, 74, 0.45);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.55);
}
.feature-card:hover::before { opacity: 1; }
.feature-card:hover::after { opacity: 1; }

.feature-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  margin-bottom: 1.5rem;
  border: 1px solid rgba(201, 161, 74, 0.4);
}
.feature-icon svg { width: 28px; height: 28px; stroke: currentColor; fill: none; stroke-width: 1.25; }

.feature-icon:has(img) {
  width: 80px;
  height: 80px;
  border: 0;
  padding: 0;
}
.feature-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.feature-card h3 {
  color: var(--parchment);
  margin-bottom: 0.75rem;
  font-family: var(--serif);
  font-size: 1.4rem;
}
.feature-card p {
  color: var(--body);
  font-size: 0.95rem;
  line-height: 1.65;
}
.feature-card a {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid rgba(201, 161, 74, 0.4);
  transition: border-color var(--duration-fast) var(--ease-out-expo);
}
.feature-card a:hover,
.feature-card a:focus-visible { border-color: var(--gold); }

/* Portfolio card (editorial) */
.portfolio-card {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 0;
  padding: 0;
  overflow: hidden;
}
.portfolio-card .portfolio-image {
  background:
    radial-gradient(ellipse at 30% 70%, rgba(201, 161, 74, 0.25), transparent 60%),
    linear-gradient(180deg, #06131c 0%, #030a12 60%, #000 100%);
  min-height: 320px;
  position: relative;
  overflow: hidden;
}
.portfolio-card .portfolio-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}
.portfolio-card .portfolio-image::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background-image: repeating-linear-gradient(
    90deg,
    transparent 0 22px,
    rgba(201, 161, 74, 0.08) 22px 23px
  );
  mask-image: radial-gradient(ellipse at center 65%, black 0 60%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center 65%, black 0 60%, transparent 80%);
  animation: ripple 8s ease-in-out infinite;
}
.portfolio-card .portfolio-image::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.65));
}
@keyframes ripple {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(6px); }
}
.portfolio-card .portfolio-body {
  padding: 2.5rem 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.portfolio-title {
  margin-top: 1rem;
  font-size: 1.9rem;
}

/* ============================================================
   About — editorial spread
   ============================================================ */
.about-editorial {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  max-width: var(--wide);
  margin: 0 auto;
  align-items: center;
}
.about-editorial .editorial-image {
  position: relative;
  aspect-ratio: 3/4;
  background:
    radial-gradient(circle at 70% 30%, rgba(201, 161, 74, 0.18), transparent 55%),
    linear-gradient(160deg, #0c0c10 0%, #050507 100%);
  border: 1px solid var(--line);
  overflow: hidden;
}
.about-editorial .editorial-image::before {
  content: "";
  position: absolute;
  inset: 12%;
  z-index: 2;
  border: 1px solid rgba(201, 161, 74, 0.35);
}
.about-editorial .editorial-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.28);
  z-index: 1;
}
.about-editorial .editorial-image::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    180deg,
    rgba(5, 5, 5, 0.55) 0%,
    rgba(5, 5, 5, 0) 6%,
    rgba(5, 5, 5, 0) 94%,
    rgba(5, 5, 5, 0.55) 100%
  );
  pointer-events: none;
}
.about-editorial .editorial-text h3 {
  font-family: var(--serif);
  color: var(--parchment);
  font-size: 1.5rem;
  margin: 2rem 0 1rem;
}
.about-editorial .editorial-text h3:first-child { margin-top: 0; }
.about-editorial .editorial-text p {
  color: var(--parchment-dim);
  margin-bottom: 1rem;
}
.about-editorial .dropcap::first-letter {
  font-family: var(--serif);
  font-size: 4.5rem;
  line-height: 0.9;
  float: left;
  padding: 0.3rem 0.6rem 0 0;
  color: var(--gold);
  font-weight: 500;
}

/* ============================================================
   Contact — primary email CTA card
   ============================================================ */
.contact-card {
  max-width: 720px;
  margin: 0 auto;
  padding: 3.5rem 2.5rem;
  text-align: center;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(18, 18, 23, 0.9), rgba(11, 11, 13, 0.9));
  position: relative;
  overflow: hidden;
}
.contact-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.7;
}
.contact-card h2 { margin: 1rem 0 1.25rem; }
.contact-card p {
  margin: 0 auto 2rem;
  color: var(--parchment-dim);
  max-width: 52ch;
}
.contact-card .btn-email {
  margin: 0.5rem auto 1.5rem;
}
.contact-card .contact-note {
  font-size: 0.85rem;
  color: var(--body);
  margin-top: 1rem;
  margin-bottom: 0;
  opacity: 0.75;
}

/* ============================================================
   Contact + application forms
   ============================================================ */
.contact-form {
  max-width: 640px;
  margin: 3rem auto 0;
}
.form-group {
  margin-bottom: 1.75rem;
  position: relative;
}
.form-group label {
  display: block;
  margin-bottom: 0.6rem;
  color: var(--gold);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 1rem 1.1rem;
  background: rgba(12, 12, 16, 0.85);
  border: 1px solid var(--line);
  color: var(--parchment);
  font-family: var(--sans);
  font-size: 1rem;
  border-radius: 0;
  transition: border-color var(--duration-normal) var(--ease-out-expo),
              box-shadow var(--duration-normal) var(--ease-out-expo);
}
.form-group select {
  appearance: none;
  -webkit-appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--gold) 50%),
    linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position:
    calc(100% - 22px) 50%,
    calc(100% - 16px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 3rem;
  cursor: pointer;
}
.form-group textarea { min-height: 160px; resize: vertical; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 161, 74, 0.15);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(182, 177, 165, 0.4);
}
.form-group input:invalid:not(:placeholder-shown),
.form-group textarea:invalid:not(:placeholder-shown) {
  border-color: rgba(220, 80, 80, 0.5);
}

/* Honeypot — off-screen, not display:none (bots see display:none and skip) */
.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Submit button inline with form */
.contact-form button[type="submit"] {
  margin-top: 0.5rem;
}
.contact-form button[type="submit"]:disabled {
  opacity: 0.6;
  cursor: wait;
}

/* Status message below the button */
.form-status {
  margin-top: 1.25rem;
  min-height: 1.5em;
  font-size: 0.95rem;
  font-family: var(--sans);
  letter-spacing: 0.02em;
  text-align: center;
  color: var(--parchment-dim);
}
.form-status-pending { color: var(--parchment-dim); }
.form-status-success {
  color: var(--gold-hi);
  border-top: 1px solid rgba(201, 161, 74, 0.3);
  padding-top: 1rem;
}
.form-status-error {
  color: #ffb6b6;
  border-top: 1px solid rgba(220, 80, 80, 0.4);
  padding-top: 1rem;
}

/* Additional label style on internship track cards */
.card-label {
  font-size: 0.9rem;
  color: var(--parchment-dim);
  margin-top: 1rem;
}
.card-label strong {
  color: var(--gold);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.35rem;
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  padding: 4rem var(--space-edge) 3rem;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.7));
}
.footer-inner {
  max-width: var(--wide);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
  text-align: center;
}
.footer-mark { width: 52px; height: 52px; opacity: 0.9; }
.footer-text {
  font-size: 0.82rem;
  color: var(--parchment-dim);
  letter-spacing: 0.08em;
}
.footer-text strong {
  color: var(--gold);
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.1rem;
  display: block;
  margin-bottom: 0.25rem;
  letter-spacing: 0.02em;
}
.footer-meta {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(182, 177, 165, 0.5);
}

.footer-legal {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(182, 177, 165, 0.65);
}
.footer-legal a {
  color: var(--parchment-dim);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out-expo);
}
.footer-legal a:hover,
.footer-legal a:focus-visible {
  color: var(--gold);
}

/* ============================================================
   Legal pages — long-form readable text
   ============================================================ */
.legal-doc {
  max-width: 760px;
  margin: 0 auto;
  color: var(--parchment-dim);
  font-size: 1rem;
  line-height: 1.75;
}
.legal-doc p,
.legal-doc ul,
.legal-doc ol {
  max-width: 64ch;
}
.legal-doc h2 {
  font-size: clamp(1.35rem, 1.1rem + 0.6vw, 1.7rem);
  margin: 3rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--line);
  color: var(--parchment);
}
.legal-doc h2:first-of-type { margin-top: 1rem; }
.legal-doc h3 {
  font-size: 1.1rem;
  margin: 1.5rem 0 0.5rem;
  color: var(--gold-hi);
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.legal-doc p { margin-bottom: 1rem; }
.legal-doc ul { margin: 0 0 1rem 1.5rem; }
.legal-doc li { margin-bottom: 0.5rem; }
.legal-doc a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(201, 161, 74, 0.4);
}
.legal-doc a:hover,
.legal-doc a:focus-visible {
  text-decoration-color: var(--gold);
}
.legal-doc strong { color: var(--parchment); }
.legal-meta {
  font-size: 0.92rem;
  color: var(--body);
  padding: 0.85rem 1.1rem;
  border-left: 2px solid var(--gold);
  background: rgba(18, 18, 23, 0.5);
  margin-bottom: 2.5rem;
}
.legal-contact {
  padding: 1rem 1.25rem;
  background: rgba(18, 18, 23, 0.5);
  border: 1px solid var(--line);
  font-family: var(--sans);
  line-height: 1.6;
}

/* ============================================================
   Intuit / integration pages — branded utility surface
   ============================================================ */
.integration-card {
  max-width: 640px;
  margin: 0 auto;
  padding: 2.5rem 2.25rem;
  background: linear-gradient(180deg, rgba(18, 18, 23, 0.9), rgba(11, 11, 13, 0.9));
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.integration-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.6;
}
.integration-card h2 {
  margin: 0 0 1rem;
  font-size: 1.5rem;
}
.integration-card p { margin-bottom: 1rem; }
.integration-card ul {
  margin: 0 0 1.25rem 1.25rem;
  color: var(--parchment-dim);
}
.integration-card li { margin-bottom: 0.4rem; }
.integration-card code {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.9em;
  color: var(--gold-hi);
  background: rgba(0, 0, 0, 0.35);
  padding: 0.1em 0.45em;
  border-radius: 2px;
}
.integration-note {
  font-size: 0.85rem;
  color: var(--body);
  opacity: 0.8;
  margin-top: 1.25rem;
}

/* ============================================================
   Sub-page hero
   ============================================================ */
.subhero {
  padding: 12rem var(--space-edge) 5rem;
  text-align: center;
  position: relative;
  border-bottom: 1px solid var(--line);
}
.subhero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(5, 5, 5, 0.88) 0%,
      rgba(5, 5, 5, 0.7) 50%,
      rgba(5, 5, 5, 0.95) 100%
    ),
    url('assets/generated/hero-bg-dark-texture.png') center/cover no-repeat;
  z-index: -1;
  pointer-events: none;
}
.subhero h1 { font-size: clamp(2.5rem, 1.2rem + 4vw, 4.25rem); }
.subhero p {
  max-width: 38rem;
  margin: 1.25rem auto 0;
  color: var(--parchment-dim);
}

/* ============================================================
   404 page
   ============================================================ */
.notfound {
  min-height: calc(100vh - 12rem);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10rem var(--space-edge) 4rem;
  text-align: center;
}
.notfound-inner {
  max-width: 36rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}
.notfound-code {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(4rem, 3rem + 6vw, 8rem);
  color: var(--gold);
  line-height: 1;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 860px) {
  .mobile-toggle { display: inline-flex; }

  .nav-menu[open] {
    position: static;
  }
  .nav-menu .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 1rem 0;
    background: rgba(5, 5, 5, 0.96);
    border-top: 1px solid rgba(201, 161, 74, 0.2);
    border-bottom: 1px solid rgba(201, 161, 74, 0.2);
  }
  .nav-menu[open] .nav-links { display: flex; }
  .nav-menu .nav-links li { border-bottom: 1px solid var(--line); }
  .nav-menu .nav-links li:last-child { border-bottom: 0; }
  .nav-menu .nav-links a { display: block; padding: 1rem var(--space-edge); }

  .hero { padding-top: 7rem; padding-bottom: 5rem; min-height: auto; }
  .hero-inner { grid-template-columns: 1fr; gap: 3rem; }
  .hero-monogram { order: -1; max-width: 260px; margin: 0 auto; }
  .hero-frame { display: none; }

  .portfolio-card {
    grid-column: span 1;
    grid-template-columns: 1fr;
  }
  .portfolio-card .portfolio-image { min-height: 220px; }

  .about-editorial { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-editorial .editorial-image { order: 2; max-width: 440px; margin: 0 auto; }

  .contact-card { padding: 2.5rem 1.5rem; }
}

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