/* C.IAM — base stylesheet
   Voice: warm, direct, honest. Buddha smile.
   Aesthetic: deep near-black, gold restraint, generous whitespace, Cormorant + DM Sans.
*/

:root {
  /* Warm cream palette — light variant.
     The dark palette (kept below as comments) is the brief's default —
     swap by uncommenting if Wahid prefers the original. */
  --bg: #f4ede0;
  --bg-elev: #ebe2d0;
  --line: #d6c7a8;
  --line-soft: #e3d8bd;
  --text: #1a1611;
  --text-soft: #5b4e3a;
  --text-quiet: #7d705a;
  --text-faint: #ad9f80;
  --gold: #b8902a;          /* deeper gold for legibility on cream */
  --gold-soft: #8a6f25;     /* italic emphasis colour */
  --gold-deep: #6e5818;
  --cream: #fff8c0;
  --max: 1100px;
  --max-text: 640px;
}

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

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 300;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

a { color: var(--gold-soft); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--gold); }

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

::selection { background: var(--gold); color: var(--bg); }

/* Nav */
.nav {
  padding: 1.5rem clamp(1.25rem, 4vw, 2.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 0.5px solid var(--line-soft);
  position: sticky;
  top: 0;
  background: rgba(244, 237, 224, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 50;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  transition: opacity .2s ease;
}

.nav-logo img { height: 56px; width: auto; display: block; }
.nav-logo:hover, .nav-logo:focus-visible { opacity: 0.75; outline: none; }

@media (max-width: 720px) {
  .nav-logo img { height: 44px; }
}
@media (max-width: 480px) {
  .nav-logo img { height: 38px; }
}

.nav-links {
  display: flex;
  gap: clamp(1rem, 3vw, 2rem);
  list-style: none;
  align-items: center;
}

.nav-links a {
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-quiet);
  font-weight: 400;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-soft);
  font-size: 20px;
  cursor: pointer;
}

@media (max-width: 720px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    background: var(--bg);
    padding: 1.5rem;
    border-bottom: 0.5px solid var(--line-soft);
    gap: 1.25rem;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
}

/* Sections */
section { padding: clamp(3.5rem, 9vw, 7rem) clamp(1.25rem, 4vw, 2.5rem); }
.container { max-width: var(--max); margin: 0 auto; }
.container-text { max-width: var(--max-text); margin: 0 auto; }

/* Type */
h1, h2, h3 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  line-height: 1.15;
  color: var(--text);
}

h1 { font-size: clamp(2.4rem, 6vw, 4.5rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 1.25rem; }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.6rem); margin-bottom: 0.75rem; }

h1 em, h2 em, h3 em { font-style: italic; color: var(--text); }

p {
  font-size: clamp(15px, 1.6vw, 17px);
  color: var(--text);
  margin-bottom: 1.25rem;
  line-height: 1.75;
}

p.lead { font-size: clamp(17px, 2vw, 20px); color: var(--text); }
p.quiet { color: var(--text-quiet); }

.eyebrow {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 1.5rem;
  display: inline-block;
}

.divider {
  height: 0.5px;
  background: var(--line);
  margin: clamp(2rem, 5vw, 3.5rem) 0;
  border: none;
}

/* Hero */
.hero {
  padding-top: clamp(2.5rem, 6vw, 5rem);
  padding-bottom: clamp(3rem, 7vw, 5rem);
  text-align: center;
}

.hero-logo { max-width: min(440px, 75vw); margin: 0 auto clamp(1.5rem, 4vw, 2.5rem); }
.hero-logo img { width: 100%; }

/* Hero mark — Cormorant wordmark + Ellen's gold eye, recoloured for dark bg */
.hero-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 3vw, 2rem);
  margin: 0 auto clamp(2rem, 5vw, 3rem);
  max-width: min(620px, 88vw);
}
.hero-wordmark {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 400;
  font-size: clamp(3.6rem, 9vw, 6.4rem);
  letter-spacing: -0.01em;
  color: var(--text);
  line-height: 1;
}
.hero-eye {
  width: clamp(72px, 14vw, 110px);
  height: auto;
  flex-shrink: 0;
}
@media (max-width: 480px) {
  .hero-mark { gap: 0.75rem; }
}

.hero h1 {
  margin-bottom: 1.5rem;
  max-width: 18ch;
  margin-left: auto;
  margin-right: auto;
}
.hero p.lead { max-width: 32ch; margin: 0 auto 2.5rem; color: var(--text-soft); }

/* Buttons */
.btn {
  display: inline-block;
  padding: 16px 36px;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: #ffffff;
  color: var(--text);
  border: 0.5px solid var(--text);
  cursor: pointer;
  transition: background .25s ease, color .25s ease, border-color .25s ease, transform .12s ease, box-shadow .25s ease;
  font-weight: 500;
  text-align: center;
  min-width: 220px;
  border-radius: 4px;
  box-shadow: 0 1px 0 rgba(94, 75, 30, 0.04), 0 8px 24px -12px rgba(94, 75, 30, 0.12);
}

.btn:hover, .btn:focus-visible {
  background: var(--text);
  color: #ffffff;
  border-color: var(--text);
  outline: none;
  box-shadow: 0 1px 0 rgba(0,0,0,0.06), 0 12px 32px -14px rgba(0,0,0,0.25);
}
.btn:active { transform: scale(0.985); }

.btn-ghost {
  background: transparent;
  color: var(--text-soft);
  border: 0.5px solid var(--line);
}
.btn-ghost:hover { background: transparent; color: var(--gold); border-color: var(--gold); }

/* The paradox block */
.paradox {
  text-align: center;
  border-top: 0.5px solid var(--line);
  border-bottom: 0.5px solid var(--line);
  padding: clamp(3rem, 7vw, 5rem) 1.5rem;
  margin: 0;
}
.paradox p {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.5rem, 3.5vw, 2.4rem);
  font-style: italic;
  font-weight: 300;
  color: var(--text);
  line-height: 1.4;
  max-width: 28ch;
  margin: 0 auto;
}
.paradox p span { color: var(--gold-soft); }

/* Two-column / grid */
.grid {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
}
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* Phase chips on home */
.phases {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin: 2rem auto;
  max-width: 720px;
}
.phase-chip {
  font-family: 'Cormorant Garamond', serif;
  font-size: 14px;
  font-style: italic;
  padding: 6px 14px;
  border: 0.5px solid var(--line);
  color: var(--text-soft);
  letter-spacing: 0.02em;
}

/* Cards */
.card {
  border: 0.5px solid var(--line);
  padding: clamp(1.5rem, 3vw, 2rem);
}
.card h3 { color: var(--gold-soft); margin-bottom: 0.75rem; }
.card p { color: var(--text-quiet); font-size: 14px; }

/* Values list */
.values { list-style: none; }
.values li {
  border-top: 0.5px solid var(--line);
  padding: 1.5rem 0;
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 1.5rem;
}
.values li:last-child { border-bottom: 0.5px solid var(--line); }
.values .v-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-style: italic;
  color: var(--gold-soft);
}
.values .v-body { color: var(--text-soft); font-size: 15px; line-height: 1.7; }

@media (max-width: 540px) {
  .values li { grid-template-columns: 1fr; gap: 0.5rem; }
}

/* Form */
form.simple { display: flex; flex-direction: column; gap: 1rem; max-width: 560px; margin: 0 auto; }
form.simple label { font-size: 11px; letter-spacing: 0.14em; color: var(--text-soft); text-transform: uppercase; font-weight: 400; }
form.simple input, form.simple textarea {
  width: 100%;
  background: #fff;
  border: 0.5px solid var(--line);
  padding: 14px 16px;
  color: var(--text);
  font-family: inherit;
  font-size: 16px;
  outline: none;
  transition: border-color .25s ease, box-shadow .25s ease;
  border-radius: 4px;
  -webkit-appearance: none;
  appearance: none;
}
form.simple input:focus, form.simple textarea:focus {
  border-color: var(--text);
  box-shadow: 0 0 0 3px rgba(26, 22, 17, 0.08);
}
form.simple input::placeholder, form.simple textarea::placeholder { color: var(--text-faint); }
form.simple textarea { min-height: 140px; resize: vertical; }

/* Eye accent */
.eye-accent {
  width: 64px;
  height: auto;
  margin: 0 auto 2rem;
  display: block;
  opacity: 0.85;
}

/* Footer */
.footer {
  border-top: 0.5px solid var(--line-soft);
  padding: 2.5rem clamp(1.25rem, 4vw, 2.5rem);
  margin-top: 4rem;
  text-align: center;
  color: var(--text-faint);
  font-size: 12px;
  letter-spacing: 0.1em;
}
.footer a { color: var(--text-quiet); margin: 0 0.75rem; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; }
.footer a:hover { color: var(--gold-soft); }
.footer .footer-tag {
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px;
  font-style: italic;
  color: var(--text-soft);
  margin-top: 1rem;
  letter-spacing: 0;
  text-transform: none;
}

/* Fade in on load */
/* Subtle fade — kept short (~0.4s) and starts from opacity 0.4 so the
   text is never invisible during the keyframe. Respects reduced-motion. */
@keyframes fadeUp { from { opacity: 0.4; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.fade-up { animation: fadeUp .4s ease-out forwards; }
.fade-up.delay-1 { animation-delay: .05s; opacity: 0.4; }
.fade-up.delay-2 { animation-delay: .1s; opacity: 0.4; }
.fade-up.delay-3 { animation-delay: .15s; opacity: 0.4; }
@media (prefers-reduced-motion: reduce) {
  .fade-up, .fade-up.delay-1, .fade-up.delay-2, .fade-up.delay-3 {
    animation: none;
    opacity: 1;
  }
}

/* Coming soon — quiet tag, not a ribbon */
.soon {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--text-faint);
  padding: 2px 8px;
  margin-left: 0.5rem;
  text-transform: uppercase;
  vertical-align: middle;
  font-weight: 400;
}
.soon::before { content: "·"; margin-right: 0.5rem; color: var(--text-faint); }

/* Page intro — width-aligned with body container so the visual flow stays clean */
.page-intro {
  text-align: center;
  padding: clamp(3rem, 8vw, 5rem) clamp(1.25rem, 4vw, 2.5rem) clamp(2rem, 5vw, 3rem);
  max-width: var(--max-text);
  margin: 0 auto;
}
.page-intro h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin-bottom: 1rem; }
.page-intro p { color: var(--text-soft); max-width: 36ch; margin: 0 auto; }

/* Quote */
blockquote {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  color: var(--gold-soft);
  border-left: 1px solid var(--gold);
  padding-left: 1.5rem;
  margin: 2.5rem 0;
  line-height: 1.5;
}

.muted { color: var(--text-quiet); }
.gold { color: var(--gold-soft); transition: color .2s ease; }
.gold:hover { color: var(--gold); }
/* When used as a standalone link (outside nav), give it a subtle underline */
p .gold, .center .gold {
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
}
.tiny { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-faint); }
.center { text-align: center; }
