/* ============================================================
   Tamorlan — clean, light, modern thin typography
   ============================================================ */

:root {
  --bg: #fafaf7;
  --bg-soft: #f3f2ed;
  --ink: #14130f;
  --ink-soft: #4a4942;
  --muted: #8a8881;
  --line: #e5e3dc;
  --accent: #2a4a3a;       /* deep muted green */
  --accent-2: #c9a96e;     /* warm sand */
  --max: 1240px;
  --radius: 2px;
  --ease: cubic-bezier(.2,.7,.2,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter Tight", ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-weight: 300;
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: .005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 300;
  letter-spacing: -.02em;
  margin: 0;
}
h1 { font-size: clamp(2.8rem, 6.4vw, 5.6rem); line-height: 1.02; }
h2 { font-size: clamp(2.1rem, 4.2vw, 3.6rem); line-height: 1.05; }
h3 { font-size: 1.25rem; font-weight: 400; letter-spacing: -.01em; }
h4 { font-size: 1rem; font-weight: 500; font-family: "Inter Tight", sans-serif; letter-spacing: .02em; }

h1 em { font-style: italic; font-weight: 300; color: var(--accent); }

p { margin: 0 0 1em; color: var(--ink-soft); }

.eyebrow {
  font-family: "Inter Tight", sans-serif;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1.5rem;
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem clamp(1.25rem, 4vw, 3rem);
  background: rgba(250, 250, 247, .82);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}

.brand { display: flex; align-items: center; gap: .65rem; }
.brand-logo { width: 28px; height: 28px; border-radius: 50%; }
.brand-name {
  font-family: "Fraunces", serif;
  font-weight: 400;
  font-size: 1.15rem;
  letter-spacing: .01em;
}

.nav-links { display: flex; gap: 2.2rem; }
.nav-links a {
  font-size: .82rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  position: relative;
  transition: color .25s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 0; height: 1px; background: var(--accent);
  transition: width .35s var(--ease);
}
.nav-links a:hover::after { width: 100%; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle span { display: block; width: 22px; height: 1px; background: var(--ink); margin: 5px 0; transition: transform .3s var(--ease), opacity .3s; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 7rem) clamp(1.25rem, 4vw, 3rem) clamp(3rem, 6vw, 5rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero-copy h1 { margin-bottom: 1.8rem; }
.hero-copy .lede {
  font-size: 1.12rem;
  max-width: 38ch;
  color: var(--ink-soft);
  margin-bottom: 2.2rem;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: .9rem; }

.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .95rem 1.6rem;
  font-size: .82rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: all .3s var(--ease);
  cursor: pointer;
}
.btn-primary {
  background: var(--ink); color: var(--bg);
  border: 1px solid var(--ink);
}
.btn-primary:hover { background: var(--accent); border-color: var(--accent); }
.btn-ghost {
  background: transparent; color: var(--ink);
  border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: var(--ink); }

/* Hero visual — concentric rings around the mark */
.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  display: flex; align-items: center; justify-content: center;
}
.hero-mark {
  width: 38%; height: auto; border-radius: 50%;
  position: relative; z-index: 2;
  animation: floatY 7s var(--ease) infinite alternate;
}
.ring {
  position: absolute;
  border: 1px solid var(--line);
  border-radius: 50%;
}
.ring-1 { width: 55%; height: 55%; border-color: rgba(42,74,58,.18); }
.ring-2 { width: 75%; height: 75%; border-color: rgba(42,74,58,.12); }
.ring-3 {
  width: 95%; height: 95%;
  border-color: rgba(201,169,110,.25);
  border-style: dashed;
  animation: spin 80s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes floatY { from { transform: translateY(-6px); } to { transform: translateY(6px); } }

/* Mission cards */
.mission {
  margin-top: clamp(3rem, 6vw, 5rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.mission-card {
  background: var(--bg);
  padding: 2.2rem clamp(1rem, 3vw, 2rem);
}
.mission-card h3 {
  font-family: "Fraunces", serif;
  font-size: 1.4rem;
  font-style: italic;
  font-weight: 300;
  color: var(--accent);
  margin-bottom: .8rem;
}
.mission-card p { margin: 0; max-width: 52ch; }

/* ============================================================
   SECTION HEADS
   ============================================================ */
.section-head {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section-head h2 { max-width: 18ch; margin-bottom: 1.2rem; }
.section-lede { font-size: 1.1rem; max-width: 58ch; }

/* ============================================================
   SERVICES
   ============================================================ */
.services {
  padding: clamp(4rem, 8vw, 7rem) 0;
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.service-list {
  list-style: none;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  max-width: var(--max);
}
.service {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  padding: 2.4rem 0;
  border-top: 1px solid var(--line);
  align-items: start;
  transition: padding .35s var(--ease);
}
.service:last-child { border-bottom: 1px solid var(--line); }
.service:hover { padding-left: clamp(.5rem, 1.5vw, 1.2rem); }

.service-num {
  font-family: "Fraunces", serif;
  font-size: 1.05rem;
  font-style: italic;
  color: var(--accent-2);
  letter-spacing: .04em;
}
.service h3 {
  margin-bottom: .6rem;
  font-family: "Fraunces", serif;
  font-size: clamp(1.4rem, 2.2vw, 1.8rem);
  font-weight: 300;
}
.service p { max-width: 70ch; margin: 0; }

/* Differentiators */
.diff {
  max-width: var(--max);
  margin: clamp(3rem, 6vw, 5rem) auto 0;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
}
.diff-title {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  color: var(--accent);
  margin-bottom: 2rem;
}
.diff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.diff-grid > * {
  background: var(--bg-soft);
  padding: 1.8rem;
}
.diff-grid h4 {
  color: var(--ink);
  margin-bottom: .6rem;
}
.diff-grid p { margin: 0; font-size: .96rem; }
.diff-feature {
  background: var(--ink) !important;
  color: var(--bg);
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.45;
}
.diff-feature p { color: var(--bg); }

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  padding: clamp(4rem, 8vw, 7rem) clamp(1.25rem, 4vw, 3rem);
}
.contact-inner { max-width: var(--max); margin: 0 auto; }
.contact h2 { margin-bottom: 1.2rem; }
.contact .section-lede { max-width: 56ch; margin-bottom: 2.6rem; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  max-width: 760px;
}
.contact-card {
  background: var(--bg);
  padding: 1.8rem;
  display: flex; flex-direction: column; gap: .35rem;
  transition: background .3s var(--ease);
}
.contact-card:hover { background: var(--bg-soft); }
.contact-label {
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-value {
  font-family: "Fraunces", serif;
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--ink);
}

/* ============================================================
   PRIVACY
   ============================================================ */
.privacy {
  padding: clamp(4rem, 8vw, 7rem) 0;
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
}
.legal {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  font-size: .98rem;
}
.legal h3 {
  margin-top: 2.2rem;
  margin-bottom: .7rem;
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: 1.25rem;
  color: var(--accent);
}
.legal p, .legal ul { color: var(--ink-soft); }
.legal ul { padding-left: 1.2rem; margin: 0 0 1em; }
.legal li { margin-bottom: .4em; }
.legal a { color: var(--accent); border-bottom: 1px solid var(--line); }
.legal a:hover { border-color: var(--accent); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem clamp(1.25rem, 4vw, 3rem);
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: .8rem; }
.footer-brand div { display: flex; flex-direction: column; line-height: 1.3; }
.footer-brand strong { font-family: "Fraunces", serif; font-weight: 400; }
.footer-brand span { font-size: .8rem; color: var(--muted); }
.footer-logo { width: 32px; height: 32px; border-radius: 50%; }
.footer-meta {
  display: flex; gap: 2rem; align-items: center;
  font-size: .85rem; color: var(--muted);
}
.footer-meta a { color: var(--ink-soft); }
.footer-meta a:hover { color: var(--ink); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 380px; margin: 0 auto; }
  .mission { grid-template-columns: 1fr; }
  .diff-grid { grid-template-columns: 1fr 1fr; }
  .service { grid-template-columns: 50px 1fr; gap: 1rem; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav.open .nav-links {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg);
    padding: 1rem clamp(1.25rem, 4vw, 3rem) 1.5rem;
    border-bottom: 1px solid var(--line);
    gap: 1.2rem;
  }
  .diff-grid { grid-template-columns: 1fr; }
  h1 { font-size: clamp(2.4rem, 9vw, 3.4rem); }
}

/* ============================================================
   MOTION — entrance
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { opacity: 0; transform: translateY(14px); animation: rise .9s var(--ease) forwards; }
  .hero-copy .eyebrow { animation-delay: .05s; }
  .hero-copy h1 { animation-delay: .2s; }
  .hero-copy .lede { animation-delay: .4s; }
  .hero-copy .hero-cta { animation-delay: .55s; }
  .hero-visual { opacity: 0; animation: fadeIn 1.2s var(--ease) .35s forwards; }

  .reveal { opacity: 0; transform: translateY(20px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
  .reveal.in { opacity: 1; transform: none; }
}
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes fadeIn { to { opacity: 1; } }

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