/* ============================================================
   TREVORIA — brand tokens
   ============================================================ */
:root {
  --navy: #012049;
  --navy-deep: #010f24;
  --burgundy: #8C1B32;
  --burgundy-light: #a83f56;
  --light-blue: #5C8AC4;
  --bg-light: #F7F7F5;
  --card-tint: #EFEAE0;
  --ink: #1c2530;
  --ink-soft: #4b5563;
  --white: #ffffff;
  --serif: Cambria, "Hoefler Text", Georgia, serif;
  --sans: Calibri, "Segoe UI", system-ui, -apple-system, sans-serif;
  --max: 1180px;
  --edge: clamp(24px, 5vw, 72px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 0.4em 0;
  line-height: 1.15;
}

p { margin: 0 0 1em 0; max-width: 62ch; color: var(--ink-soft); }

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

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

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 247, 245, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid rgba(1, 32, 73, 0.08);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 96px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand img { height: 72px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 40px);
}
.nav-links a {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
  position: relative;
  padding: 6px 0;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--burgundy);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-links a[aria-current="page"] { color: var(--burgundy); }

.nav-cta {
  border: 1.5px solid var(--navy);
  padding: 9px 20px;
  border-radius: 2px;
  font-size: 0.9rem;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--navy); color: var(--white); }

.nav-toggle { display: none; }

@media (max-width: 820px) {
  .nav-links { position: fixed; inset: 96px 0 0 0; background: var(--bg-light); flex-direction: column; justify-content: flex-start; padding: 40px var(--edge); gap: 28px; transform: translateX(100%); transition: transform 0.3s ease; }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 1.3rem; }
  .nav-toggle {
    display: flex; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px;
  }
  .nav-toggle span { width: 24px; height: 2px; background: var(--navy); display: block; }
}

/* ---------- Kicker ---------- */
.kicker {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: var(--burgundy);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.kicker::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--burgundy);
  display: inline-block;
}

/* ---------- Hero (structural / building motif) ---------- */
.hero {
  background: var(--navy);
  color: var(--white);
  padding: clamp(40px, 6vw, 72px) 0 clamp(28px, 4.5vw, 52px);
  position: relative;
  overflow: hidden;
}
.hero .wrap { position: relative; z-index: 2; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
}
.hero h1 {
  color: var(--white);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  letter-spacing: -0.01em;
}
.hero p.lede {
  color: #cfd8e6;
  font-size: 1.15rem;
  max-width: 46ch;
}
.hero .kicker { color: var(--light-blue); }
.hero .kicker::before { background: var(--light-blue); }

.hero-actions { display: flex; gap: 16px; margin-top: 32px; flex-wrap: wrap; }
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 2px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.btn-primary { background: var(--burgundy); color: var(--white); }
.btn-primary:hover { background: var(--burgundy-light); }
.btn-ghost { border: 1.5px solid rgba(255,255,255,0.4); color: var(--white); }
.btn-ghost:hover { border-color: var(--white); }
.btn-navy { border: 1.5px solid var(--navy); color: var(--navy); }
.btn-navy:hover { background: var(--navy); color: var(--white); }

/* Hero graphic — asymmetric layered composition with soft depth */
.hero-graphic {
  position: relative;
  height: 300px;
  width: 100%;
  max-width: 360px;
}
.hg-shape {
  position: absolute;
  border-radius: 6px;
  filter: drop-shadow(0 14px 22px rgba(0,0,0,0.28));
}
/* Back layer — largest, navy, upper-left leaning */
.hg-1 {
  width: 62%;
  height: 58%;
  left: 2%;
  top: 6%;
  background: linear-gradient(155deg, #123663, var(--navy-deep));
  transform: rotate(-2deg);
  z-index: 1;
}
/* Mid layer — light blue, overlaps shape 1, offset lower-right */
.hg-2 {
  width: 46%;
  height: 48%;
  left: 34%;
  top: 32%;
  background: var(--light-blue);
  transform: rotate(3deg);
  z-index: 2;
}
/* Front layer — smallest, deep navy, offset toward bottom-left, slight overlap with shape 2 */
.hg-3 {
  width: 30%;
  height: 30%;
  left: 8%;
  top: 62%;
  background: var(--navy-deep);
  transform: rotate(-4deg);
  z-index: 3;
}
/* Burgundy accent — small solid square, top-right, overlapping the largest shape */
.hg-accent {
  position: absolute;
  width: 15%;
  height: 15%;
  right: 8%;
  top: 0%;
  background: var(--burgundy);
  border-radius: 4px;
  z-index: 4;
  filter: drop-shadow(0 8px 14px rgba(0,0,0,0.3));
}
@media (max-width: 900px) {
  .hero-graphic { height: 240px; max-width: 300px; margin-top: 20px; }
}
@media (max-width: 560px) {
  .hero-graphic { height: 200px; max-width: 260px; }
}

/* Venture showcase graphic — stacked layered panels with depth + burgundy accent */
.venture-graphic {
  position: relative;
  width: 100%;
  max-width: 280px;
  height: 200px;
}
.vg-panel {
  position: absolute;
  border-radius: 10px;
  filter: drop-shadow(0 12px 18px rgba(0,0,0,0.32));
}
.vg-back {
  width: 68%;
  height: 62%;
  left: 4%;
  top: 8%;
  background: var(--navy);
  border: 1.5px solid rgba(92,138,196,0.5);
  opacity: 0.9;
  transform: rotate(-5deg);
  z-index: 1;
}
.vg-mid {
  width: 62%;
  height: 56%;
  left: 20%;
  top: 26%;
  background: var(--light-blue);
  opacity: 0.35;
  transform: rotate(2deg);
  z-index: 2;
}
.vg-front {
  width: 54%;
  height: 48%;
  left: 12%;
  top: 42%;
  background: var(--light-blue);
  opacity: 0.85;
  transform: rotate(-2deg);
  z-index: 3;
}
.vg-accent-sq {
  position: absolute;
  width: 15%;
  height: 15%;
  right: 6%;
  top: 4%;
  background: var(--burgundy);
  border-radius: 5px;
  z-index: 4;
  filter: drop-shadow(0 6px 10px rgba(0,0,0,0.3));
}
@media (max-width: 560px) {
  .venture-graphic { height: 170px; max-width: 240px; }
}

/* Corner accent — decorative squares integrated into a section's own top edge, no separate strip */
.section-accent { position: relative; }
.corner-accent {
  position: absolute;
  top: 0;
  left: var(--edge);
  height: 26px;
  pointer-events: none;
}
.corner-accent .ca-sq { position: absolute; border-radius: 2px; }
.corner-accent .ca1 { width: 14px; height: 14px; background: var(--burgundy); left: 0; top: 8px; }
.corner-accent .ca2 { width: 20px; height: 20px; background: var(--light-blue); opacity: 0.5; left: 26px; top: 2px; }
.corner-accent.on-navy .ca2 { opacity: 0.4; }

/* ---------- Sections ---------- */
section { padding: clamp(32px, 4.5vw, 56px) 0; scroll-margin-top: 96px; }
.section-accent { padding-top: clamp(46px, 6vw, 72px); }
.section-light { background: var(--bg-light); }
.section-white { background: var(--white); }
.section-tint { background: var(--card-tint); }
.section-navy { background: var(--navy); color: var(--white); }
.section-navy h2, .section-navy h3 { color: var(--white); }
.section-navy p { color: #cfd8e6; }
.section-navy .kicker { color: var(--light-blue); }
.section-navy .kicker::before { background: var(--light-blue); }

.section-head { max-width: 640px; margin-bottom: 26px; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }

/* ---------- Process strip (idea -> venture -> enterprise: a real sequence) ---------- */
.process {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(1,32,73,0.1);
  border: 1px solid rgba(1,32,73,0.1);
}
.process-step {
  background: var(--white);
  padding: 36px 32px;
  position: relative;
}
.process-step .num {
  font-family: var(--serif);
  font-size: 0.95rem;
  color: var(--burgundy);
  font-weight: 700;
  margin-bottom: 14px;
  display: block;
}
.process-step h3 { font-size: 1.25rem; margin-bottom: 10px; }
.process-step p { margin: 0; font-size: 0.96rem; }
@media (max-width: 760px) { .process { grid-template-columns: 1fr; } }

/* ---------- Cards (brand rule: card-tint fill, no shadow, no hard border) ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.card {
  background: var(--card-tint);
  padding: 32px 28px;
  border-radius: 6px;
}
.card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.card p { margin: 0; font-size: 0.96rem; }

/* ---------- Studio flow (About section: continuous vertical process) ---------- */
.studio-flow-title {
  font-size: 1.2rem;
  margin-bottom: 28px;
}

.flow-chain {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.flow-chain::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--burgundy);
  opacity: 0.35;
}

.flow-step { position: relative; display: flex; gap: 20px; align-items: flex-start; }
.flow-marker {
  position: relative;
  z-index: 1;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--burgundy);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 1px rgba(140,27,50,0.35);
  flex-shrink: 0;
  margin-top: 2px;
}
.flow-marker-result {
  background: var(--navy);
  box-shadow: 0 0 0 1px rgba(1,32,73,0.35);
}

.flow-step-content { flex: 1; padding-bottom: 2px; }
.flow-step-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.flow-num {
  font-family: var(--serif);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--burgundy);
}
.flow-heading {
  font-family: var(--serif);
  font-weight: 700;
  color: var(--navy);
  font-size: 1.1rem;
}
.flow-result .flow-heading { color: var(--navy); }
.flow-desc {
  font-family: var(--sans);
  color: var(--ink-soft);
  font-size: 0.96rem;
  margin: 0 0 6px 0;
  max-width: 60ch;
}
.flow-insight {
  font-family: var(--sans);
  color: var(--burgundy);
  font-size: 0.86rem;
  margin: 0;
}
.flow-result .flow-desc { margin-bottom: 0; }

.flow-closing-bar-wrap {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  text-align: center;
}
.flow-closing-bar {
  display: inline-block;
  background: var(--navy);
  border-left: 4px solid var(--burgundy);
  border-radius: 24px;
  padding: 16px 32px;
}
.flow-closing-bar p {
  margin: 0;
  color: var(--white);
  font-size: 0.98rem;
  max-width: 56ch;
}

/* ---------- About closing block (flat, tight) ---------- */
.about-closing {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(1,32,73,0.12);
}
.about-closing-title {
  font-size: 1.15rem;
  margin-bottom: 10px;
}
.about-closing-body {
  margin: 0;
  font-size: 0.98rem;
  max-width: 68ch;
  color: var(--ink-soft);
}

.dept-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0;
  border-top: 1px solid rgba(1,32,73,0.12);
}
.dept-list div {
  padding: 22px 4px;
  border-bottom: 1px solid rgba(1,32,73,0.12);
}
.dept-list h4 { font-size: 1.02rem; margin-bottom: 4px; }
.dept-list p { font-size: 0.9rem; margin: 0; }

/* ---------- Venture feature (Welloop) ---------- */
.venture-feature {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
@media (max-width: 900px) { .venture-feature { grid-template-columns: 1fr; } }
.stat-row { display: flex; gap: clamp(20px, 4vw, 40px); flex-wrap: wrap; margin: 28px 0; }
.stat { min-width: 100px; }
.stat .num { font-family: var(--serif); font-size: 2.1rem; color: var(--burgundy); font-weight: 700; display: block; line-height: 1; }
.stat .label { font-size: 0.82rem; color: var(--ink-soft); margin-top: 6px; }
.section-navy .stat .num { color: var(--light-blue); }
.section-navy .stat .label { color: #b9c5d8; }

.tag-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.tag {
  font-size: 0.82rem;
  padding: 6px 14px;
  border: 1px solid rgba(1,32,73,0.25);
  border-radius: 20px;
  color: var(--navy);
}

.divider {
  height: 2px;
  width: 48px;
  background: var(--burgundy);
  margin: 0 0 20px 0;
}

/* ---------- Venture card (other ventures / coming next) ---------- */
.venture-card {
  border: 1px solid rgba(1,32,73,0.12);
  padding: 32px;
  border-radius: 6px;
  background: var(--white);
}
.venture-card .stage {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--burgundy);
  border: 1px solid var(--burgundy);
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 16px;
}

/* ---------- Values / approach list with markers (not numbered — not a sequence) ---------- */
.value-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; }
.value-list .mark { width: 10px; height: 10px; background: var(--burgundy); margin-bottom: 16px; border-radius: 1px; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
}
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-detail { margin-bottom: 26px; }
.contact-detail .label { font-size: 0.8rem; letter-spacing: 0.06em; color: var(--light-blue); margin-bottom: 6px; }
.contact-detail a, .contact-detail span { font-family: var(--serif); font-size: 0.92rem; color: var(--navy); }

form.contact-form { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 0.88rem; color: var(--ink); font-weight: 600; }
.field input, .field select, .field textarea {
  font-family: var(--sans);
  font-size: 1rem;
  padding: 13px 14px;
  border: 1px solid rgba(1,32,73,0.25);
  border-radius: 4px;
  background: var(--white);
  color: var(--ink);
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--burgundy); box-shadow: 0 0 0 3px rgba(140,27,50,0.12); }
.form-note { font-size: 0.82rem; color: var(--ink-soft); margin-top: -6px; }
button.submit {
  align-self: flex-start;
  background: var(--burgundy);
  color: var(--white);
  border: none;
  padding: 14px 32px;
  border-radius: 2px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s ease;
}
button.submit:hover { background: var(--burgundy-light); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-deep);
  color: #9aa9c0;
  padding: 40px 0 24px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand img { height: 30px; margin-bottom: 12px; }
.footer-brand p { max-width: 40ch; font-size: 0.88rem; color: #8b98ad; }
.footer-nav { display: flex; gap: 48px; flex-wrap: wrap; }
.footer-nav div h5 { color: var(--white); font-family: var(--sans); font-size: 0.82rem; letter-spacing: 0.06em; margin-bottom: 14px; font-weight: 700; }
.footer-nav a { display: block; font-size: 0.9rem; color: #9aa9c0; margin-bottom: 10px; }
.footer-nav a:hover { color: var(--light-blue); }
.footer-bottom { padding-top: 18px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 0.8rem; }
.footer-bottom .tagline-icon { display: inline-flex; align-items: center; gap: 8px; }
.footer-bottom .tagline-icon svg { height: 1em; width: auto; display: block; }
.footer-logo svg { height: 26px; width: auto; display: block; margin-bottom: 10px; }

/* ---------- Page hero (interior pages, shorter) ---------- */
.page-hero {
  background: var(--navy);
  color: var(--white);
  padding: clamp(56px, 8vw, 90px) 0 clamp(40px, 6vw, 64px);
}
.page-hero h1 { color: var(--white); font-size: clamp(2rem, 4vw, 2.9rem); max-width: 22ch; }
.page-hero p { color: #cfd8e6; font-size: 1.08rem; max-width: 58ch; }

/* Fade-up entrance for hero only (single orchestrated moment) */
@keyframes riseIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero .kicker, .hero h1, .hero p.lede, .hero-actions {
  animation: riseIn 0.7s ease both;
}
.hero h1 { animation-delay: 0.08s; }
.hero p.lede { animation-delay: 0.16s; }
.hero-actions { animation-delay: 0.24s; }
.hg-shape, .hg-accent { animation: riseIn 0.8s ease both; }
.hg-2 { animation-delay: 0.1s; }
.hg-3 { animation-delay: 0.18s; }
.hg-accent { animation-delay: 0.3s; }
