/*
 * COHESHA — a restrained, typography-led corporate website.
 * System typography only: no font downloads, libraries or build step.
 * Edit this token block to change the visual identity.
 */
:root {
  color-scheme: dark;
  --bg: #101110;
  --surface: #171917;
  --text: #f1f1ec;
  --muted: #abafa8;
  --soft: #c3c6be;
  --accent: #bdc8b4;
  --line: #333631;
  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --gutter: clamp(24px, 5vw, 80px);
  --max-width: 1440px;
  --circle-line: #595e54;
  --dot: #747c6c;
  --principle-line: #3e443a;
  --button-active: #f1f1ec;
  --button-ink: #101110;
}

/* Light appearance: warm white, charcoal and one restrained olive-grey accent. */
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f7f7f3;
  --surface: #edeee8;
  --text: #181b17;
  --muted: #5b6057;
  --soft: #555d4f;
  --accent: #55634b;
  --line: #d4d8ce;
  --circle-line: #959d8d;
  --dot: #748069;
  --principle-line: #cbd1c3;
  --button-active: #181b17;
  --button-ink: #f7f7f3;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 104px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
::selection { color: var(--bg); background: var(--accent); }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 7px; border-radius: 1px; }
p, h1, h2, h3 { margin: 0; }
h1, h2, h3 { font-weight: 400; }
button[hidden] { display: none; }
.container { width: 100%; max-width: var(--max-width); padding-inline: var(--gutter); margin-inline: auto; }
.skip-link { position: fixed; left: 24px; top: -100px; z-index: 20; background: var(--text); color: var(--bg); padding: 12px 20px; }
.skip-link:focus { top: 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }

/* Masthead */
.site-header { background: var(--bg); position: sticky; top: 0; z-index: 10; }
.header-inner { min-height: 105px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.wordmark { display: inline-flex; align-items: baseline; font-size: 37px; font-weight: 500; letter-spacing: -2.1px; line-height: 1; min-height: 44px; padding-top: 3px; }
.brand-period { color: var(--accent); }
.primary-nav { display: flex; align-items: center; gap: 40px; font-size: 14px; }
.primary-nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); transition: color 160ms ease; }
.primary-nav a:hover, .primary-nav a[aria-current="location"] { color: var(--text); }
.primary-nav .nav-contact { color: var(--text); gap: 25px; }
.nav-contact span { font-size: 20px; }

/* Shared type and rhythm */
.eyebrow { font-family: var(--mono); font-size: 11px; font-weight: 400; letter-spacing: .12em; text-transform: uppercase; }
.small-square { display: inline-block; width: 6px; height: 6px; background: var(--accent); flex: 0 0 auto; }
.muted-headline { color: var(--soft); }
.section { padding-block: 124px; }
.section-label { display: flex; align-items: center; gap: 18px; font-size: 13px; color: var(--soft); line-height: 1.5; }
.section-number { font-family: var(--mono); color: var(--muted); font-size: 11px; }
h2 { font-size: clamp(38px, 4vw, 58px); line-height: 1.12; letter-spacing: -.045em; }

/* Opening */
.hero { padding-top: 91px; }
.hero-eyebrow { display: flex; align-items: center; gap: 14px; color: var(--soft); margin-bottom: 46px; }
h1 { font-size: clamp(72px, 9.35vw, 138px); line-height: .98; letter-spacing: -.067em; }
.hero-bottom { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: end; margin-top: 69px; padding-bottom: 78px; }
.hero-description { max-width: 520px; font-size: clamp(19px, 1.65vw, 23px); line-height: 1.48; letter-spacing: -.023em; }
.text-link { display: inline-flex; width: fit-content; align-items: center; gap: 20px; min-height: 44px; font-size: 14px; }
.arrow-circle { display: inline-grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--circle-line); border-radius: 50%; font-size: 20px; transition: background 160ms ease, color 160ms ease, border-color 160ms ease; }
.text-link:hover .arrow-circle { background: var(--text); color: var(--bg); border-color: var(--text); }
.hero-baseline { display: flex; align-items: center; gap: 36px; border-block: 1px solid var(--line); padding-block: 23px; color: var(--muted); font-size: 12px; }
.hero-baseline span + span { position: relative; padding-left: 37px; }
.hero-baseline span + span::before { position: absolute; content: ""; width: 3px; height: 3px; border-radius: 50%; left: 0; top: 8px; background: var(--dot); }

/* Perspective */
.editorial-grid { display: grid; grid-template-columns: 1fr 3fr; gap: 44px; }
.perspective .section-label { align-self: start; padding-top: 9px; }
.perspective h2 { font-size: clamp(36px, 3.7vw, 53px); }
.perspective-copy { margin-top: 41px; display: grid; grid-template-columns: 1fr 1fr; gap: 46px; max-width: 930px; }
.perspective-copy p { font-size: 17px; line-height: 1.65; color: var(--muted); }

/* Focus: deliberately unboxed */
.focus { padding-top: 40px; padding-bottom: 128px; }
.focus-heading { display: flex; align-items: end; justify-content: space-between; gap: 56px; margin-bottom: 61px; }
.focus-heading .section-label { margin-bottom: 34px; }
.section-intro { font-size: 17px; line-height: 1.6; color: var(--muted); padding-bottom: 4px; margin-right: 48px; }
.focus-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.focus-item { border-top: 1px solid var(--line); padding-top: 24px; display: flex; flex-direction: column; }
.focus-meta { display: flex; justify-content: space-between; align-items: center; font-family: var(--mono); font-size: 10px; letter-spacing: .075em; color: var(--muted); }
.focus-mark { color: var(--accent); font-family: var(--font); font-size: 18px; }
.focus-item h3 { margin-block: 35px 20px; font-size: 26px; line-height: 1.18; letter-spacing: -.033em; }
.focus-item p { color: var(--muted); font-size: 16px; line-height: 1.65; max-width: 350px; }
.focus-caption { font-size: 12px; color: var(--soft); padding-top: 36px; margin-top: auto; }

/* Principles */
.principles { background: var(--surface); padding-block: 106px; }
.principles-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; }
.principles-heading .section-label { margin-bottom: 39px; }
.principles-heading h2 { font-size: clamp(36px, 3.7vw, 53px); }
.principles-note { font-size: 16px; line-height: 1.65; color: var(--muted); margin-top: 36px; }
.principle-item { display: grid; grid-template-columns: 24px 1fr; gap: 24px; padding-block: 27px; border-top: 1px solid var(--principle-line); }
.principle-item:first-child { padding-top: 0; border-top: none; }
.principle-item:last-child { padding-bottom: 0; }
.principle-index { font-family: var(--mono); font-size: 10px; padding-top: 6px; color: var(--accent); }
.principle-item h3 { font-size: 21px; letter-spacing: -.02em; line-height: 1.3; margin-bottom: 13px; }
.principle-item p { font-size: 15px; color: var(--muted); line-height: 1.65; max-width: 420px; }

/* Contact */
.contact { padding-block: 114px 120px; }
.contact .section-label { margin-bottom: 45px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 80px; }
.contact h2 { font-size: clamp(66px, 7.5vw, 110px); line-height: .98; letter-spacing: -.06em; }
.contact-content { max-width: 500px; padding-bottom: 4px; }
.contact-content p { font-size: 18px; line-height: 1.6; color: var(--muted); max-width: 440px; }
.email-link { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-block: 23px 16px; border-bottom: 1px solid var(--line); margin-top: 16px; font-size: clamp(22px, 2.2vw, 31px); letter-spacing: -.025em; transition: border-color 160ms ease; }
.email-link:hover { border-color: var(--text); }
.email-link span { color: var(--accent); }
.copy-email { display: inline-flex; align-items: center; gap: 16px; min-height: 44px; padding: 0; border: 0; margin-top: 10px; background: transparent; color: var(--muted); font-size: 12px; cursor: pointer; }
.copy-email:hover { color: var(--text); }
.copy-email span { font-size: 17px; }

/* Colophon */
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; min-height: 138px; position: relative; }
.footer-inner::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); border-top: 1px solid var(--line); }
.footer-wordmark { font-size: 31px; letter-spacing: -1.7px; min-height: 36px; }
.footer-thought, .copyright { color: var(--muted); font-size: 12px; }

/* Error page */
.error-page .site-header { position: static; }
.error-main { min-height: calc(100svh - 243px); padding-block: 100px; }
.error-main .eyebrow { color: var(--accent); margin-bottom: 36px; }
.error-main h1 { font-size: clamp(64px, 8vw, 110px); }
.error-main p:not(.eyebrow) { color: var(--muted); max-width: 480px; margin-block: 36px 24px; font-size: 18px; }

@media (min-width: 1600px) {
  :root { --max-width: 1600px; }
  .hero { padding-top: 110px; }
  .hero-bottom { margin-top: 84px; }
}
@media (max-width: 1100px) {
  .hero { padding-top: 75px; }
  .hero-bottom { gap: 40px; }
  .section { padding-block: 95px; }
  .editorial-grid { grid-template-columns: 1fr 3fr; gap: 28px; }
  .perspective-copy { gap: 30px; }
  .focus { padding-top: 24px; }
  .focus-grid { gap: 28px; }
  .focus-item h3 { font-size: 23px; }
  .section-intro { margin-right: 0; }
  .principles-grid { gap: 55px; }
  .contact-grid { gap: 56px; }
}
@media (max-width: 760px) {
  html { scroll-padding-top: 85px; }
  .header-inner { min-height: 86px; gap: 16px; }
  .wordmark { font-size: 32px; letter-spacing: -1.8px; align-items: center; padding-top: 0; }
  .primary-nav { font-size: 12px; gap: 23px; }
  .primary-nav .nav-contact { gap: 12px; }
  .hero { padding-top: 64px; }
  .hero-eyebrow { font-size: 9px; letter-spacing: .07em; gap: 11px; margin-bottom: 37px; }
  h1 { font-size: clamp(64px, 11.5vw, 88px); }
  .hero-bottom { grid-template-columns: 1fr; gap: 30px; margin-top: 40px; padding-bottom: 48px; }
  .hero-description { order: -1; font-size: 20px; max-width: 520px; }
  .hero-link { font-size: 13px; }
  .hero-baseline { gap: 18px; padding-block: 19px; font-size: 10px; }
  .hero-baseline span + span { padding-left: 20px; }
  .hero-baseline span + span::before { top: 6px; }
  .section { padding-block: 77px; }
  .section-label { font-size: 12px; gap: 15px; }
  .editorial-grid { grid-template-columns: 1fr; gap: 34px; }
  .perspective .section-label { padding-top: 0; }
  .perspective h2 { font-size: clamp(30px, 5.6vw, 42px); }
  .perspective-copy { margin-top: 29px; gap: 24px; }
  .perspective-copy p { font-size: 16px; }
  .focus { padding-top: 15px; }
  .focus-heading { margin-bottom: 38px; gap: 24px; }
  .focus-heading .section-label { margin-bottom: 29px; }
  .focus-heading h2 { font-size: 43px; }
  .section-intro { font-size: 15px; }
  .focus-grid { grid-template-columns: 1fr; gap: 35px; }
  .focus-item { padding-top: 18px; }
  .focus-item h3 { font-size: 27px; margin-block: 25px 16px; }
  .focus-item p { max-width: 590px; }
  .focus-caption { padding-top: 24px; }
  .principles-grid { grid-template-columns: 1fr; gap: 43px; }
  .principles-heading .section-label { margin-bottom: 31px; }
  .principles-heading h2 { font-size: 43px; }
  .principles-note { margin-top: 25px; }
  .principle-list { max-width: 580px; }
  .principle-item:first-child { border-top: 1px solid var(--principle-line); padding-top: 25px; }
  .principle-item p { max-width: none; }
  .contact .section-label { margin-bottom: 34px; }
  .contact-grid { grid-template-columns: 1fr; gap: 35px; }
  .contact h2 { font-size: clamp(66px, 12vw, 88px); }
  .contact-content { max-width: 580px; }
  .contact-content p { font-size: 17px; max-width: 510px; }
  .email-link { font-size: 28px; }
  .footer-inner { display: grid; grid-template-columns: 1fr auto; min-height: 155px; padding-block: 31px; gap: 12px; }
  .footer-wordmark { font-size: 29px; }
  .footer-thought { grid-column: 1 / -1; grid-row: 2; }
  .copyright { font-size: 11px; }
}
@media (max-width: 480px) {
  :root { --gutter: 24px; }
  .header-inner { min-height: 81px; }
  .primary-nav { gap: 20px; }
  .nav-focus { display: none !important; }
  .primary-nav .nav-contact { gap: 9px; }
  .nav-contact span { font-size: 18px; }
  .wordmark { font-size: 30px; }
  .hero { padding-top: 60px; }
  .hero-eyebrow { font-size: 9px; letter-spacing: .055em; margin-bottom: 34px; }
  h1 { font-size: clamp(58px, 14.7vw, 70px); line-height: 1.02; }
  .hero-bottom { margin-top: 34px; }
  .hero-description { font-size: 19px; line-height: 1.52; }
  .hero-baseline { gap: 11px; font-size: 10px; letter-spacing: -.015em; }
  .hero-baseline span + span { padding-left: 13px; }
  .hero-baseline span + span::before { width: 2px; height: 2px; top: 6px; }
  .perspective-copy { grid-template-columns: 1fr; gap: 18px; }
  .perspective h2 { font-size: 31px; }
  .perspective h2 br { display: none; }
  .focus-heading { flex-direction: column; align-items: start; gap: 24px; }
  .focus-heading h2 { font-size: 42px; }
  .desktop-break { display: none; }
  .section-intro { max-width: 280px; }
  .principles-heading h2 { font-size: 40px; }
  .principle-item { gap: 16px; grid-template-columns: 21px 1fr; }
  .principle-item h3 { font-size: 20px; }
  .contact h2 { font-size: 71px; }
  .email-link { font-size: 25px; }
  .footer-wordmark { font-size: 28px; }
}
@media (max-width: 359px) {
  :root { --gutter: 19px; }
  .primary-nav { gap: 14px; font-size: 11px; }
  .wordmark { font-size: 27px; }
  .hero-eyebrow { font-size: 8px; }
  h1 { font-size: 55px; }
  .hero-baseline { gap: 7px; font-size: 9px; }
  .hero-baseline span + span { padding-left: 10px; }
  .contact h2 { font-size: 64px; }
  .email-link { font-size: 23px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}
@media print {
  :root { --bg: white; --surface: #f3f3f3; --text: #111; --muted: #444; --soft: #333; --line: #bbb; --accent: #333; --gutter: 0; }
  .site-header { position: static; }
  .primary-nav, .hero-link, .copy-email, .skip-link { display: none !important; }
  .section { padding-block: 36px; }
  .hero { padding-top: 24px; }
  h1 { font-size: 72px; }
  .hero-bottom { margin-top: 32px; padding-bottom: 32px; }
  .principles { background: none; }
  .focus-item, .principle-item { break-inside: avoid; }
  .footer-inner { min-height: 80px; }
}

/* Brand and appearance controls. */
[hidden] { display: none !important; }
.header-inner { gap: 40px; }
.wordmark { align-items: center; padding: 0; line-height: 1; flex: 0 0 auto; }
.brand-logo { display: block; width: 202px; height: auto; overflow: visible; }
.primary-nav { margin-left: auto; gap: 30px; }
.header-actions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
/* Two explicit icon targets, with one sliding active indicator. */
.theme-switch { position: relative; isolation: isolate; display: inline-flex; flex: 0 0 auto; padding: 3px; gap: 0; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.theme-switch::before { content: ""; position: absolute; pointer-events: none; z-index: 0; top: 3px; left: 3px; width: 44px; height: 44px; border-radius: 50%; background: var(--button-active); transform: translateX(44px); transition: transform 180ms ease, background-color 180ms ease; }
:root[data-theme="light"] .theme-switch::before { transform: translateX(0); }
.theme-button { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 44px; width: 44px; height: 44px; min-width: 44px; min-height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; touch-action: manipulation; transition: color 180ms ease; }
.theme-button svg { display: block; width: 18px; height: 18px; pointer-events: none; }
.theme-button:hover { color: var(--text); }
.theme-button[aria-pressed="true"] { color: var(--button-ink); }
.theme-button:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; border-radius: 50%; }
.menu-toggle { display: none; align-items: center; justify-content: center; width: 44px; min-height: 44px; border: 1px solid var(--line); border-radius: 50%; color: var(--text); background: transparent; padding: 0; cursor: pointer; }
.menu-toggle svg { width: 22px; height: 22px; }
.menu-line-one, .menu-line-two { transform-origin: 12px 12px; transition: transform 150ms ease; }
.menu-toggle[aria-expanded="true"] .menu-line-one { transform: translateY(4px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-line-two { transform: translateY(-4px) rotate(-45deg); }
.footer-wordmark .brand-logo { width: 164px; }
.copy-feedback { color: var(--muted); font-size: 12px !important; line-height: 1.5 !important; min-height: 0; }
.copy-feedback:not(:empty) { margin-top: 5px; }
.manual-copy { width: min(100%, 340px); margin-top: 12px; padding: 12px 14px; font: inherit; font-size: 16px; border: 1px solid var(--line); background: var(--surface); color: var(--text); border-radius: 3px; }
.manual-copy:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (min-width: 901px) { .menu-toggle { display: none !important; } }
@media (max-width: 1100px) and (min-width: 901px) {
  .header-inner { gap: 24px; }
  .primary-nav { gap: 22px; font-size: 13px; }
  .primary-nav .nav-contact { gap: 10px; }
  .brand-logo { width: 174px; }
}
@media (max-width: 900px) {
  .header-inner { min-height: 88px; gap: 20px; }
  .brand-logo { width: 184px; }
  .header-actions { margin-left: auto; }
  .menu-toggle { display: inline-flex; }
  .js .primary-nav { position: absolute; top: 100%; left: 0; right: 0; margin: 0; padding: 18px var(--gutter) 26px; background: var(--bg); border-bottom: 1px solid var(--line); display: none; flex-direction: column; align-items: stretch; gap: 2px; }
  .js .site-header[data-menu-open="true"] .primary-nav { display: flex; }
  .primary-nav a, .primary-nav .nav-contact { min-height: 50px; font-size: 16px; }
  .primary-nav .nav-contact { justify-content: space-between; }
  .nav-focus { display: inline-flex !important; }
  html:not(.js) .header-inner { flex-wrap: wrap; padding-block: 20px 10px; }
  html:not(.js) .primary-nav { width: 100%; flex-wrap: wrap; gap: 10px 24px; margin: 0; }
  html:not(.js) .primary-nav a { font-size: 13px; }
}
@media (max-width: 520px) {
  .header-inner { min-height: 82px; gap: 10px; }
  .brand-logo { width: 149px; }
  .header-actions { gap: 8px; }
  .menu-toggle { width: 42px; min-height: 44px; border: none; }
  .footer-wordmark .brand-logo { width: 149px; }
}
@media (max-width: 359px) {
  .brand-logo { width: 119px; }
  .header-inner { gap: 7px; }
  .header-actions { gap: 4px; }
  .footer-wordmark .brand-logo { width: 135px; }
}
@media print {
  :root, :root[data-theme="dark"], :root[data-theme="light"] { color-scheme: light; --bg: #fff; --surface: #f3f3f3; --text: #111; --muted: #444; --soft: #333; --line: #bbb; --accent: #333; --gutter: 0; }
  .header-actions, .copy-feedback, .manual-copy { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  .theme-switch::before, .theme-button { transition: none !important; }
}
@media (forced-colors: active) {
  .theme-switch { border-color: ButtonText; }
  .theme-switch::before { background: Highlight; forced-color-adjust: none; }
  .theme-button[aria-pressed="true"] { color: HighlightText; forced-color-adjust: none; }
}
