/* Apex Freelance — public studio site */

:root {
  --ink: #0e1014;
  --ink-2: #161920;
  --ink-3: #1e232c;
  --paper: #f6f3ec;
  --paper-2: #ece7dc;
  --gold: #c4963c;
  --gold-2: #e0b65a;
  --gold-dim: rgba(196, 150, 60, 0.16);
  --text: #f3efe6;
  --text-dark: #16181d;
  --muted: #a7a093;
  --muted-dark: #5c574e;
  --line: rgba(243, 239, 230, 0.12);
  --line-dark: rgba(22, 24, 29, 0.12);
  --danger: #c45c4a;
  --ok: #6f9b7a;
  --serif: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: "Outfit", "Segoe UI", system-ui, sans-serif;
  --wrap: 1120px;
  --radius: 16px;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.6em; }
h1 { font-size: clamp(2.15rem, 5vw, 3.55rem); font-weight: 500; }
h2 { font-size: clamp(1.7rem, 3vw, 2.35rem); }
h3 { font-size: 1.25rem; }

.wrap { width: min(var(--wrap), calc(100% - 2rem)); margin-inline: auto; }
.wrap.narrow { width: min(720px, calc(100% - 2rem)); }

.skip {
  position: absolute; left: 1rem; top: -4rem;
  background: var(--gold); color: var(--ink); padding: 0.6rem 1rem;
  z-index: 100; border-radius: 8px; font-weight: 600; text-decoration: none;
}
.skip:focus { top: 1rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(14, 16, 20, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: var(--header-h); gap: 1rem;
}
.logo {
  display: flex; align-items: center; gap: 0.7rem;
  text-decoration: none; color: var(--text);
  min-height: 44px;
}
.logo-mark { flex: none; }
.logo-word { display: flex; flex-direction: column; line-height: 1.05; }
.logo-word strong { font-family: var(--serif); font-weight: 600; font-size: 1.15rem; letter-spacing: -0.02em; }
.logo-word span { font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); font-weight: 500; }

.nav { display: flex; align-items: center; gap: 0.15rem 1.15rem; list-style: none; margin: 0; padding: 0; }
.nav a {
  text-decoration: none; color: var(--muted);
  font-weight: 500; font-size: 0.95rem;
  min-height: 44px; display: inline-flex; align-items: center;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.nav-toggle {
  display: none; background: transparent; border: 1px solid var(--line);
  color: var(--text); width: 44px; height: 44px; border-radius: 10px;
  cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 18px; height: 2px; background: currentColor; position: relative;
}
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0.7rem 1.15rem;
  background: var(--gold); color: var(--ink); font-weight: 600;
  text-decoration: none; border-radius: 999px; border: 1px solid transparent;
  font-family: var(--sans); font-size: 0.95rem; cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { background: var(--gold-2); }
.btn:active { transform: translateY(1px); }
.btn-ghost {
  background: transparent; color: var(--text);
  border-color: var(--line);
}
.btn-ghost:hover { background: rgba(255,255,255,0.04); }
.btn-block { width: 100%; }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.4rem 0 0; }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  padding: 4.5rem 0 4.25rem;
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(196,150,60,0.16), transparent 55%),
    radial-gradient(700px 400px at 0% 100%, rgba(196,150,60,0.07), transparent 50%),
    var(--ink);
}
.hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.45;
}
.hero-grid {
  display: grid; grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem; align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.55rem;
  color: var(--gold); letter-spacing: 0.14em; text-transform: uppercase;
  font-size: 0.75rem; font-weight: 600; margin: 0 0 1rem;
}
.eyebrow::before { content: ""; width: 1.4rem; height: 1px; background: var(--gold); }
.lede { font-size: 1.15rem; color: #d8d2c6; max-width: 38rem; margin: 0; }
.hero-note {
  margin: 1.35rem 0 0; color: var(--muted); font-size: 0.95rem;
  max-width: 36rem;
}
.hero-art {
  position: relative; min-height: 280px;
  display: grid; place-items: center;
}
.peak {
  width: min(100%, 340px);
  filter: drop-shadow(0 20px 40px rgba(196,150,60,0.18));
}
.facts {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1rem; margin: 2rem 0 0; padding: 0; list-style: none;
  max-width: 36rem;
}
.facts li {
  border-top: 1px solid var(--line); padding-top: 0.85rem;
}
.facts strong { display: block; color: var(--text); font-weight: 600; font-size: 0.95rem; }
.facts span { color: var(--muted); font-size: 0.85rem; }

/* Sections */
.section { padding: 4.25rem 0; }
.section.paper { background: var(--paper); color: var(--text-dark); }
.section.paper h2, .section.paper h3 { color: var(--text-dark); }
.section.paper .muted, .section.ink .muted { }
.muted { color: var(--muted); }
.section.paper .muted { color: var(--muted-dark); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }
.section-head p { margin: 0; max-width: 36rem; }

/* Service cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.card {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem 1.25rem 1.2rem;
  display: flex; flex-direction: column; min-width: 0;
}
.section.paper .card { background: #fff; border-color: var(--line-dark); box-shadow: 0 1px 0 rgba(0,0,0,0.03); }
.card h3 { margin-bottom: 0.35rem; }
.price {
  font-family: var(--serif);
  font-size: 1.85rem; font-weight: 600; color: var(--gold);
  margin: 0.35rem 0 0.7rem; letter-spacing: -0.02em;
}
.section.paper .price { color: #8a6a24; }
.price small { display: block; font-family: var(--sans); font-size: 0.78rem; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-top: 0.15rem; }
.section.paper .price small { color: var(--muted-dark); }
.card p { margin: 0 0 1rem; color: var(--muted); flex: 1; }
.section.paper .card p { color: var(--muted-dark); }
.card ul { margin: 0 0 1.1rem; padding: 0 0 0 1.1rem; color: var(--muted); }
.section.paper .card ul { color: var(--muted-dark); }
.card .btn { margin-top: auto; align-self: flex-start; }
.badge {
  display: inline-block; font-size: 0.7rem; letter-spacing: 0.1em;
  text-transform: uppercase; font-weight: 600; color: var(--ink);
  background: var(--gold); padding: 0.2rem 0.5rem; border-radius: 999px; margin-bottom: 0.6rem;
}
.card.featured { border-color: rgba(196,150,60,0.45); box-shadow: inset 0 0 0 1px rgba(196,150,60,0.2); }

/* Work */
.work-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 1.1rem; }
.work-card {
  background: var(--ink-2); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column;
  text-decoration: none; color: inherit; min-width: 0;
}
.section.paper .work-card { background: #fff; border-color: var(--line-dark); }
.work-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; background: #111; }
.work-card .pair { display: grid; grid-template-columns: 1fr 1fr; }
.work-card .pair figure { margin: 0; position: relative; }
.work-card .pair img { aspect-ratio: 3 / 4; }
.work-card .pair figcaption {
  position: absolute; left: 0.5rem; bottom: 0.5rem;
  background: rgba(14,16,20,0.82); color: var(--text);
  font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.2rem 0.45rem; border-radius: 6px;
}
.work-body { padding: 1.15rem 1.2rem 1.3rem; }
.work-body h3 { margin-bottom: 0.3rem; }
.kicker {
  font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold); font-weight: 600; margin: 0 0 0.35rem;
}
.section.paper .kicker { color: #8a6a24; }
.work-body p { margin: 0; color: var(--muted); }
.section.paper .work-body p { color: var(--muted-dark); }
.metrics { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.85rem 0 0; padding: 0; list-style: none; }
.metrics li {
  font-size: 0.8rem; border: 1px solid var(--line); border-radius: 999px;
  padding: 0.25rem 0.6rem; color: var(--text);
}
.section.paper .metrics li { border-color: var(--line-dark); color: var(--text-dark); }

/* Process */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li {
  background: var(--ink-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.2rem 1.15rem 1.3rem;
  counter-increment: step; min-width: 0;
}
.section.paper .steps li { background: #fff; border-color: var(--line-dark); }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block; color: var(--gold); font-family: var(--serif);
  font-weight: 600; font-size: 1.15rem; margin-bottom: 0.65rem;
}
.steps h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.steps p { margin: 0; color: var(--muted); }
.section.paper .steps p { color: var(--muted-dark); }

/* FAQ */
.faq { display: grid; gap: 0.65rem; }
.faq details {
  border: 1px solid var(--line); border-radius: 12px; background: var(--ink-2);
  padding: 0.15rem 0;
}
.section.paper .faq details { background: #fff; border-color: var(--line-dark); }
.faq summary {
  cursor: pointer; font-weight: 600; padding: 0.95rem 1.15rem;
  list-style: none; min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-size: 1.3rem; font-weight: 500; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0; padding: 0 1.15rem 1.1rem; color: var(--muted); }
.section.paper .faq details p { color: var(--muted-dark); }

/* Tiers */
.tier-block { margin: 0 0 3rem; }
.tier-block h2 { margin-bottom: 0.35rem; }
.tier-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.25rem; }
.tier {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.25rem; background: var(--ink-2); display: flex; flex-direction: column;
}
.section.paper .tier { background: #fff; border-color: var(--line-dark); }
.tier.featured { border-color: rgba(196,150,60,0.5); }
.tier h3 { margin: 0 0 0.2rem; }
.tier .price { margin: 0.2rem 0 0.8rem; }
.tier ul { margin: 0 0 1.2rem; padding: 0; list-style: none; flex: 1; }
.tier li { padding: 0.35rem 0 0.35rem 1.15rem; position: relative; color: var(--muted); }
.section.paper .tier li { color: var(--muted-dark); }
.tier li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); position: absolute; left: 0; top: 0.75rem; }

.custom-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }

/* Form */
form { display: grid; gap: 0.9rem; }
.field { display: grid; gap: 0.35rem; }
label { font-weight: 500; font-size: 0.92rem; }
.opt { color: var(--muted); font-weight: 400; }
input, select, textarea {
  font: inherit; color: var(--text-dark); background: #fff;
  border: 1px solid #d7d0c3; border-radius: 10px;
  padding: 0.7rem 0.8rem; width: 100%; min-height: 44px;
}
textarea { min-height: 8rem; resize: vertical; }
input:focus, select:focus, textarea:focus, .btn:focus-visible, a:focus-visible, .nav-toggle:focus-visible, summary:focus-visible, .chip:focus-visible {
  outline: 2px solid var(--gold); outline-offset: 2px;
}
.err { color: var(--danger); font-size: 0.85rem; margin: 0; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.status { margin-top: 0.4rem; min-height: 1.4em; }
.status.ok { color: var(--ok); }
.status.bad { color: var(--danger); }
.chips { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 0 0 0.2rem; }
.chip {
  border: 1px solid var(--line-dark); background: #fff; color: var(--text-dark);
  border-radius: 999px; padding: 0.4rem 0.75rem; min-height: 44px;
  font: inherit; font-size: 0.88rem; cursor: pointer;
}
.chip:hover, .chip[aria-pressed="true"] { border-color: var(--gold); background: #fff8ea; }
.contact-split { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 2rem; align-items: start; }
.contact-aside {
  background: var(--ink-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.3rem 1.25rem;
}
.section.paper .contact-aside { background: #161920; color: var(--text); border-color: transparent; }
.contact-aside h3 { color: var(--text); }
.contact-aside p, .contact-aside li { color: #c9c3b6; }
.contact-aside a { color: var(--gold-2); }
.contact-aside ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.7rem; }
.contact-aside a { display: inline-flex; align-items: center; min-height: 44px; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0 2.4rem;
  color: var(--muted); font-size: 0.92rem;
}
.footer-inner { display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; align-items: end; }
.site-footer a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.legal { margin: 0.4rem 0 0; }

/* Work detail */
.project { margin: 0 0 3.5rem; }
.project-hero-img { border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; margin: 1rem 0 1.25rem; }
.project-hero-img img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: top; }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; margin: 1rem 0; }
.compare figure { margin: 0; }
.compare figcaption { font-size: 0.85rem; color: var(--muted); margin-top: 0.4rem; }

.price-note { font-size: 0.92rem; margin: 0 0 1.5rem; }

@media (max-width: 900px) {
  .hero-grid, .work-grid, .contact-split, .cards, .tier-grid, .steps, .custom-grid { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .hero-art { display: none; }
  .nav-toggle { display: grid; place-items: center; }
  .nav {
    display: none; position: absolute; top: var(--header-h); left: 0; right: 0;
    background: rgba(14,16,20,0.98); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; padding: 0.6rem 1rem 1rem;
  }
  .nav.is-open { display: flex; }
  .nav a, .nav .btn { width: 100%; justify-content: flex-start; }
  .header-inner { position: relative; }
  .section, .hero { padding-top: 3rem; padding-bottom: 3rem; }
}

@media (max-width: 400px) {
  .cta-row .btn { width: 100%; }
  .work-card .pair { grid-template-columns: 1fr; }
  .compare { grid-template-columns: 1fr; }
}

.fine { font-size: 0.88rem; color: var(--muted); }

.section.paper .btn-ghost {
  color: var(--text-dark);
  border-color: #c4bba8;
}
.section.paper .btn-ghost:hover { background: rgba(22, 24, 29, 0.05); }
.section.paper .fine,
.section.paper .opt { color: var(--muted-dark); }
.section.paper .fine a { color: var(--text-dark); }
