/* ============ Agentwright — workshop paper + ink + copper ============ */
:root {
  --bg: #f4efe6;
  --bg-alt: #ebe4d6;
  --surface: #fbf8f2;
  --ink: #1c1a17;
  --ink-2: #4a453d;
  --muted: #7a7266;
  --line: #d8cfbf;
  --accent: #c2541b;
  --accent-ink: #ffffff;
  --accent-soft: #f3dccd;
  --ok: #2f7d4f;
  --radius: 14px;
  --shadow: 0 1px 0 rgba(0,0,0,.04), 0 12px 32px -16px rgba(40,30,15,.25);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15130f;
    --bg-alt: #1c1915;
    --surface: #221f1a;
    --ink: #f1ebe0;
    --ink-2: #c9c1b3;
    --muted: #958c7d;
    --line: #37322a;
    --accent: #e8743a;
    --accent-ink: #1a0f08;
    --accent-soft: #3a2418;
    --ok: #5dbb83;
    --shadow: 0 1px 0 rgba(255,255,255,.03), 0 16px 40px -20px rgba(0,0,0,.6);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.mono { font-family: var(--mono); font-size: .8rem; letter-spacing: .02em; }
.small { font-size: .875rem; }
.wrap { width: min(1140px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  background: var(--accent); color: var(--accent-ink); text-decoration: none;
  font-weight: 600; padding: .85em 1.4em; border-radius: 999px; border: 0; cursor: pointer;
  font-size: 1rem; transition: transform .15s ease, filter .15s ease;
}
.btn:hover { filter: brightness(1.07); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-small { padding: .55em 1.1em; font-size: .9rem; }
.btn-wide { width: 100%; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: .55rem; font-family: var(--serif); font-weight: 700; font-size: 1.3rem; text-decoration: none; }
.mark { width: 30px; height: 30px; }
.nav-links { display: flex; align-items: center; gap: 1.6rem; }
.nav-links a:not(.btn) { text-decoration: none; color: var(--ink-2); font-size: .95rem; }
.nav-links a:not(.btn):hover { color: var(--ink); }
.menu-btn { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; position: relative; }
.menu-btn span { position: absolute; left: 9px; right: 9px; height: 2px; background: var(--ink); transition: transform .2s; }
.menu-btn span:first-child { top: 15px; } .menu-btn span:last-child { top: 23px; }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero { padding: 72px 0 88px; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 48px 48px; background-position: -1px -1px; position: relative; }
.hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 30% 40%, transparent 0%, var(--bg) 75%); pointer-events: none; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: .6em; font-size: .85rem; color: var(--ink-2); background: var(--surface); border: 1px solid var(--line); padding: .35em .9em; border-radius: 999px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 20%, transparent); }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); margin-top: .4em; }
h1 em { font-style: italic; color: var(--accent); font-weight: 600; }
.lede { font-size: 1.15rem; color: var(--ink-2); max-width: 36em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 36px; }
.proof { display: flex; flex-wrap: wrap; gap: 32px; list-style: none; padding: 0; margin: 0; }
.proof li { display: flex; flex-direction: column; }
.proof strong { font-family: var(--serif); font-size: 1.5rem; }
.proof span { color: var(--muted); font-size: .9rem; }

.blueprint { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 24px; box-shadow: var(--shadow); transform: rotate(1.2deg); }
.bp-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; color: var(--muted); }
.tag { background: var(--accent-soft); color: var(--accent); font-weight: 600; font-size: .75rem; padding: .2em .7em; border-radius: 999px; }
.bp-brief { font-family: var(--serif); font-size: 1.15rem; line-height: 1.4; border-left: 3px solid var(--accent); padding-left: 14px; }
.bp-steps { list-style: none; padding: 0; margin: 18px 0; }
.bp-steps li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0 10px 28px; border-bottom: 1px dashed var(--line); position: relative; color: var(--ink-2); }
.bp-steps li::before { content: ""; position: absolute; left: 0; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 4px; border: 1.5px solid var(--line); }
.bp-steps li.done { color: var(--muted); text-decoration: line-through; }
.bp-steps li.done::before { background: var(--ok); border-color: var(--ok); }
.bp-steps li.active { color: var(--ink); font-weight: 600; }
.bp-steps li.active::before { border-color: var(--accent); background: var(--accent-soft); }
.bp-steps .mono { color: var(--muted); text-decoration: none; }
.bp-bar { height: 6px; background: var(--bg-alt); border-radius: 99px; overflow: hidden; }
.bp-bar span { display: block; height: 100%; background: var(--accent); border-radius: inherit; }
.blueprint figcaption { margin-top: 12px; color: var(--muted); font-size: .7rem; }

/* ---------- sections ---------- */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 640px; margin-bottom: 48px; }
.kicker { color: var(--accent); margin-bottom: .8em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
.sub { color: var(--ink-2); font-size: 1.08rem; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; transition: transform .2s, box-shadow .2s, border-color .2s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.card h3 { font-size: 1.35rem; }
.card p { color: var(--ink-2); margin: 0; }
.icon { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 18px; }
.icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: s; }
.steps li { padding: 0 28px 0 0; position: relative; }
.steps li::before { content: ""; position: absolute; top: 14px; left: 44px; right: 12px; height: 1.5px; background: repeating-linear-gradient(90deg, var(--line) 0 6px, transparent 6px 12px); }
.steps li:last-child::before { display: none; }
.num { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: var(--bg); font-size: .75rem; margin-bottom: 18px; }
.steps h3 { font-size: 1.4rem; }
.steps p { color: var(--ink-2); }

.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 32px; display: flex; flex-direction: column; }
.plan.featured { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.plan.featured .plan-blurb, .plan.featured li { color: color-mix(in srgb, var(--bg) 80%, transparent); }
.plan-name { font-family: var(--mono); font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); margin-bottom: .6em; }
.plan-price { font-family: var(--serif); font-size: 2.4rem; font-weight: 600; line-height: 1; margin-bottom: .4em; }
.plan-blurb { color: var(--ink-2); }
.plan ul { list-style: none; padding: 0; margin: 8px 0 28px; flex: 1; }
.plan li { padding: 7px 0 7px 26px; position: relative; color: var(--ink-2); }
.plan li::before { content: ""; position: absolute; left: 2px; top: 13px; width: 12px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.plan .btn { align-self: flex-start; }
.plan:not(.featured) .btn { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }

.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.member { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; }
.avatar { width: 72px; height: 72px; border-radius: 18px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-family: var(--serif); font-weight: 700; font-size: 1.6rem; margin-bottom: 16px; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.member h3 { font-size: 1.25rem; margin-bottom: .2em; }
.member .role { color: var(--accent); font-size: .85rem; font-weight: 600; margin-bottom: .8em; }
.member p { color: var(--ink-2); font-size: .95rem; flex: 1; }
.skills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.skills span { font-family: var(--mono); font-size: .7rem; padding: .25em .6em; border: 1px solid var(--line); border-radius: 6px; color: var(--ink-2); }
.member a.more { margin-top: 14px; font-size: .9rem; color: var(--accent); text-decoration: none; font-weight: 600; }
.member.placeholder { border-style: dashed; }

.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; list-style: none; font-family: var(--serif); font-size: 1.25rem; padding: 18px 40px 18px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-family: var(--sans); font-size: 1.5rem; color: var(--accent); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--ink-2); padding-right: 40px; }

/* ---------- order form ---------- */
.order { background: var(--ink); color: var(--bg); }
.order .sub { color: color-mix(in srgb, var(--bg) 75%, transparent); }
.order-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 28px 0 0; }
.contact-list li { padding: 10px 0; border-top: 1px solid color-mix(in srgb, var(--bg) 18%, transparent); display: flex; gap: 16px; }
.contact-list .mono { color: var(--accent); width: 56px; }
.form { background: var(--surface); color: var(--ink); border-radius: 20px; padding: 32px; display: grid; gap: 18px; box-shadow: var(--shadow); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 6px; font-size: .9rem; font-weight: 500; }
.opt { color: var(--muted); font-weight: 400; }
.form input:not([type=checkbox]), .form select, .form textarea {
  font: inherit; font-size: 1rem; color: var(--ink); background: var(--bg); border: 1.5px solid var(--line);
  border-radius: 10px; padding: .7em .85em; width: 100%; transition: border-color .15s;
}
.form textarea { resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--accent); }
.form .invalid { border-color: #c0392b !important; }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font-size: .9rem; font-weight: 500; margin-bottom: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex !important; cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { padding: .5em 1em; border: 1.5px solid var(--line); border-radius: 999px; font-size: .9rem; transition: all .15s; background: var(--bg); }
.chip input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.consent { grid-template-columns: auto 1fr !important; align-items: start; font-weight: 400 !important; color: var(--ink-2); }
.consent input { margin-top: 4px; accent-color: var(--accent); width: 16px; height: 16px; }
.hp { position: absolute; left: -9999px; }
.form-status { margin: 0; font-size: .95rem; min-height: 1.4em; }
.form-status.ok { color: var(--ok); font-weight: 600; }
.form-status.err { color: #c0392b; }

.footer { padding: 40px 0; border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; }
.footer p { margin: 0; color: var(--muted); }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero-grid, .order-grid { grid-template-columns: 1fr; gap: 48px; }
  .blueprint { transform: none; max-width: 520px; }
  .cards, .pricing { grid-template-columns: 1fr 1fr; }
  .team { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; gap: 36px 0; }
  .steps li:nth-child(2)::before { display: none; }
}
@media (max-width: 760px) {
  .menu-btn { display: block; }
  .nav-links { position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; display: none; }
  .nav-links.open { display: flex; }
  .nav-links a:not(.btn) { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-links .btn { margin-top: 12px; }
  .section { padding: 72px 0; }
  .hero { padding: 48px 0 64px; }
}
@media (max-width: 600px) {
  .cards, .pricing, .team, .steps, .field-row { grid-template-columns: 1fr; }
  .steps li::before { display: none; }
  .form { padding: 22px; }
  .proof { gap: 20px; }
}
