/* ===================================================================
   Clemealthy iTechnology — base styles
   Palette:  ink #0C2C45 · abyss #081826 · gold #B8923D · pale-gold #DCC287
             cream #F6F3EC · paper #FFFFFF · slate #6E7B86
   Type:     Fraunces (display) · Inter (body) · IBM Plex Mono (utility)
=================================================================== */

:root {
  --ink: #0C2C45;
  --abyss: #071622;
  --gold: #B8923D;
  --pale-gold: #DCC287;
  --cream: #F6F3EC;
  --paper: #FFFFFF;
  --slate: #6E7B86;
  --slate-light: #A9B4BC;
  --line: rgba(12, 44, 69, 0.12);
  --line-dark: rgba(246, 243, 236, 0.14);

  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", "SF Mono", monospace;

  --max: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

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

body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

img { display: block; max-width: 100%; }

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

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.eyebrow::before {
  content: "";
  width: 14px;
  height: 1px;
  background: var(--gold);
  display: inline-block;
}

/* ---------- focus ---------- */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ===================== NAV ===================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 40px;
  transition: background 0.4s ease, border-color 0.4s ease, padding 0.4s ease;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(246, 243, 236, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  padding: 14px 40px;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.nav__brand img {
  height: 30px;
  width: auto;
  transition: height 0.4s ease;
}

.nav.scrolled .nav__brand img { height: 26px; }

.nav__links {
  display: flex;
  gap: 36px;
  font-size: 13px;
  letter-spacing: 0.04em;
  font-family: var(--mono);
  text-transform: uppercase;
}

.nav__links a {
  position: relative;
  color: var(--ink);
  opacity: 0.72;
  transition: opacity 0.25s ease;
}
.nav__links a:hover { opacity: 1; }
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.nav__links a:hover::after { transform: scaleX(1); }

/* ===================== HERO ===================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 120px;
  overflow: hidden;
}

.hero__flutes {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  z-index: 0;
}

.hero__flutes span {
  width: 1px;
  height: 100%;
  background: linear-gradient(to bottom, transparent 0%, var(--line) 18%, var(--line) 82%, transparent 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
}

.hero__node {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  background: var(--cream);
  z-index: 1;
  animation: pulse 3.6s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(184,146,61,0.0); }
  50% { box-shadow: 0 0 0 6px rgba(184,146,61,0.10); }
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 480;
  font-size: clamp(48px, 8vw, 96px);
  line-height: 0.98;
  letter-spacing: -0.01em;
  max-width: 16ch;
  margin-top: 22px;
}

.hero h1 em {
  font-style: italic;
  font-weight: 360;
  color: var(--gold);
}

.hero p.lede {
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.6;
  color: var(--slate);
  max-width: 46ch;
  margin-top: 26px;
}

.hero__meta {
  margin-top: 64px;
  display: flex;
  gap: 56px;
  flex-wrap: wrap;
}

.hero__meta div {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate);
}

.hero__meta div strong {
  display: block;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  color: var(--ink);
  margin-top: 6px;
}

.scroll-cue {
  position: absolute;
  bottom: 36px;
  left: 40px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--slate);
  z-index: 1;
}

.scroll-cue__line {
  width: 1px;
  height: 34px;
  background: var(--slate-light);
  position: relative;
  overflow: hidden;
}
.scroll-cue__line::after {
  content: "";
  position: absolute;
  top: -100%;
  left: 0; right: 0;
  height: 100%;
  background: var(--gold);
  animation: drip 2.4s ease-in-out infinite;
}
@keyframes drip {
  0% { top: -100%; }
  60% { top: 100%; }
  100% { top: 100%; }
}

/* ===================== SECTION SHELL ===================== */
section {
  position: relative;
  padding: 140px 0;
}

.section-head {
  margin-bottom: 72px;
  max-width: 640px;
}

.section-head h2 {
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 46px);
  font-weight: 480;
  letter-spacing: -0.01em;
  margin-top: 18px;
  line-height: 1.1;
}

/* ===================== ABOUT ===================== */
.about {
  background: var(--ink);
  color: var(--cream);
}

.about .eyebrow { color: var(--pale-gold); }
.about .eyebrow::before { background: var(--pale-gold); }

.about .section-head p {
  color: var(--slate-light);
  font-size: 16px;
  line-height: 1.7;
  margin-top: 18px;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
}

.pillar {
  background: var(--ink);
  padding: 44px 36px 40px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.pillar__glyph {
  width: 34px;
  height: 44px;
}

.pillar h3 {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 500;
  line-height: 1.3;
}

.pillar p {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--slate-light);
}

.pillar__index {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--gold);
  letter-spacing: 0.1em;
}

/* ===================== PRINCIPLES STRIP ===================== */
.principles {
  background: var(--abyss);
  padding: 70px 0;
}

.principles .wrap {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 28px;
}

.principle {
  flex: 1 1 220px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.principle__mark {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  color: var(--gold);
  line-height: 1;
}

.principle p {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--slate-light);
}

.principle strong {
  display: block;
  color: var(--cream);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

/* ===================== APPROACH ===================== */
.approach {
  background: var(--cream);
}

.approach__grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 80px;
  align-items: start;
}

.approach__visual {
  position: sticky;
  top: 140px;
}

.column-graphic {
  width: 100%;
  max-width: 220px;
}

.approach__list {
  display: flex;
  flex-direction: column;
}

.approach__row {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 24px;
  padding: 30px 0;
  border-top: 1px solid var(--line);
}

.approach__row:first-child { border-top: 1px solid var(--line); }

.approach__row .tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--gold);
  padding-top: 4px;
}

.approach__row h4 {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 500;
  margin-bottom: 8px;
}

.approach__row p {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--slate);
  max-width: 52ch;
}

/* ===================== CONTACT ===================== */
.contact {
  background: var(--ink);
  color: var(--cream);
  padding-bottom: 0;
}

.contact__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 48px;
  padding-bottom: 110px;
  border-bottom: 1px solid var(--line-dark);
}

.contact h2 {
  font-family: var(--serif);
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 480;
  line-height: 1.08;
  max-width: 14ch;
  margin-top: 18px;
}

.contact h2 em {
  font-style: italic;
  color: var(--gold);
  font-weight: 360;
}

.contact__email {
  display: inline-flex;
  align-items: baseline;
  gap: 14px;
  font-family: var(--mono);
  font-size: clamp(18px, 2.6vw, 26px);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 10px;
  transition: opacity 0.2s ease, gap 0.25s ease;
}

.contact__email:hover { opacity: 0.78; gap: 20px; }

.contact__email .arrow { color: var(--gold); transition: transform 0.25s ease; }
.contact__email:hover .arrow { transform: translateX(4px); }

.contact__note {
  font-size: 13px;
  color: var(--slate-light);
  margin-top: 22px;
  max-width: 34ch;
  line-height: 1.6;
}

/* ===================== FOOTER ===================== */
.foot {
  background: var(--ink);
  color: var(--slate-light);
  padding: 30px 0 36px;
}

.foot .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
}

.foot a { color: var(--slate-light); }
.foot a:hover { color: var(--gold); }

/* ===================== REVEAL ===================== */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 920px) {
  .approach__grid { grid-template-columns: 1fr; gap: 40px; }
  .approach__visual { position: static; display: flex; justify-content: center; margin-bottom: 10px; }
  .column-graphic { max-width: 140px; }
  .pillars { grid-template-columns: 1fr; }
  .nav__links { display: none; }
}

@media (max-width: 640px) {
  .wrap { padding: 0 24px; }
  .nav { padding: 18px 24px; }
  section { padding: 96px 0; }
  .hero { padding-top: 96px; }
  .hero__meta { gap: 36px; margin-top: 48px; }
  .contact__inner { padding-bottom: 70px; }
  .principles .wrap { flex-direction: column; }
}
