/* ============================================================
   AesthatiQ — Base: tokens, reset, type, buttons, nav, footer
   ============================================================ */

:root {
  /* surfaces */
  --paper: #FDFCF9;
  --paper-2: #F7F2E9;
  --white: #FFFFFF;
  --line: #ECE5D8;
  --line-strong: #E0D6C3;

  /* ink */
  --ink: #221A11;
  --ink-2: #5B5042;
  --ink-3: #8C8072;

  /* brand */
  --gold: #C2913C;
  --gold-deep: #9A7129;
  --gold-light: #E2C77E;
  --gold-bright: #F1D896;
  --brown: #7A4F28;
  --brown-deep: #3D2713;

  --grad-gold: linear-gradient(135deg, #9A7129 0%, #E2C77E 42%, #C2913C 70%, #8E662366 100%, #9A7129 100%);
  --grad-gold-2: linear-gradient(120deg, #B5832F 0%, #F1D896 50%, #A9792B 100%);
  --grad-ink: linear-gradient(135deg, #2A1C10, #4A3018);

  --shadow-sm: 0 1px 2px rgba(61,39,19,.05), 0 2px 8px rgba(61,39,19,.04);
  --shadow-md: 0 6px 24px -8px rgba(61,39,19,.14), 0 2px 8px rgba(61,39,19,.05);
  --shadow-lg: 0 30px 70px -28px rgba(61,39,19,.28), 0 8px 24px -12px rgba(61,39,19,.12);
  --shadow-gold: 0 18px 50px -16px rgba(154,113,41,.42);

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 34px;

  --maxw: 1240px;
  --gut: clamp(20px, 5vw, 64px);

  --font-display: "Schibsted Grotesk", system-ui, -apple-system, sans-serif;
  --font-body: "Hanken Grotesk", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
}

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

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

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
  font-weight: 400;
  letter-spacing: -0.005em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.025em;
  color: var(--ink);
  text-wrap: balance;
}

p { text-wrap: pretty; }

::selection { background: var(--gold-light); color: var(--brown-deep); }

/* ---- layout helpers ---- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gut); }
.section { position: relative; padding-block: clamp(80px, 11vw, 160px); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-deep);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
}
.eyebrow.center::before { background: var(--gold); }

.gold-text {
  background: var(--grad-gold-2);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-head { max-width: 720px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 {
  font-size: clamp(32px, 4.6vw, 58px);
  margin-top: 22px;
}
.section-head p {
  margin-top: 22px;
  font-size: clamp(17px, 1.5vw, 20px);
  color: var(--ink-2);
  max-width: 56ch;
}
.section-head.center p { margin-inline: auto; }

/* ---- buttons ---- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: 100px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15.5px;
  letter-spacing: -0.01em;
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease), background .3s;
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; transition: transform .4s var(--ease-out); }
.btn-gold {
  color: #2B1E0C;
  background: var(--grad-gold-2);
  background-size: 180% 180%;
  background-position: 0% 50%;
  box-shadow: var(--shadow-gold);
}
.btn-gold:hover { transform: translateY(-2px); background-position: 100% 50%; box-shadow: 0 24px 60px -16px rgba(154,113,41,.55); }
.btn-gold:hover svg { transform: translateX(4px); }
.btn-ghost {
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--gold); color: var(--gold-deep); box-shadow: var(--shadow-md); }
.btn-lg { padding: 18px 32px; font-size: 17px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 600; font-size: 15.5px;
  color: var(--gold-deep);
}
.link-arrow svg { width: 16px; height: 16px; transition: transform .35s var(--ease-out); }
.link-arrow:hover svg { transform: translateX(5px); }

/* ============================ NAV ============================ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .4s var(--ease), border-color .4s, backdrop-filter .4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(253,252,249,.78);
  backdrop-filter: saturate(1.4) blur(16px);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
  border-bottom-color: var(--line);
}
.nav-inner {
  height: 78px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
.nav.scrolled .nav-inner { height: 66px; }
.nav-inner { transition: height .4s var(--ease); }
.brand { display: flex; align-items: center; gap: 11px; }
.brand img.mark { width: 34px; height: 34px; }
.brand .word {
  font-family: var(--font-display); font-weight: 600; font-size: 21px;
  letter-spacing: -0.03em; color: var(--ink);
}
.brand .word b { font-weight: 600; }
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a {
  font-size: 15px; font-weight: 500; color: var(--ink-2);
  position: relative; transition: color .25s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 1.5px; width: 0;
  background: var(--gold); transition: width .3s var(--ease-out);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { width: 100%; }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; }

/* ============================ FOOTER ============================ */
.footer {
  background: var(--brown-deep);
  color: #E9DEC9;
  padding-block: clamp(64px, 8vw, 96px) 36px;
  position: relative;
  overflow: hidden;
}
.footer-glow {
  position: absolute; inset: auto -10% -40% auto; width: 60%; height: 80%;
  background: radial-gradient(circle, rgba(211,162,75,.22), transparent 65%);
  pointer-events: none;
}
.footer-top {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px;
  position: relative;
}
.footer-brand img { height: 30px; width: auto; }
.footer-brand p { color: #C6B68F; max-width: 34ch; font-size: 15px; }
.footer-col h5 {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .22em;
  text-transform: uppercase; color: var(--gold-light); margin-bottom: 18px; font-weight: 500;
}
.footer-col a { display: block; padding: 6px 0; color: #CDBF9D; font-size: 15px; transition: color .25s, transform .25s; }
.footer-col a:hover { color: #fff; transform: translateX(3px); }
.footer-bottom {
  margin-top: 64px; padding-top: 26px; border-top: 1px solid rgba(233,222,201,.14);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  font-size: 13.5px; color: #A99A78; position: relative;
}
.footer-bottom .socials { display: flex; gap: 12px; }
.footer-bottom .socials a {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid rgba(233,222,201,.2); color: #D9CBA6;
  transition: background .3s, border-color .3s, color .3s, transform .3s;
}
.footer-bottom .socials a:hover { background: var(--gold); border-color: var(--gold); color: #2B1E0C; transform: translateY(-2px); }
.footer-bottom .socials svg { width: 16px; height: 16px; }

/* ---- reveal animation base ---- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }
.reveal[data-d="4"] { transition-delay: .32s; }
.reveal[data-d="5"] { transition-delay: .40s; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition-duration: .001s !important; }
  .reveal { opacity: 1; transform: none; }
}

@media (max-width: 920px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 780px) {
  body { font-size: 16px; }
  .nav-links { display: none; }
  .nav-cta .btn-ghost { display: none; }
}
@media (max-width: 560px) {
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
