/* ============================================================
   Twinmont Consulting LLC — Stylesheet
   Design language: quiet luxury, editorial serif + clean sans,
   deep navy / cream / gold, hairline rules, twin-line motif.
   ============================================================ */

:root {
  /* Palette */
  --black: #111e2d;
  --charcoal: #1c2f42;
  --charcoal-2: #24405a;
  --cream: #f7f3ec;
  --off-white: #fbfaf7;
  --beige: #ece3d3;
  --sand: #ddd0b7;
  --taupe: #b6a186;
  --bronze: #ad8250;
  --bronze-light: #d3ae77;
  --bronze-dark: #7c5a2f;
  --ink: #1c1a17;
  --ink-soft: #4a443c;
  --line: rgba(28, 26, 23, 0.12);
  --line-dark: rgba(247, 243, 236, 0.16);

  /* Type */
  --font-display: "Fraunces", "Iowan Old Style", "Georgia", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Spacing / Layout */
  --container: 1180px;
  --gutter: clamp(24px, 5vw, 80px);
  --section-pad: clamp(84px, 11vw, 156px);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.6s;
}

@media (prefers-reduced-motion: reduce) {
  :root { --dur: 0.001s; }
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body, h1, h2, h3, h4, p, figure { margin: 0; }
img { max-width: 100%; display: block; }
button { font: inherit; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* Visually-hidden utility (skip link target labels, etc.) */
.visually-hidden {
  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;
  left: 16px;
  top: -60px;
  background: var(--black);
  color: var(--off-white);
  padding: 12px 20px;
  z-index: 200;
  transition: top 0.2s var(--ease);
  border-radius: 2px;
  font-size: 14px;
}
.skip-link:focus { top: 16px; }

/* Focus visibility */
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--bronze);
  outline-offset: 3px;
  border-radius: 1px;
}

/* ---------- Eyebrow / labels ---------- */
.eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bronze-dark);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--bronze);
  display: inline-block;
}
.section--dark .eyebrow { color: var(--bronze-light); }
.section--dark .eyebrow::before { background: var(--bronze-light); }

/* ---------- Headings ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 {
  color: var(--off-white);
}

h2.section-title {
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.15;
  margin-top: 16px;
  font-weight: 450;
}

.section-head {
  max-width: 640px;
  margin-bottom: clamp(40px, 6vw, 72px);
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p {
  margin-top: 18px;
  color: var(--ink-soft);
  font-size: 17px;
}
.section--dark .section-head p { color: rgba(247,243,236,0.72); }

/* ---------- Twin-line motif ----------
   A recurring pair of thin offset rules used across the site
   as the signature visual device (referencing "Twins"). */
.twin-lines {
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
  width: 34px;
}
.twin-lines span {
  display: block;
  height: 1px;
  background: var(--bronze);
}
.twin-lines span:first-child { width: 100%; }
.twin-lines span:last-child { width: 62%; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 32px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease), transform 0.3s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--black);
  color: var(--off-white);
  border-color: var(--black);
}
.btn--primary:hover { background: var(--bronze-dark); border-color: var(--bronze-dark); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: rgba(28,26,23,0.28);
}
.btn--ghost:hover { border-color: var(--ink); background: rgba(28,26,23,0.04); }

.btn--on-dark.btn--primary {
  background: var(--bronze-light);
  color: var(--black);
  border-color: var(--bronze-light);
}
.btn--on-dark.btn--primary:hover { background: var(--off-white); border-color: var(--off-white); }

.btn--on-dark.btn--ghost {
  color: var(--off-white);
  border-color: rgba(247,243,236,0.32);
}
.btn--on-dark.btn--ghost:hover { border-color: var(--off-white); background: rgba(247,243,236,0.06); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(247, 243, 236, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease), padding var(--dur) var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(247, 243, 236, 0.96);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  padding-bottom: 20px;
  transition: padding var(--dur) var(--ease);
}
.site-header.is-scrolled .header-inner {
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand {
  display: flex;
  align-items: center;
}
.brand img {
  height: 50px;
  width: auto;
  transition: height var(--dur) var(--ease);
}
.site-header.is-scrolled .brand img { height: 40px; }

.nav-primary {
  display: flex;
  align-items: center;
  gap: 52px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 38px;
}
.nav-links a {
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink);
  position: relative;
  padding: 4px 0;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0;
  height: 1px;
  background: var(--bronze);
  transition: width 0.3s var(--ease);
}
.nav-links a:hover::after, .nav-links a:focus-visible::after { width: 100%; }

.header-cta { display: flex; align-items: center; gap: 18px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 40px; height: 40px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--ink);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Mobile nav ---------- */
@media (max-width: 900px) {
  .nav-primary { position: relative; }
  .nav-links {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(78vw, 340px);
    background: var(--black);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 30px;
    padding: 40px var(--gutter);
    transform: translateX(100%);
    transition: transform 0.45s var(--ease);
  }
  .nav-links.is-open { transform: translateX(0); }
  .nav-links a { color: var(--off-white); font-size: 18px; }
  .nav-links a::after { background: var(--bronze-light); }
  .header-cta .btn--ghost { display: none; }
  .nav-toggle { display: flex; }
  body.menu-open { overflow: hidden; }
}

.nav-scrim {
  position: fixed;
  inset: 0;
  background: rgba(17,30,45,0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
  z-index: 90;
}
.nav-scrim.is-visible { opacity: 1; pointer-events: auto; }

/* ---------- Sections base ---------- */
section { position: relative; }
.section-pad { padding-top: var(--section-pad); padding-bottom: var(--section-pad); }
.section--dark { background: var(--black); }
.section--charcoal { background: var(--charcoal); }
.section--beige { background: var(--beige); }

/* Fade-in on scroll */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Hero ---------- */
.hero {
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding-top: clamp(140px, 18vw, 190px);
  padding-bottom: clamp(64px, 8vw, 100px);
  background:
    radial-gradient(ellipse at 82% 0%, rgba(173,130,80,0.10), transparent 55%),
    var(--cream);
  border-bottom: 1px solid var(--line);
}
.hero-inner {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
.hero-eyebrow { margin-bottom: 30px; }
.hero h1 {
  font-size: clamp(42px, 6.6vw, 82px);
  line-height: 1.05;
  max-width: 15ch;
  font-weight: 470;
}
.hero-lede {
  margin-top: 30px;
  max-width: 48ch;
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--ink-soft);
}
.hero-actions {
  margin-top: 48px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

/* Minimal wordless scroll cue */
.scroll-cue {
  position: absolute;
  left: var(--gutter);
  bottom: 40px;
  width: 1px;
  height: 54px;
  background: var(--line);
  overflow: hidden;
}
.scroll-cue::after {
  content: "";
  position: absolute;
  left: 0; top: -100%;
  width: 1px;
  height: 100%;
  background: var(--bronze);
  animation: scrollCue 2.6s var(--ease) infinite;
}
@keyframes scrollCue {
  0% { top: -100%; }
  60%, 100% { top: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-cue::after { animation: none; top: 0; }
}
@media (max-width: 760px) {
  .scroll-cue { display: none; }
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(48px, 7vw, 100px);
  align-items: start;
}
.about-copy p { color: var(--ink-soft); font-size: 17px; max-width: 54ch; }
.capability-row {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  column-gap: 28px;
  row-gap: 14px;
}
.capability-row span {
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 500;
}
@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
}

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.service-card {
  background: var(--cream);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  min-height: 216px;
  transition: background-color 0.4s var(--ease);
}
.service-card:hover { background: var(--off-white); }
.service-card .twin-lines { margin-bottom: 22px; }
.service-card h3 {
  font-size: 19px;
  font-weight: 500;
  line-height: 1.3;
}
.service-card p {
  margin-top: 12px;
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.6;
}
@media (max-width: 1020px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .services-grid { grid-template-columns: 1fr; }
}

/* ---------- Approach ---------- */
.approach-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 10px;
}
.approach-step {
  padding: 34px 28px 34px 0;
  border-top: 1px solid var(--line-dark);
  position: relative;
}
.approach-step + .approach-step { border-left: 1px solid var(--line-dark); padding-left: 28px; }
.approach-num {
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--bronze-light);
}
.approach-step h3 {
  margin-top: 18px;
  font-size: 21px;
  font-weight: 500;
}
.approach-step p {
  margin-top: 14px;
  font-size: 14.5px;
  color: rgba(247,243,236,0.68);
}
.approach-note {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--line-dark);
  max-width: 68ch;
  font-size: 14.5px;
  color: rgba(247,243,236,0.6);
  line-height: 1.7;
}
@media (max-width: 860px) {
  .approach-list { grid-template-columns: 1fr; }
  .approach-step + .approach-step { border-left: none; padding-left: 0; }
}

/* ---------- Principles ---------- */
.principles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 48px;
}
.principle {
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.principle h3 {
  font-size: 18px;
  font-weight: 600;
  font-family: var(--font-body);
  letter-spacing: 0.01em;
}
.principle p {
  margin-top: 12px;
  font-size: 14.5px;
  color: var(--ink-soft);
}
@media (max-width: 860px) {
  .principles-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .principles-grid { grid-template-columns: 1fr; }
}

/* ---------- International ---------- */
.intl-section {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.intl-inner {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: clamp(30px, 6vw, 80px);
  align-items: center;
}
.intl-inner p { font-size: clamp(19px, 2.4vw, 27px); font-family: var(--font-display); line-height: 1.4; color: var(--ink); font-weight: 450; }
@media (max-width: 860px) {
  .intl-inner { grid-template-columns: 1fr; }
}

/* ---------- Contact ---------- */
.contact-section { background: var(--black); }
.contact-inner { text-align: center; max-width: 720px; margin: 0 auto; }
.contact-inner h2 {
  font-size: clamp(34px, 5.5vw, 58px);
  line-height: 1.1;
  margin-top: 18px;
}
.contact-inner .lede {
  margin-top: 22px;
  color: rgba(247,243,236,0.72);
  font-size: 17px;
  max-width: 56ch;
  margin-left: auto;
  margin-right: auto;
}
.contact-actions {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}
.contact-card {
  margin-top: 72px;
  padding-top: 40px;
  border-top: 1px solid var(--line-dark);
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 30px 64px;
  justify-content: center;
  text-align: left;
}
.contact-card div span {
  display: block;
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bronze-light);
  margin-bottom: 8px;
}
.contact-card div a, .contact-card div p {
  color: var(--off-white);
  font-size: 15px;
  margin: 0;
  max-width: 34ch;
}
@media (max-width: 640px) {
  .contact-card { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .contact-card div a, .contact-card div p { max-width: 100%; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--charcoal);
  color: rgba(247,243,236,0.7);
  padding-top: 64px;
  padding-bottom: 34px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--line-dark);
}
.footer-brand img { height: 38px; margin-bottom: 18px; }
.footer-brand p { font-size: 14px; max-width: 34ch; color: rgba(247,243,236,0.55); }
.footer-brand p + p { margin-top: 12px; }
.footer-brand a { color: rgba(247,243,236,0.68); }
.footer-brand a:hover { color: var(--off-white); }
.footer-col h4 {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bronze-light);
  font-weight: 600;
  margin-bottom: 18px;
}
.footer-col ul { display: grid; gap: 12px; }
.footer-col a, .footer-col span { font-size: 14.5px; color: rgba(247,243,236,0.68); }
.footer-col a:hover { color: var(--off-white); }
.footer-bottom {
  margin-top: 30px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 13px;
  color: rgba(247,243,236,0.6);
}
@media (max-width: 780px) {
  .footer-top { grid-template-columns: 1fr; gap: 30px; }
}

/* ---------- Mobile refinements ---------- */
@media (max-width: 480px) {
  :root { --section-pad: clamp(64px, 16vw, 96px); }

  .header-inner { padding-top: 16px; padding-bottom: 16px; }
  .site-header.is-scrolled .header-inner { padding-top: 11px; padding-bottom: 11px; }
  .brand img { height: 38px; }
  .site-header.is-scrolled .brand img { height: 33px; }

  .hero { min-height: unset; padding-top: 128px; }
  .hero h1 { max-width: none; font-size: clamp(34px, 9vw, 44px); }
  .hero-lede { max-width: none; }
  .hero-actions { margin-top: 36px; flex-direction: column; align-items: stretch; gap: 14px; }
  .hero-actions .btn { width: 100%; }

  .section-head { margin-bottom: 36px; }
  h2.section-title { font-size: clamp(28px, 8vw, 34px); }

  .capability-row { column-gap: 18px; row-gap: 10px; }

  .service-card { padding: 32px 24px; min-height: unset; }

  .contact-actions .btn { width: 100%; }
  .contact-card { gap: 26px; }

  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
}

@media (max-width: 360px) {
  .hero h1 { font-size: 32px; }
  .eyebrow { font-size: 11px; letter-spacing: 0.16em; }
  .btn { padding: 14px 24px; font-size: 12.5px; }
}

/* ---------- Legal pages ---------- */
.legal-hero {
  padding-top: clamp(150px, 18vw, 200px);
  padding-bottom: 60px;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}
.legal-hero h1 { font-size: clamp(32px, 5vw, 52px); }
.legal-hero .eyebrow { margin-bottom: 20px; }
.legal-updated { margin-top: 18px; font-size: 14px; color: var(--ink-soft); }
.legal-body { padding-top: 60px; padding-bottom: 100px; max-width: 780px; }
.legal-body h2 { font-size: 22px; margin-top: 46px; margin-bottom: 16px; font-weight: 500; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body p { color: var(--ink-soft); font-size: 15.5px; margin-bottom: 14px; }
.legal-notice {
  margin-top: 12px;
  margin-bottom: 40px;
  padding: 20px 24px;
  background: var(--beige);
  border-left: 3px solid var(--bronze);
  font-size: 14.5px;
  color: var(--ink);
  line-height: 1.7;
}
.legal-body .placeholder {
  color: var(--bronze-dark);
  font-weight: 600;
  font-style: italic;
}
.legal-back { margin-top: 46px; display: inline-block; }
