/* ============================================================
   Tricoa — single-page site
   Aesthetic: refined editorial, dark ink + warm amber accent
   ============================================================ */

:root {
  --ink:      #0b0d11;
  --ink-2:    #111419;
  --panel:    #14181e;
  --line:     #262b33;
  --cream:    #f2ede2;
  --muted:    #9a958a;
  --muted-2:  #6f6c66;
  --amber:    #e6b14e;
  --amber-dk: #c9933a;
  --max:      1180px;
  --pad:      clamp(1.25rem, 5vw, 4rem);
  --r:        14px;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "Hanken Grotesk", system-ui, sans-serif;
  --mono:  "JetBrains Mono", ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); width: 100%; }

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

.hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- decorative layers ---------- */
.grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: .04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.aurora {
  position: fixed; z-index: 0; pointer-events: none;
  top: -25vh; left: 50%; transform: translateX(-50%);
  width: 120vw; height: 90vh;
  background:
    radial-gradient(closest-side at 30% 40%, rgba(230,177,78,.16), transparent 70%),
    radial-gradient(closest-side at 72% 30%, rgba(80,120,160,.12), transparent 70%);
  filter: blur(20px);
}
body > main, body > .nav, body > .footer { position: relative; z-index: 2; }

/* ---------- shared type ---------- */
.eyebrow, .section__kicker, .card__no, .nav__links a, .footer h4, .field label,
.hero__meta dt, .stat__label {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .72rem;
}

.section__title {
  font-family: var(--serif);
  font-weight: 360;
  font-optical-sizing: auto;
  font-size: clamp(2rem, 4.6vw, 3.3rem);
  line-height: 1.06;
  letter-spacing: -.015em;
  margin: .6rem 0 0;
}
.section__title em { font-style: italic; color: var(--amber); }

.section__kicker { color: var(--amber); display: inline-flex; align-items: center; gap: .55rem; margin: 0; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 14px var(--amber); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--mono); font-size: .8rem; letter-spacing: .06em;
  padding: .85rem 1.4rem; border-radius: 100px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .25s ease, background .25s ease, color .25s ease, border-color .25s ease;
}
.btn span { transition: transform .25s ease; }
.btn:hover span { transform: translateX(4px); }
.btn--solid { background: var(--amber); color: #20160a; font-weight: 500; }
.btn--solid:hover { background: var(--cream); transform: translateY(-2px); }
.btn--line { border-color: var(--line); color: var(--cream); }
.btn--line:hover { border-color: var(--amber); color: var(--amber); }
.btn--ghost { border-color: var(--line); color: var(--cream); padding: .6rem 1.1rem; }
.btn--ghost:hover { border-color: var(--amber); color: var(--amber); }
.btn--block { width: 100%; justify-content: center; margin-top: .4rem; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease;
}
.nav.is-scrolled {
  background: rgba(11,13,17,.72);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav__inner { display: flex; align-items: center; gap: 1.5rem; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--serif); font-size: 1.35rem; letter-spacing: -.01em; }
.brand__mark { color: var(--amber); font-size: 1.1em; }
.nav__links { display: flex; gap: 1.8rem; margin-left: auto; }
.nav__links a { color: var(--muted); transition: color .2s ease; position: relative; }
.nav__links a::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 1px; background: var(--amber); transition: width .25s ease; }
.nav__links a:hover { color: var(--cream); }
.nav__links a:hover::after { width: 100%; }
.nav__cta { margin-left: .2rem; }
.nav__menu { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; margin-left: auto; }
.nav__menu span { width: 22px; height: 2px; background: var(--cream); transition: .3s; }

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(4rem, 11vw, 9rem) 0 clamp(3rem, 7vw, 6rem); }
.hero__inner { max-width: 880px; }
.eyebrow { color: var(--muted); display: flex; align-items: center; gap: .9rem; margin: 0 0 1.6rem; }
.eyebrow i { color: var(--amber); font-style: normal; }
.hero__title {
  font-family: var(--serif); font-weight: 340; font-optical-sizing: auto;
  font-size: clamp(2.7rem, 8vw, 5.6rem); line-height: 1.02;
  letter-spacing: -.025em; margin: 0;
}
.hero__title em { font-style: italic; color: var(--amber); }
.hero__lede { color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.25rem); max-width: 44ch; margin: 1.8rem 0 0; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.4rem; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 2.6rem; margin: 3.4rem 0 0; padding-top: 2rem; border-top: 1px solid var(--line); }
.hero__meta dt { color: var(--muted-2); margin-bottom: .35rem; }
.hero__meta dd { margin: 0; font-family: var(--serif); font-size: 1.35rem; }
.hero__index {
  position: absolute; right: -2vw; bottom: -4vw; z-index: -1;
  font-family: var(--serif); font-style: italic; font-weight: 300;
  font-size: clamp(10rem, 34vw, 26rem); line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(230,177,78,.14);
  pointer-events: none; user-select: none;
}

/* ---------- sections ---------- */
.section { padding: clamp(4rem, 9vw, 7.5rem) 0; }
.section__head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }

/* ---------- services ---------- */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem; }
.card {
  position: relative; background: var(--ink-2); border: 1px solid var(--line);
  border-radius: var(--r); padding: 2.2rem 2rem 1.8rem; overflow: hidden;
  transition: transform .35s ease, border-color .35s ease, background .35s ease;
}
.card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 2px;
  background: linear-gradient(90deg, var(--amber), transparent);
  transform: scaleX(0); transform-origin: left; transition: transform .4s ease;
}
.card:hover { transform: translateY(-5px); border-color: #36363a; background: var(--panel); }
.card:hover::before { transform: scaleX(1); }
.card__no { color: var(--amber); display: block; margin-bottom: 1rem; }
.card h3 { font-family: var(--serif); font-weight: 400; font-size: 1.55rem; margin: 0 0 .7rem; letter-spacing: -.01em; }
.card p { color: var(--muted); margin: 0 0 1.4rem; font-size: .98rem; }
.card__tags { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; }
.card__tags li { font-family: var(--mono); font-size: .7rem; color: var(--muted); border: 1px solid var(--line); border-radius: 100px; padding: .25rem .7rem; }

/* ---------- about ---------- */
.section--about { border-top: 1px solid var(--line); }
.about { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.about__copy { color: var(--muted); margin: 1.6rem 0 0; max-width: 52ch; }
.about__points { list-style: none; display: flex; flex-wrap: wrap; gap: 2.4rem; margin: 2.4rem 0 0; padding: 0; }
.about__points li { color: var(--muted); font-size: .9rem; }
.about__points strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 2.4rem; color: var(--cream); line-height: 1; margin-bottom: .35rem; }
.about__panel { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--r); padding: 2.4rem; position: relative; }
.about__panel::before { content: "“"; position: absolute; top: -.3rem; left: 1.4rem; font-family: var(--serif); font-size: 6rem; color: rgba(230,177,78,.18); line-height: 1; }
.about__panel blockquote { margin: 1.2rem 0 0; font-family: var(--serif); font-style: italic; font-size: 1.3rem; line-height: 1.4; }
.about__panel figcaption { margin-top: 1.4rem; font-family: var(--mono); font-size: .75rem; color: var(--amber); letter-spacing: .04em; }

/* ---------- stats ---------- */
.section--stats { border-top: 1px solid var(--line); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.stat { border: 1px solid var(--line); border-radius: var(--r); padding: 2.6rem 2rem; background: linear-gradient(180deg, var(--ink-2), transparent); }
.stat__num { display: block; font-family: var(--serif); font-weight: 360; font-size: clamp(3rem, 7vw, 4.6rem); line-height: 1; color: var(--amber); }
.stat__label { display: block; color: var(--muted); margin-top: .8rem; }

/* ---------- contact ---------- */
.section--contact { border-top: 1px solid var(--line); }
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.contact__address { font-style: normal; margin-top: 2rem; display: flex; flex-direction: column; gap: .5rem; color: var(--muted); line-height: 1.5; }
.contact__addr-label { font-family: var(--mono); text-transform: uppercase; letter-spacing: .14em; font-size: .72rem; color: var(--muted-2); }
.contact__form { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--r); padding: 2rem; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; color: var(--muted); margin-bottom: .5rem; }
.field input, .field textarea {
  width: 100%; background: var(--ink); border: 1px solid var(--line); border-radius: 9px;
  color: var(--cream); font-family: var(--sans); font-size: .98rem; padding: .8rem .9rem;
  transition: border-color .2s ease, box-shadow .2s ease; resize: vertical;
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px rgba(230,177,78,.14); }
.field input:user-invalid, .field textarea:user-invalid { border-color: #b5523f; }
.form__note { font-family: var(--mono); font-size: .75rem; color: var(--muted); margin: 1rem 0 0; min-height: 1em; }
.form__note.is-error { color: #e0856f; }
.form__note.is-ok { color: var(--amber); }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: clamp(3rem, 6vw, 4.5rem) 0 2.5rem; }
.footer__inner { display: flex; justify-content: space-between; gap: 3rem; flex-wrap: wrap; }
.footer__brand .brand__mark { font-size: 1.3rem; }
.footer__brand { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; max-width: 18rem; }
.footer__brand .brand__name { font-family: var(--serif); font-size: 1.3rem; }
.footer__brand p { flex-basis: 100%; color: var(--muted); font-size: .9rem; margin: .6rem 0 0; }
.footer__cols { display: flex; gap: 3.5rem; }
.footer__cols h4 { color: var(--cream); margin: 0 0 1rem; }
.footer__cols a { display: block; color: var(--muted); font-size: .92rem; padding: .25rem 0; transition: color .2s ease; }
.footer__cols a:hover { color: var(--amber); }
.footer__legal { margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; line-height: 1.55; }
.footer__legal p { margin: 0 0 .35rem; max-width: 70ch; }
.footer__legal strong { color: var(--cream); font-weight: 600; }
.footer__base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; margin-top: 1.4rem; padding-top: 1.4rem; border-top: 1px solid var(--line); color: var(--muted-2); font-family: var(--mono); font-size: .72rem; }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 820px) {
  .cards, .stats, .about, .contact { grid-template-columns: 1fr; }
  .nav__links, .nav__cta { display: none; }
  .nav__menu { display: flex; }
  .nav.is-open .nav__links {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: 72px; left: 0; right: 0;
    background: rgba(11,13,17,.96); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line); padding: 1rem var(--pad);
  }
  .nav.is-open .nav__links a { padding: .8rem 0; border-bottom: 1px solid var(--line); }
  .nav.is-open .nav__menu span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .nav.is-open .nav__menu span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
}
