/* Paragon Consulting — redesign stylesheet.
   Brand tokens carried over from the original site (Paragon Siam brand guide). */
:root {
  --bg: #0d191d;
  --bg-panel: #132227;
  --bg-raised: #182b31;
  --line: rgba(239, 244, 243, 0.14);
  --line-soft: rgba(239, 244, 243, 0.08);
  --text: #eff4f3;
  --text-dim: #9fb2b6;
  --text-faint: #6f8488;

  --polo-primary: #3e93c4;
  --meridian-primary: #2fc0b0;
  --anchor-primary: #ff9955;
  --gold: #ffd24d;
  --on-gold: #14100a;

  --accent: var(--gold);
  --practice: var(--gold);

  --font-display: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", -apple-system, BlinkMacSystemFont, Helvetica, Arial, sans-serif;
  --font-quote: Georgia, "Iowan Old Style", "Times New Roman", serif;

  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(72px, 10vw, 128px);
  --radius: 6px;
}

.p-anchor   { --practice: var(--anchor-primary); }
.p-meridian { --practice: var(--meridian-primary); }
.p-polo     { --practice: var(--polo-primary); }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--gold); color: var(--on-gold); font-weight: 600; text-decoration: none; }
.skip:focus { top: 16px; }

.container {
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin: 0 auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--section); }
.section + .section { border-top: 1px solid var(--line-soft); }

h1, h2, h3 { margin: 0; text-wrap: balance; }
h1, h2 {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 0.98;
}
h1 { font-size: clamp(48px, 8.4vw, 112px); }
h2 { font-size: clamp(36px, 5vw, 60px); }
h3 { font-size: 20px; font-weight: 600; line-height: 1.3; }
p { margin: 0; }

.eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--practice);
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }

.section-head { display: grid; gap: 20px; max-width: 760px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head p { color: var(--text-dim); font-size: 18px; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 26px;
  background: var(--gold); color: var(--on-gold);
  font-size: 14px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none; border-radius: 2px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(255, 210, 77, .22); }
.btn--ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1px var(--text); }
.arrow { transition: transform .2s ease; }
a:hover .arrow { transform: translateX(4px); }

/* ---------- RB1: floating nav ---------- */
.site-nav {
  position: fixed; inset: 18px 0 auto; z-index: 50;
  padding-inline: var(--gutter);
  transition: inset .3s ease;
}
.nav-bar {
  max-width: var(--wrap); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 14px 18px 14px 24px;
  background: rgba(10, 19, 22, .82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  transition: max-width .3s ease, border-radius .3s ease, background .3s ease;
}
.site-nav.is-pinned { inset: 0 0 auto; padding-inline: 0; }
.site-nav.is-pinned .nav-bar {
  max-width: none; border-radius: 0; border-width: 0 0 1px;
  background: rgba(10, 19, 22, .96);
  padding-inline: max(var(--gutter), calc((100vw - var(--wrap)) / 2));
}
.logo-lockup { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo { white-space: nowrap; font-family: var(--font-display); font-weight: 600; font-size: clamp(19px, 5vw, 24px); letter-spacing: .02em; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-size: 14px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; color: var(--text-dim); }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.lang-switch { display: flex; gap: 2px; padding-left: 20px; border-left: 1px solid var(--line); }
.lang-switch a { padding: 2px 6px; font-size: 13px; }
.lang-switch a.active { color: var(--gold); }
.nav-links a.nav-cta { padding: 10px 16px; font-size: 13px; color: var(--on-gold); }
.menu-toggle { display: none; }

@media (max-width: 860px) {
  .menu-toggle {
    display: inline-flex; align-items: center; gap: 8px;
    background: none; border: 1px solid var(--line); color: var(--text);
    padding: 8px 12px; border-radius: 3px; font: 500 13px var(--font-body);
    letter-spacing: .08em; text-transform: uppercase; cursor: pointer;
  }
  .nav-links {
    display: none;
    position: absolute; left: var(--gutter); right: var(--gutter); top: calc(100% + 8px);
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(10, 19, 22, .97); border: 1px solid var(--line-soft); border-radius: var(--radius);
    padding: 8px 20px 20px;
  }
  .site-nav.is-pinned .nav-links { left: 0; right: 0; top: 100%; border-radius: 0; }
  .site-nav.is-open .nav-links { display: flex; }
  .nav-links { max-height: calc(100vh - 90px); overflow-y: auto; }
  .nav-links > a { padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
  .nav-links > a.nav-cta { border-bottom: 0; }
  .lang-switch { border: 0; padding: 14px 0 6px; }
  .nav-cta { margin-top: 12px; justify-content: center; }
}

/* ---------- BE1: hero ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: min(88vh, 860px);
  display: flex; align-items: flex-end;
  padding: 150px 0 clamp(110px, 14vw, 170px);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - clamp(40px, 6vw, 90px)), 0 100%);
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
  animation: hero-drift 18s ease-out both;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(13, 25, 29, .92) 0%, rgba(13, 25, 29, .55) 55%, rgba(13, 25, 29, .2) 100%),
    linear-gradient(0deg, rgba(13, 25, 29, .85) 0%, rgba(13, 25, 29, 0) 45%);
}
@keyframes hero-drift { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero-content { display: grid; gap: 28px; max-width: 900px; }
.hero h1 span { display: block; }
.hero h1 span:last-child { color: var(--gold); }
.hero-sub { max-width: 620px; font-size: clamp(17px, 1.6vw, 20px); color: #d3dfe0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }

.hero--page { min-height: min(66vh, 620px); }
.hero--page h1 { font-size: clamp(44px, 7vw, 92px); }
.hero--page .hero-content { max-width: 820px; }
.breadcrumb { font-size: 13px; color: var(--text-dim); letter-spacing: .04em; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--text); }

/* ---------- MO2: practice photo tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tiles--two { grid-template-columns: repeat(2, 1fr); }
.tiles--tall .tile { min-height: clamp(460px, 44vw, 620px); }
.tile {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 12px;
  min-height: 460px; padding: 30px;
  text-decoration: none; border-radius: var(--radius);
  border-top: 3px solid var(--practice);
  background: var(--bg-panel);
}
.tile img {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s cubic-bezier(.2, .7, .2, 1);
}
.tile::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(0deg, rgba(10, 19, 22, .97) 0%, rgba(10, 19, 22, .9) 55%, rgba(10, 19, 22, .35) 75%, rgba(10, 19, 22, .1) 100%);
}
.tile:hover img { transform: scale(1.06); }
.tile-label { text-shadow: 0 1px 8px rgba(0, 0, 0, .8); font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--practice); }
.tile h3 { font-family: var(--font-display); font-size: 38px; font-weight: 600; text-transform: uppercase; line-height: 1; }
.tile p { color: #c9d6d8; font-size: 16px; }
.tile-more { margin-top: 6px; font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.tile:hover .arrow { transform: translateX(4px); }

/* ---------- TE3: ruled service grid ---------- */
.ruled { display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px 40px; }
.ruled-col { display: grid; gap: 28px; align-content: start; }
.ruled-col > h3 {
  font-family: var(--font-display); font-size: 26px; text-transform: uppercase; letter-spacing: .02em;
  color: var(--practice);
}
.ruled-item { display: grid; gap: 8px; align-content: start; padding-top: 18px; border-top: 1px solid var(--line); }
.ruled-item h3, .ruled-item h4 { margin: 0; font-size: 17px; font-weight: 600; }
.ruled-item p { color: var(--text-dim); font-size: 15px; }
.ruled--wide { grid-template-columns: repeat(3, 1fr); }

/* ---------- Full-bleed photo band ---------- */
.band {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: clamp(420px, 56vw, 640px);
  display: flex; align-items: flex-end;
  padding-block: clamp(56px, 8vw, 96px);
}
.band > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.band::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(0deg, rgba(13, 25, 29, .95) 0%, rgba(13, 25, 29, .45) 55%, rgba(13, 25, 29, .15) 100%);
}
.band-content { display: grid; gap: 18px; width: 100%; }
.band-content p:last-child { max-width: 560px; font-size: 19px; color: #d3dfe0; }

/* ---------- Founder profile ---------- */
.founder-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.portrait { margin: 0; }
.portrait img, .portrait-placeholder {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: var(--radius); border-bottom: 4px solid var(--gold);
}
.portrait-placeholder {
  display: grid; place-items: center;
  background: radial-gradient(120% 90% at 30% 20%, #23404a 0%, var(--bg-panel) 60%, #0a1417 100%);
}
.portrait-placeholder span { font-family: var(--font-display); font-weight: 600; font-size: clamp(120px, 18vw, 240px); color: rgba(255, 210, 77, .18); line-height: 1; }
.founder-copy { display: grid; gap: 32px; }
.founder-quote {
  margin: 0; font-family: var(--font-display); font-weight: 600; text-transform: uppercase;
  font-size: clamp(40px, 5.2vw, 72px); line-height: 1; text-wrap: balance;
}
.founder-quote::before { content: "\201C"; display: block; color: var(--gold); font-size: 1.2em; line-height: .6; margin-bottom: 12px; }
.founder-name { display: grid; gap: 4px; padding-top: 24px; border-top: 1px solid var(--line); }
.founder-name strong { font-size: 24px; font-weight: 600; }
.founder-name span { font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.founder-bio { color: var(--text-dim); max-width: 460px; }

/* ---------- Process steps (service pages) ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; counter-reset: step; }
.step { display: grid; gap: 10px; align-content: start; padding: 26px 24px; background: var(--bg-panel); border-radius: var(--radius); }
.step-num { font-family: var(--font-display); font-size: 44px; font-weight: 600; line-height: 1; color: var(--practice); font-variant-numeric: tabular-nums; }
.step p { color: var(--text-dim); font-size: 15px; }

.fit { display: grid; grid-template-columns: 260px 1fr; gap: 40px; align-items: start; }
.fit .eyebrow { white-space: nowrap; }
.fit p:not(.eyebrow) { font-size: clamp(20px, 2vw, 24px); line-height: 1.5; max-width: 820px; }

/* ---------- CTA band + contact ---------- */
.cta-band {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px;
  padding: clamp(32px, 5vw, 56px);
  background: linear-gradient(120deg, var(--bg-raised), var(--bg-panel));
  border: 1px solid var(--line-soft); border-radius: var(--radius);
}
.cta-band h2 { font-size: clamp(30px, 4vw, 46px); max-width: 720px; }
.cta-band p { color: var(--text-dim); margin-top: 12px; max-width: 620px; }

.contact { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: end; }
.contact-list { display: grid; gap: 0; }
.contact-row { display: grid; grid-template-columns: 110px 1fr; gap: 20px; padding: 20px 0; border-top: 1px solid var(--line); }
.contact-row:last-child { border-bottom: 1px solid var(--line); }
.contact-row dt { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--text-faint); padding-top: 4px; }
.contact-row dd { margin: 0; font-size: 19px; overflow-wrap: anywhere; }
.contact-row a { text-decoration: none; }
.contact-row a:hover { color: var(--gold); }

/* ---------- Footer ---------- */
.site-footer { padding-block: 48px; border-top: 1px solid var(--line-soft); background: #0a1417; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 28px; }
.footer-links a { font-size: 14px; color: var(--text-dim); text-decoration: none; }
.footer-links a:hover { color: var(--text); }
.copyright { font-size: 13px; color: var(--text-faint); }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .tiles, .ruled { grid-template-columns: 1fr 1fr; }
  .contact, .founder-grid { grid-template-columns: 1fr; }
  .portrait { max-width: 520px; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .tiles, .tiles--two, .ruled { grid-template-columns: 1fr; }
  .tile, .tiles--tall .tile { min-height: 380px; padding: 24px; }
  .fit { grid-template-columns: 1fr; gap: 16px; }
  .contact-row { grid-template-columns: 1fr; gap: 6px; }
  .hero { padding-top: 130px; }
  .site-nav { inset: 12px 0 auto; }
}

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