/* Kestrel Studio — site styles */
:root {
  --ink: #16191f;
  --ink-soft: #3a424d;
  --muted: #6b7480;
  --bg: #ffffff;
  --bg-warm: #f7f5f1;
  --bg-dark: #12161c;
  --line: #e8e6e0;
  --line-dark: #262c36;
  --accent: #1f7a70;
  --accent-ink: #0f4a44;
  --accent-soft: #e7f2f0;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(16, 20, 28, .04), 0 12px 32px -12px rgba(16, 20, 28, .18);
  --maxw: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, "Noto Sans", sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; font-weight: 640; }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.18rem; }
p { margin: 0 0 1rem; color: var(--ink-soft); }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.eyebrow {
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1rem;
}
.lede { font-size: 1.22rem; color: var(--ink-soft); max-width: 44ch; }
.muted { color: var(--muted); }
.center { text-align: center; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .8rem 1.35rem; border-radius: 999px; font-weight: 600; font-size: .98rem;
  border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-ink); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-ghost:hover { border-color: var(--ink); }
.btn-lg { padding: .95rem 1.7rem; font-size: 1.02rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.82); backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: .6rem; font-weight: 700; letter-spacing: -.02em; font-size: 1.12rem; }
.brand svg { width: 30px; height: 30px; }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a { color: var(--ink-soft); font-size: .96rem; font-weight: 500; }
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 1rem; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 4px 0; transition: .2s; }

/* Hero */
.hero { padding: clamp(3.5rem, 8vw, 7rem) 0 clamp(3rem, 6vw, 5rem); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 3.5rem; align-items: center; }
.hero h1 { margin-bottom: 1.1rem; }
.hero .actions { display: flex; gap: .9rem; margin-top: 1.8rem; flex-wrap: wrap; }
.hero-visual {
  aspect-ratio: 4 / 3.4; border-radius: var(--radius-lg); overflow: hidden;
  background:
    radial-gradient(120% 90% at 10% 10%, #2aa196 0%, transparent 45%),
    radial-gradient(120% 120% at 90% 90%, #123f3a 0%, transparent 55%),
    linear-gradient(135deg, #1f7a70, #0f4a44);
  box-shadow: var(--shadow); position: relative;
}
.hero-visual .card {
  position: absolute; background: #fff; border-radius: 12px; box-shadow: 0 18px 40px -18px rgba(0,0,0,.5);
  padding: 14px 16px; font-size: .82rem; font-weight: 600; color: var(--ink);
  display: flex; align-items: center; gap: .6rem;
}
.hero-visual .card small { display: block; color: var(--muted); font-weight: 500; font-size: .74rem; }
.hero-visual .c1 { top: 18%; left: 8%; }
.hero-visual .c2 { bottom: 14%; right: 8%; }
.hero-visual .dot { width: 34px; height: 34px; border-radius: 9px; background: var(--accent-soft); color: var(--accent-ink); display: grid; place-items: center; }

/* Logo strip */
.logos { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-warm); }
.logos .wrap { display: flex; align-items: center; gap: 2.5rem; padding-top: 1.6rem; padding-bottom: 1.6rem; flex-wrap: wrap; justify-content: center; }
.logos span { font-weight: 700; color: #9aa1ab; letter-spacing: -.01em; font-size: 1.05rem; opacity: .9; }
.logos .label { flex-basis: 100%; text-align: center; font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 600; margin-bottom: .3rem; }

/* Sections */
section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-head { max-width: 46ch; margin-bottom: 3rem; }
.section-head.center { margin-left: auto; margin-right: auto; }

/* Services */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.card-svc {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 1.7rem; background: #fff;
  transition: transform .18s ease, box-shadow .18s ease;
}
.card-svc:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card-svc .ico { width: 44px; height: 44px; border-radius: 11px; background: var(--accent-soft); color: var(--accent-ink); display: grid; place-items: center; margin-bottom: 1.1rem; }
.card-svc h3 { margin-bottom: .4rem; }
.card-svc p { font-size: .96rem; margin: 0; }

/* Work */
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.6rem; }
.work-card { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: #fff; transition: transform .18s ease, box-shadow .18s ease; }
.work-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.work-thumb { aspect-ratio: 16 / 10; position: relative; }
.work-body { padding: 1.3rem 1.4rem 1.5rem; }
.work-body .tag { font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); font-weight: 700; }
.work-body h3 { margin: .35rem 0 .35rem; }
.work-body p { font-size: .95rem; margin: 0; }
.t1 { background: linear-gradient(135deg, #f4a259, #bc4749); }
.t2 { background: linear-gradient(135deg, #2a9d8f, #264653); }
.t3 { background: linear-gradient(135deg, #6d597a, #355070); }
.t4 { background: linear-gradient(135deg, #e9c46a, #e76f51); }
.t5 { background: linear-gradient(135deg, #457b9d, #1d3557); }
.t6 { background: linear-gradient(135deg, #588157, #3a5a40); }

/* Stats */
.stats { background: var(--bg-dark); color: #fff; }
.stats h2 { color: #fff; }
.stats p { color: #aeb6c2; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-top: 2.5rem; }
.stat .n { font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 700; letter-spacing: -.03em; color: #fff; }
.stat .l { color: #9aa4b2; font-size: .95rem; }

/* Process */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; counter-reset: step; }
.step { padding-top: 1.4rem; border-top: 2px solid var(--line); }
.step .k { font-size: .8rem; font-weight: 700; color: var(--accent); letter-spacing: .1em; }
.step h3 { margin: .5rem 0 .4rem; font-size: 1.05rem; }
.step p { font-size: .93rem; margin: 0; }

/* Quote */
.quote { background: var(--bg-warm); }
.quote blockquote { font-family: var(--serif); font-size: clamp(1.4rem, 3vw, 2.1rem); line-height: 1.4; letter-spacing: -.01em; color: var(--ink); max-width: 24ch; margin: 0 auto 1.5rem; text-align: center; }
.quote .by { text-align: center; color: var(--muted); font-size: .95rem; }
.quote .by strong { color: var(--ink); }

/* CTA */
.cta { text-align: center; }
.cta-box {
  background: linear-gradient(135deg, #1f7a70, #0f4a44); color: #fff; border-radius: var(--radius-lg);
  padding: clamp(2.5rem, 5vw, 4rem); box-shadow: var(--shadow);
}
.cta-box h2 { color: #fff; }
.cta-box p { color: #cdece7; max-width: 40ch; margin: 0 auto 1.8rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-warm); padding: 3.5rem 0 2rem; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; }
.foot-grid h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 0 0 1rem; }
.foot-grid a { display: block; color: var(--ink-soft); font-size: .95rem; margin-bottom: .55rem; }
.foot-grid a:hover { color: var(--ink); }
.foot-brand p { font-size: .95rem; max-width: 34ch; margin-top: .8rem; }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); margin-top: 2.5rem; padding-top: 1.5rem; color: var(--muted); font-size: .88rem; flex-wrap: wrap; gap: 1rem; }

/* Page header (subpages) */
.page-head { padding: clamp(3rem, 6vw, 5rem) 0 2rem; }
.page-head .eyebrow { margin-bottom: .8rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-size: .9rem; font-weight: 600; margin-bottom: .4rem; }
.field input, .field textarea, .field select {
  width: 100%; padding: .8rem .9rem; border: 1px solid var(--line); border-radius: 10px; font: inherit; font-size: .98rem; background: #fff; color: var(--ink);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.info-row { display: flex; gap: .9rem; align-items: flex-start; margin-bottom: 1.4rem; }
.info-row .ico { width: 40px; height: 40px; flex: none; border-radius: 10px; background: var(--accent-soft); color: var(--accent-ink); display: grid; place-items: center; }
.info-row .l { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.info-row .v { font-weight: 500; }

/* About */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.member .ph { aspect-ratio: 1; border-radius: var(--radius); margin-bottom: .8rem; }
.member h3 { font-size: 1.02rem; margin: 0; }
.member .role { color: var(--muted); font-size: .9rem; }
.p1 { background: linear-gradient(135deg, #2a9d8f, #264653); }
.p2 { background: linear-gradient(135deg, #e9c46a, #f4a261); }
.p3 { background: linear-gradient(135deg, #6d597a, #355070); }
.p4 { background: linear-gradient(135deg, #457b9d, #1d3557); }

/* 404 */
.err { min-height: 60vh; display: grid; place-items: center; text-align: center; }
.err .code { font-size: clamp(4rem, 14vw, 8rem); font-weight: 720; letter-spacing: -.04em; color: var(--accent); line-height: 1; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 900px) {
  .hero-grid, .two-col, .contact-grid { grid-template-columns: 1fr; gap: 2.2rem; }
  .grid-3, .steps, .stat-grid, .team-grid { grid-template-columns: repeat(2, 1fr); }
  .work-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .hero-visual { order: -1; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column;
    background: #fff; border-bottom: 1px solid var(--line); padding: 1rem 24px 1.4rem; gap: 1rem; align-items: flex-start;
  }
  .grid-3, .steps, .stat-grid, .team-grid, .foot-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; }
  .reveal { transition: none; opacity: 1; transform: none; }
}
