/* =========================================================
   THREE KEY GROUP — Corporate Stylesheet
   Charcoal · champagne · Cormorant Garamond + Jost
   ========================================================= */

:root {
  --main: #F4F5EE;
  --bg: #1F1F21;
  --bg-dark: #1A1A1C;
  --bg-soft: #26262A;
  --second: #D2B28F;   /* champagne */
  --third: #706240;    /* bronze */
  --gold: #C3A15C;     /* TKG mark gold */

  --key-green: #4E9C7D;
  --key-navy: #0E2A4E;
  --key-red: #C96A74;

  --line: rgba(244, 245, 238, 0.13);
  --line-soft: rgba(244, 245, 238, 0.07);
  --dim: rgba(244, 245, 238, 0.62);
  --dimmer: rgba(244, 245, 238, 0.42);

  --font-body: "Jost", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  --font-header: "Cormorant Garamond", "Times New Roman", serif;

  --maxw: 1240px;
  --gutter: 6vw;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--main);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.8;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--third); color: var(--main); }

h1, h2, h3, h4 {
  font-family: var(--font-header);
  font-weight: 400;
  letter-spacing: 0.5px;
  line-height: 1.12;
}

/* ---------- Primitives ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

.kicker {
  font-size: 11px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--second);
  font-weight: 400;
}
.kicker--center { text-align: center; }

.main-header { font-size: clamp(2.1rem, 4.2vw, 3.5rem); text-align: center; }
.main-header--left { text-align: left; }

.lede {
  color: var(--dim);
  font-weight: 200;
  font-size: 1.02rem;
  line-height: 1.98;
  max-width: 68ch;
}
.lede--center { margin-left: auto; margin-right: auto; text-align: center; }
.lede + .lede { margin-top: 22px; }
.lede strong { color: var(--main); font-weight: 400; }
.lede em { font-style: normal; color: var(--second); }

.section { padding: clamp(80px, 10vw, 140px) 0; position: relative; }
.section--soft { background: var(--bg-dark); }
.section--edge { border-top: 1px solid var(--line-soft); }

.tri { display: flex; height: 3px; width: 100%; }
.tri i { flex: 1; }
.tri i:nth-child(1) { background: var(--key-green); }
.tri i:nth-child(2) { background: var(--key-navy); }
.tri i:nth-child(3) { background: var(--key-red); }
.tri--short { width: 110px; margin: 34px auto 0; }
.tri--left { margin-left: 0; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 16px 34px;
  border: 1px solid var(--line);
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--main);
  background: transparent;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: color 0.5s var(--ease), border-color 0.5s var(--ease);
  font-family: inherit;
}
.btn > * { position: relative; z-index: 1; }
.btn::after {
  content: "";
  position: absolute; inset: 0;
  background: var(--second);
  transform: translateY(101%);
  transition: transform 0.55s var(--ease);
}
.btn:hover { color: var(--bg-dark); border-color: var(--second); }
.btn:hover::after { transform: translateY(0); }
.btn .arw { transition: transform 0.45s var(--ease); }
.btn:hover .arw { transform: translateX(6px); }
.btn--solid { background: var(--second); color: var(--bg-dark); border-color: var(--second); }
.btn--solid::after { background: var(--main); }

.tlink {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--second);
  padding-bottom: 7px;
  border-bottom: 1px solid rgba(210, 178, 143, 0.34);
  transition: gap 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease);
}
.tlink:hover { gap: 18px; color: var(--main); border-color: var(--main); }

/* ---------- Header ---------- */
.hdr {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  padding: 20px 0;
  transition: background 0.5s var(--ease), padding 0.5s var(--ease), border-color 0.5s var(--ease);
  border-bottom: 1px solid transparent;
}
.hdr.stuck {
  background: rgba(26, 26, 28, 0.9);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom-color: var(--line-soft);
  padding: 12px 0;
}
.hdr__in { display: flex; align-items: center; justify-content: space-between; gap: 30px; }

.brand { display: flex; align-items: center; gap: 13px; flex: 0 0 auto; }
.brand__mark { width: 27px; height: 30px; }
.brand__tx { line-height: 1.05; }
.brand__n {
  display: block;
  font-family: var(--font-header);
  font-size: 22px;
  letter-spacing: 0.28em;
  color: var(--second);
  font-weight: 500;
}
.brand__s {
  display: block;
  font-size: 7.5px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--dimmer);
  margin-top: 1px;
}

.nav { display: flex; align-items: center; gap: 26px; }
.nav a {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
  position: relative;
  padding: 8px 0;
  transition: color 0.35s var(--ease);
  white-space: nowrap;
}
.nav a::after {
  content: "";
  position: absolute; left: 0; bottom: 2px;
  width: 100%; height: 1px;
  background: var(--second);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease);
}
.nav a:hover, .nav a.on { color: var(--main); }
.nav a:hover::after, .nav a.on::after { transform: scaleX(1); transform-origin: left; }

.hdr__aside { display: flex; align-items: center; gap: 20px; flex: 0 0 auto; }
.lang { display: flex; gap: 9px; font-size: 10px; letter-spacing: 0.2em; }
.lang a { color: var(--dimmer); transition: color 0.35s var(--ease); }
.lang a:hover { color: var(--main); }
.lang a.on { color: var(--second); }
.lang span { color: rgba(244, 245, 238, 0.2); }

.burger { display: none; width: 28px; height: 16px; position: relative; background: none; border: 0; cursor: pointer; }
.burger i { position: absolute; left: 0; width: 100%; height: 1px; background: var(--main); transition: all 0.45s var(--ease); }
.burger i:nth-child(1) { top: 0; }
.burger i:nth-child(2) { top: 50%; }
.burger i:nth-child(3) { bottom: 0; }
.burger.open i:nth-child(1) { top: 50%; transform: rotate(45deg); }
.burger.open i:nth-child(2) { opacity: 0; }
.burger.open i:nth-child(3) { bottom: auto; top: 50%; transform: rotate(-45deg); }

.mnav {
  position: fixed; inset: 0; z-index: 190;
  background: var(--bg-dark);
  padding: 110px var(--gutter) 40px;
  overflow-y: auto;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.7s var(--ease);
}
.mnav.open { clip-path: inset(0 0 0 0); }
.mnav a {
  display: block;
  font-family: var(--font-header);
  font-size: 1.8rem;
  padding: 13px 0;
  border-bottom: 1px solid var(--line-soft);
}
.mnav .lang { margin-top: 34px; font-size: 12px; gap: 14px; }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 620px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.3s var(--ease);
}
.hero__media video.show { opacity: 1; }
.hero__scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(26,26,28,.86) 0%, rgba(31,31,33,.5) 42%, rgba(26,26,28,.94) 100%);
}
.hero__in { position: relative; z-index: 2; padding: 0 var(--gutter); max-width: 1080px; }
.hero__mark { width: 44px; height: 49px; margin: 0 auto 30px; }
.hero h1 { font-size: clamp(2.6rem, 6.4vw, 5.6rem); font-weight: 300; }
.hero h1 em { font-style: italic; color: var(--second); }
.hero .lede { margin: 28px auto 0; text-align: center; max-width: 58ch; }
.hero__cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 42px; }

.scroll-cue {
  position: absolute; bottom: 30px; left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  font-size: 9px; letter-spacing: 0.36em; text-transform: uppercase;
  color: var(--dimmer);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.scroll-cue::after {
  content: ""; width: 1px; height: 46px;
  background: linear-gradient(var(--second), transparent);
  animation: cue 2.6s var(--ease) infinite;
}
@keyframes cue {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------- Page hero (inner) ---------- */
.phero {
  position: relative;
  padding: clamp(160px, 22vw, 250px) 0 clamp(70px, 9vw, 110px);
  text-align: center;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(112, 98, 64, 0.34) 0%, transparent 62%),
    var(--bg-dark);
  border-bottom: 1px solid var(--line-soft);
  overflow: hidden;
}
.phero h1 { font-size: clamp(2.4rem, 5.4vw, 4.6rem); font-weight: 300; margin: 22px 0 26px; }
.phero h1 em { font-style: italic; color: var(--second); }
.phero .lede { margin: 0 auto; text-align: center; }
.crumb { margin-top: 34px; font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--dimmer); }
.crumb a:hover { color: var(--second); }

/* ---------- Split ---------- */
.split { display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); gap: clamp(36px, 6vw, 90px); align-items: start; }
.split--even { grid-template-columns: 1fr 1fr; }
.split .main-header { text-align: left; }

/* ---------- Service tiles (home) ---------- */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-soft); margin-top: 62px; }
.tile {
  position: relative;
  background: var(--bg);
  min-height: 330px;
  padding: clamp(30px, 3vw, 44px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: background 0.6s var(--ease);
}
.tile::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(90% 80% at 80% 0%, rgba(210,178,143,.15), transparent 62%);
  opacity: 0;
  transition: opacity 0.6s var(--ease);
}
.tile:hover { background: var(--bg-soft); }
.tile:hover::before { opacity: 1; }
.tile > * { position: relative; z-index: 1; }
.tile__n { font-size: 10px; letter-spacing: 0.3em; color: var(--third); margin-bottom: 24px; }
.tile h3 { font-size: 1.9rem; margin-bottom: 6px; }
.tile__sub { font-size: 10px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--dimmer); margin-bottom: 20px; }
.tile p { color: var(--dim); font-size: .93rem; font-weight: 200; line-height: 1.85; }
.tile .tlink { margin-top: auto; padding-top: 28px; align-self: flex-start; }

/* ---------- Numbered rows ---------- */
.rows { border-top: 1px solid var(--line-soft); margin-top: 46px; }
.row {
  display: grid;
  grid-template-columns: 74px minmax(170px, .9fr) minmax(0, 1.6fr);
  gap: 26px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line-soft);
  align-items: baseline;
  transition: padding-left 0.5s var(--ease);
}
.row:hover { padding-left: 16px; }
.row__n { font-size: 10px; letter-spacing: 0.24em; color: var(--third); }
.row__t { font-family: var(--font-header); font-size: 1.5rem; }
.row__d { color: var(--dim); font-size: .93rem; font-weight: 200; }

/* ---------- Group sites ---------- */
.sites { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-soft); margin-top: 54px; }
.site {
  background: var(--bg);
  padding: clamp(28px, 3vw, 40px);
  display: flex; flex-direction: column;
  transition: background 0.5s var(--ease);
}
.site:hover { background: var(--bg-soft); }
.site__flag { font-size: 9.5px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--second); margin-bottom: 16px; }
.site h4 { font-size: 1.5rem; margin-bottom: 10px; }
.site p { color: var(--dim); font-size: .9rem; font-weight: 200; line-height: 1.8; flex: 1; }
.site__url {
  margin-top: 22px;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--second);
  border-bottom: 1px solid rgba(210,178,143,.3);
  align-self: flex-start;
  padding-bottom: 5px;
  transition: color .4s var(--ease), border-color .4s var(--ease);
  word-break: break-all;
}
.site__url:hover { color: var(--main); border-color: var(--main); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line-soft); border-block: 1px solid var(--line-soft); }
.stat { background: var(--bg); padding: clamp(32px,4vw,52px) clamp(18px,2.4vw,32px); text-align: center; }
.stat b { display: block; font-family: var(--font-header); font-size: clamp(2.2rem,4.4vw,3.4rem); font-weight: 300; line-height: 1; margin-bottom: 12px; }
.stat b i { font-style: normal; color: var(--second); font-size: .5em; vertical-align: super; }
.stat span { font-size: 9.5px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--dimmer); }

/* ---------- Offices ---------- */
.offices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-soft); margin-top: 54px; }
.office { background: var(--bg); padding: clamp(28px,3vw,44px); transition: background .5s var(--ease); }
.office:hover { background: var(--bg-soft); }
.office__f { display: block; font-size: 9.5px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--second); margin-bottom: 16px; }
.office h3 { font-size: 1.8rem; }
.office__r { font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--dimmer); margin: 6px 0 18px; }
.office p { color: var(--dim); font-size: .9rem; font-weight: 200; line-height: 1.8; }
.office a { color: var(--second); }
.office a:hover { color: var(--main); }
.office__addr { display: block; margin-top: 14px; font-size: .82rem; color: var(--dimmer); }

/* ---------- Quote ---------- */
.quote { background: var(--bg-dark); border-block: 1px solid var(--line-soft); text-align: center; }
.quote blockquote { font-family: var(--font-header); font-size: clamp(1.5rem, 3.2vw, 2.6rem); font-weight: 300; line-height: 1.45; max-width: 26ch; margin: 0 auto; }
.quote cite { display: block; margin-top: 34px; font-style: normal; font-size: 10px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--dimmer); }
.quote cite b { display: block; color: var(--main); font-weight: 400; margin-bottom: 6px; letter-spacing: 0.18em; }

/* ---------- Timeline ---------- */
.tl { border-left: 1px solid var(--line-soft); padding-left: clamp(22px,3.4vw,44px); margin-top: 44px; }
.tl__i { position: relative; padding-bottom: 40px; }
.tl__i::before {
  content: ""; position: absolute;
  left: calc(-1 * clamp(22px,3.4vw,44px) - 3.5px);
  top: 12px; width: 7px; height: 7px; border-radius: 50%;
  background: var(--second); box-shadow: 0 0 0 4px rgba(210,178,143,.13);
}
.tl__i time { font-size: 10px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--second); }
.tl__i h4 { font-size: 1.3rem; margin: 5px 0 8px; }
.tl__i p { color: var(--dim); font-size: .92rem; font-weight: 200; }

/* ---------- Contact ---------- */
.clist { list-style: none; margin-top: 38px; }
.clist li { border-top: 1px solid var(--line-soft); padding: 22px 0; }
.clist h4 { font-family: var(--font-body); font-size: 9.5px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--dimmer); font-weight: 400; margin-bottom: 10px; }
.clist p { font-size: 1rem; line-height: 1.7; }
.clist p span { color: var(--dim); font-size: .88rem; font-weight: 200; }
.clist a:hover { color: var(--second); }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 40px; }
.f { display: flex; flex-direction: column; gap: 9px; }
.f--full { grid-column: 1 / -1; }
.f label { font-size: 9.5px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--dimmer); }
.f input, .f select, .f textarea {
  background: transparent; border: 0; border-bottom: 1px solid var(--line);
  color: var(--main); font-family: inherit; font-size: 1rem; font-weight: 300;
  padding: 12px 2px; transition: border-color .4s var(--ease);
}
.f select option { background: var(--bg-soft); color: var(--main); }
.f textarea { resize: vertical; min-height: 130px; }
.f input:focus, .f select:focus, .f textarea:focus { outline: none; border-bottom-color: var(--second); }
.f input::placeholder, .f textarea::placeholder { color: rgba(244,245,238,.28); }
.fnote { grid-column: 1 / -1; font-size: .8rem; color: var(--dimmer); font-weight: 200; }

/* ---------- CTA band ---------- */
.cta {
  text-align: center;
  background: radial-gradient(80% 130% at 50% 0%, rgba(112,98,64,.3), transparent 62%), var(--bg-dark);
  border-top: 1px solid var(--line-soft);
}
.cta .main-header { margin: 22px auto 26px; max-width: 20ch; }
.cta .hero__cta { margin-top: 34px; }

/* ---------- Footer ---------- */
.ftr { background: var(--bg-dark); padding: clamp(56px,7vw,92px) 0 30px; }
.ftr__top { display: grid; grid-template-columns: 1.7fr repeat(3, 1fr); gap: 40px; padding-bottom: 50px; border-bottom: 1px solid var(--line-soft); }
.ftr__blurb { color: var(--dim); font-size: .88rem; font-weight: 200; margin-top: 20px; max-width: 40ch; line-height: 1.85; }
.ftr h5 { font-family: var(--font-body); font-size: 9.5px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--dimmer); font-weight: 400; margin-bottom: 18px; }
.ftr ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.ftr li, .ftr ul a { font-size: .87rem; color: var(--dim); font-weight: 200; transition: color .35s var(--ease); }
.ftr ul a:hover { color: var(--second); }
.ftr__btm { padding-top: 26px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; font-size: 10px; letter-spacing: 0.14em; color: var(--dimmer); }

/* ---------- Reveal ---------- */
[data-rv] { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
[data-rv].in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  [data-rv] { opacity: 1; transform: none; }
  .hero__media video { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav { gap: 18px; }
  .nav a { font-size: 10px; letter-spacing: .16em; }
}
@media (max-width: 940px) {
  .nav, .hdr__aside .lang { display: none; }
  .burger { display: block; }
  .tiles, .sites, .offices { grid-template-columns: 1fr 1fr; }
  .split, .split--even { grid-template-columns: 1fr; }
  .ftr__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  :root { --gutter: 22px; }
  .tiles, .sites, .offices, .form { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .row { grid-template-columns: 1fr; gap: 8px; }
  .ftr__top { grid-template-columns: 1fr; }
  .scroll-cue { display: none; }
  .hero { height: 92vh; }
}
