/* ============================================================
   NiLa Digital Strategy — site styles
   Type: Cormorant Garamond (display) + DM Sans (text/UI)
   Color: 80% Graphite/Ivory · 15% Slate · 5% Eucalyptus+Champagne
   ============================================================ */

:root {
  /* Brand palette */
  --graphite: #0F1113;
  --ivory: #F7F7F5;
  --slate: #37485F;
  --eucalyptus: #5F7A6B;
  --champagne: #EBC9A6;
  --stone: #D9DCD6;

  /* Working tones */
  --ink: #15181B;          /* headings */
  --body: #41474E;         /* body copy */
  --muted: #6B7077;        /* secondary / captions */
  --paper: #FFFFFF;        /* cards */
  --line: rgba(15, 17, 19, 0.10);
  --line-soft: rgba(15, 17, 19, 0.06);

  /* Tweakable */
  --display-scale: 1;
  --body-size: 18px;
  --section-rhythm: 1;
  --heading-weight: 500;
  --accent: var(--eucalyptus);   /* primary button + hover */
  --accent-ink: #FFFFFF;

  /* Rhythm */
  --pad-section: calc(132px * var(--section-rhythm));
  --container: 1220px;
  --radius: 4px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--body);
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: var(--body-size);
  line-height: 1.6;
  font-feature-settings: "kern" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

::selection { background: var(--champagne); color: var(--graphite); }

/* ---------- Type ---------- */
.display {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: var(--heading-weight);
  color: var(--ink);
  line-height: 1.06;
  letter-spacing: -0.01em;
  text-wrap: pretty;
  margin: 0;
}
.serif-italic { font-family: "Cormorant Garamond", Georgia, serif; font-style: italic; }

h1.display { font-size: calc(clamp(2.6rem, 4.6vw, 4rem) * var(--display-scale)); line-height: 1.08; }
h2.display { font-size: calc(clamp(2.1rem, 3.8vw, 3.2rem) * var(--display-scale)); }
h3.display { font-size: calc(clamp(1.5rem, 2.2vw, 2rem) * var(--display-scale)); }

.eyebrow {
  font-family: "DM Sans", sans-serif;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--slate);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  margin: 0;
}
.eyebrow .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--champagne); display: inline-block; }

.index-num {
  font-family: "DM Sans", sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.lead {
  font-size: 1.18rem;
  line-height: 1.62;
  color: var(--body);
  max-width: 34ch;
}

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(22px, 5vw, 56px);
}
section { padding-block: var(--pad-section); }

.section-head { max-width: 720px; }
.section-head .eyebrow { margin-bottom: 22px; }
.section-head h2 { margin-bottom: 0; }

.divider { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ---------- Buttons ---------- */
.btn {
  font-family: "DM Sans", sans-serif;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  gap: 0.65em;
  padding: 15px 26px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.32s var(--ease), color 0.32s var(--ease),
              border-color 0.32s var(--ease), transform 0.32s var(--ease),
              box-shadow 0.32s var(--ease);
}
.btn .arrow { transition: transform 0.32s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}
.btn-primary:hover {
  background: color-mix(in oklab, var(--accent) 86%, #000 14%);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -14px color-mix(in oklab, var(--accent) 70%, #000);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }

.btn-dark { background: var(--graphite); color: var(--ivory); border-color: var(--graphite); }
.btn-dark:hover { background: #000; transform: translateY(-2px); }

/* link with underline grow */
.text-link {
  font-family: "DM Sans", sans-serif;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  position: relative;
}
.text-link::after {
  content: "";
  position: absolute; left: 0; bottom: -3px;
  width: 100%; height: 1px; background: var(--ink);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.text-link:hover::after { transform: scaleX(1); }
.text-link .arrow { transition: transform 0.32s var(--ease); }
.text-link:hover .arrow { transform: translateX(4px); }

/* ---------- Placeholders ---------- */
.ph {
  position: relative;
  background-color: var(--stone);
  background-image: repeating-linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.5) 0,
    rgba(255, 255, 255, 0.5) 1px,
    transparent 1px,
    transparent 11px
  );
  border: 1px solid rgba(15, 17, 19, 0.08);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
}
.ph .ph-label {
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: var(--slate);
  background: rgba(247, 247, 245, 0.86);
  backdrop-filter: blur(2px);
  padding: 7px 11px;
  margin: 16px;
  border-radius: 2px;
  text-transform: lowercase;
}

/* ---------- Logo mark ---------- */
.logo { display: inline-flex; align-items: center; gap: 12px; }
.logo svg { display: block; }
.logo img { display: block; height: 52px; width: auto; }
.logo-word {
  display: flex; flex-direction: column; line-height: 1;
}
.logo-word .name {
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  font-size: 1.55rem;
  color: var(--ink);
  letter-spacing: 0.01em;
}
.logo-word .tag {
  font-family: "DM Sans", sans-serif;
  font-size: 0.52rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 4px;
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
