:root {
  --ink: #102a2e;
  --muted: #5e706f;
  --paper: #f5f0e6;
  --paper-2: #fbf8f1;
  --mint: #b9dfd1;
  --coral: #f06e4f;
  --gold: #e3b44f;
  --line: rgba(16, 42, 46, .16);
  --shadow: 0 18px 60px rgba(16, 42, 46, .12);
  --radius: 26px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 90% 3%, rgba(240, 110, 79, .16), transparent 24rem),
    var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a { color: inherit; }
button, input, textarea { font: inherit; }
::selection { color: var(--ink); background: var(--mint); }

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 100;
  padding: .75rem 1rem;
  color: white;
  background: var(--ink);
  border-radius: 999px;
}
.skip-link:focus { top: 1rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(16px);
  background: rgba(245, 240, 230, .88);
  transition: border-color .2s ease;
}
.site-header.scrolled { border-color: var(--line); }
.nav {
  width: min(1160px, calc(100% - 40px));
  min-height: 76px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  flex: 0 0 auto;
  text-decoration: none;
  font-weight: 850;
  letter-spacing: -.04em;
}
.brand-mark {
  width: 38px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  color: var(--paper-2);
  background: var(--ink);
  border-radius: 50%;
  font-size: .75rem;
  letter-spacing: .02em;
}
.nav-links { display: flex; align-items: center; justify-content: flex-end; gap: 1.35rem; }
.nav-links a {
  position: relative;
  color: var(--muted);
  text-decoration: none;
  font-size: .9rem;
  font-weight: 750;
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -.45rem;
  height: 2px;
  background: var(--coral);
  border-radius: 999px;
}
.nav-links .nav-cta {
  padding: .65rem 1rem;
  color: var(--paper-2);
  background: var(--ink);
  border-radius: 999px;
}
.nav-links .nav-cta[aria-current="page"]::after { display: none; }

main { overflow: clip; }
.shell { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.hero {
  min-height: calc(100vh - 76px);
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  align-items: center;
  gap: clamp(2rem, 7vw, 7rem);
  padding-block: clamp(4rem, 10vw, 8rem);
}
.page-hero {
  padding-block: clamp(5rem, 11vw, 9rem) clamp(3.5rem, 7vw, 6rem);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { max-width: 980px; font-size: clamp(3.7rem, 9vw, 7.4rem); }
.page-hero .hero-copy { max-width: 760px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin: 0 0 1.15rem;
  color: var(--muted);
  font-size: .75rem;
  font-weight: 850;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 9px;
  aspect-ratio: 1;
  background: var(--coral);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(240, 110, 79, .13);
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  max-width: 800px;
  margin-bottom: 1.5rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.9rem, 9vw, 8.1rem);
  line-height: .88;
  letter-spacing: -.065em;
  font-weight: 600;
}
h1 span { display: block; color: var(--coral); font-style: italic; }
.hero-copy {
  max-width: 680px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.24rem);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }
.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .75rem 1.2rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(16, 42, 46, .13); }
.button.primary { color: var(--paper-2); background: var(--ink); }
.button.secondary { background: transparent; }

.hero-visual { position: relative; min-height: 480px; display: grid; place-items: center; }
.portrait-card {
  position: relative;
  width: min(100%, 390px);
  aspect-ratio: .8;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--paper-2);
  background: var(--ink);
  border-radius: 46% 46% 24px 24px;
  box-shadow: var(--shadow);
  transform: rotate(2.5deg);
}
.portrait-card::before,
.portrait-card::after { content: ""; position: absolute; border-radius: 50%; }
.portrait-card::before { width: 75%; aspect-ratio: 1; left: -25%; top: -12%; background: var(--coral); }
.portrait-card::after { width: 62%; aspect-ratio: 1; right: -24%; bottom: -5%; background: var(--mint); }
.initials {
  position: relative;
  z-index: 2;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(7rem, 15vw, 11rem);
  line-height: 1;
  letter-spacing: -.12em;
  transform: translateX(-.08em);
}
.orbit {
  position: absolute;
  z-index: 3;
  width: 110px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  right: -10px;
  bottom: 38px;
  padding: 1rem;
  color: var(--ink);
  background: var(--gold);
  border: 6px solid var(--paper);
  border-radius: 50%;
  font-size: .73rem;
  line-height: 1.3;
  font-weight: 900;
  letter-spacing: .08em;
  text-align: center;
  text-transform: uppercase;
  transform: rotate(-8deg);
}

.section { padding-block: clamp(5rem, 10vw, 9rem); }
.section-heading {
  display: grid;
  grid-template-columns: .65fr 1.35fr;
  gap: 2rem;
  align-items: start;
  margin-bottom: 3.5rem;
}
.section-heading h2 {
  max-width: 790px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1;
  letter-spacing: -.05em;
  font-weight: 600;
}
.section-heading h2 em { color: var(--coral); font-weight: inherit; }

.impact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.impact-card {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.6rem;
  border: 1px solid var(--line);
  background: rgba(251, 248, 241, .58);
  border-radius: var(--radius);
}
.impact-card:nth-child(2) { background: var(--mint); transform: translateY(1.5rem); }
.impact-card:nth-child(3) { color: var(--paper-2); background: var(--ink); }
.impact-number { font-family: Georgia, serif; font-size: 3.3rem; line-height: 1; color: var(--coral); }
.impact-card h3 { margin-bottom: .5rem; font-size: 1.1rem; }
.impact-card p { margin: 0; opacity: .78; font-size: .94rem; }

.tool-section { background: var(--ink); color: var(--paper-2); }
.tool-section .eyebrow { color: var(--mint); }
.tool-section .section-heading h2 em { color: var(--gold); }
.calculator-wrap {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 1rem;
  align-items: stretch;
}
.calculator-card, .result-card, .generator-card {
  padding: clamp(1.4rem, 4vw, 2.4rem);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--radius);
}
.calculator-card { background: rgba(255,255,255,.055); }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.field { display: grid; gap: .45rem; }
.field label { color: #d9e4df; font-size: .83rem; font-weight: 800; }
.field small { color: #94aaa7; font-size: .73rem; }
.field input,
.field textarea {
  width: 100%;
  padding: .72rem .9rem;
  color: var(--paper-2);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 13px;
  outline: none;
}
.field input { min-height: 52px; color-scheme: dark; }
.field textarea { min-height: 190px; resize: vertical; line-height: 1.5; }
.field input:focus,
.field textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(227,180,79,.14); }
.calculator-actions, .generator-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-top: 1.25rem; }
.calculate-button, .reset-button, .copy-button {
  min-height: 48px;
  padding: .7rem 1.1rem;
  border-radius: 999px;
  font-weight: 900;
  cursor: pointer;
}
.calculate-button { color: var(--ink); background: var(--gold); border: 0; }
.reset-button, .copy-button { color: var(--paper-2); background: transparent; border: 1px solid rgba(255,255,255,.28); }
.result-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--ink);
  background: var(--mint);
}
.result-label { margin: 0; font-size: .78rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.result-time {
  margin: .4rem 0 .8rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.5rem, 8vw, 6.5rem);
  line-height: .95;
  letter-spacing: -.06em;
}
.result-detail { margin: 0; color: rgba(16,42,46,.72); }
.actual-status { display: none; margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid rgba(16,42,46,.18); font-weight: 850; }
.actual-status.visible { display: block; }
.tool-note { max-width: 720px; margin: 1.2rem 0 0; color: #a9bdb9; font-size: .8rem; }
.tool-error { color: #ffd0c5; }

.generators-section { background: #17383d; color: var(--paper-2); }
.generators-section .eyebrow { color: var(--mint); }
.generators-section .section-heading h2 em { color: var(--gold); }
.generator-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.generator-grid.single { grid-template-columns: minmax(0, 820px); justify-content: center; }
.generator-card { background: rgba(255,255,255,.055); }
.generator-card h3 { margin-bottom: .35rem; font-family: Georgia, serif; font-size: 1.75rem; }
.generator-card > p { color: #a9bdb9; font-size: .88rem; }
.generator-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
}
.generator-header p { margin: 0; color: #a9bdb9; font-size: .88rem; }
.format-toggle {
  flex: 0 0 auto;
  display: inline-grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .25rem;
  padding: .28rem;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
}
.format-option {
  min-width: 76px;
  min-height: 42px;
  padding: .55rem .9rem;
  color: #c7d7d3;
  background: transparent;
  border: 0;
  border-radius: 999px;
  font-weight: 850;
  cursor: pointer;
}
.format-option.active {
  color: var(--ink);
  background: var(--gold);
  box-shadow: 0 5px 18px rgba(0,0,0,.16);
}
.format-option:focus-visible { outline: 3px solid var(--mint); outline-offset: 2px; }
.output-box {
  min-height: 112px;
  margin-top: 1rem;
  padding: 1rem;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  color: var(--ink);
  background: var(--mint);
  border-radius: 13px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .9rem;
}
.output-box.placeholder { color: rgba(16,42,46,.56); }
.copy-status { min-height: 1.5rem; margin: .75rem 0 0; color: var(--mint); font-size: .8rem; font-weight: 750; }
.output-box.tall { min-height: 190px; max-height: 430px; overflow: auto; }
.developer-section { background: var(--paper); }
.developer-section .section-heading h2 em { color: var(--coral); }
.developer-card { color: var(--paper-2); background: var(--ink); }
.developer-card .copy-status { color: var(--mint); }
.developer-card .format-toggle { background: rgba(255,255,255,.08); }
.developer-card .field small { color: #94aaa7; }
.developer-card button[hidden] { display: none; }

.timeline { border-top: 1px solid var(--line); }
.role {
  display: grid;
  grid-template-columns: .62fr 1.38fr;
  gap: 2rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--line);
}
.role-meta { color: var(--muted); font-size: .9rem; }
.role-meta strong { display: block; color: var(--ink); font-size: 1rem; }
.role h3 { margin-bottom: .65rem; font-size: 1.35rem; letter-spacing: -.025em; }
.role p { max-width: 720px; margin: 0; color: var(--muted); }

.skills-panel {
  display: grid;
  grid-template-columns: .75fr 1.25fr;
  gap: 2rem;
  padding: clamp(1.5rem, 5vw, 3.5rem);
  color: var(--paper-2);
  background: var(--coral);
  border-radius: var(--radius);
}
.skills-panel h2 { margin: 0; font-family: Georgia, serif; font-size: clamp(2.8rem, 6vw, 5rem); line-height: .95; letter-spacing: -.05em; }
.skill-groups { display: grid; gap: 1.25rem; }
.skill-group h3 { margin-bottom: .55rem; font-size: .78rem; letter-spacing: .13em; text-transform: uppercase; }
.tags { display: flex; flex-wrap: wrap; gap: .55rem; }
.tag { padding: .48rem .72rem; border: 1px solid rgba(255,255,255,.46); border-radius: 999px; font-size: .84rem; font-weight: 750; }

.contact { padding-block: clamp(5rem, 10vw, 8rem); }
.contact-intro { text-align: center; }
.contact h2 {
  max-width: 900px;
  margin: 0 auto 1.25rem;
  font-family: Georgia, serif;
  font-size: clamp(3rem, 8vw, 7rem);
  line-height: .93;
  letter-spacing: -.065em;
  font-weight: 600;
}
.contact h2 em { color: var(--coral); font-weight: inherit; }
.contact-intro > p:not(.eyebrow) { color: var(--muted); }
.contact-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; margin-top: 1.7rem; }
.contact-form {
  max-width: 880px;
  margin: 3.5rem auto 0;
  padding: clamp(1.4rem, 4vw, 2.5rem);
  text-align: left;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.contact-form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.contact-field { display: grid; gap: .45rem; }
.contact-field.full { grid-column: 1 / -1; }
.contact-field label { font-size: .82rem; font-weight: 850; }
.optional { color: var(--muted); font-weight: 600; }
.contact-field input, .contact-field textarea {
  width: 100%;
  padding: .82rem .95rem;
  color: var(--ink);
  background: white;
  border: 1px solid rgba(16, 42, 46, .24);
  border-radius: 13px;
  outline: none;
}
.contact-field input { min-height: 52px; }
.contact-field textarea { min-height: 170px; resize: vertical; }
.contact-field input:focus, .contact-field textarea:focus { border-color: var(--coral); box-shadow: 0 0 0 4px rgba(240, 110, 79, .12); }
.form-footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.25rem; }
.send-button { cursor: pointer; }
.form-note { max-width: 470px; margin: 0; color: var(--muted); font-size: .78rem; }
.success-banner {
  display: none;
  max-width: 880px;
  margin: 2rem auto -1.5rem;
  padding: .95rem 1.1rem;
  color: var(--ink);
  background: var(--mint);
  border-radius: 14px;
  font-weight: 800;
  text-align: center;
}
.success-banner.visible { display: block; }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

.next-step {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: clamp(1.5rem, 5vw, 3rem);
  color: var(--paper-2);
  background: var(--ink);
  border-radius: var(--radius);
}
.next-step h2 { margin: 0; font-family: Georgia, serif; font-size: clamp(2rem, 5vw, 4rem); line-height: 1; }
.next-step .button { color: var(--ink); background: var(--gold); border-color: var(--gold); flex: 0 0 auto; }

footer { padding: 1.4rem 0; border-top: 1px solid var(--line); }
.footer-inner { display: flex; justify-content: space-between; gap: 1rem; color: var(--muted); font-size: .82rem; }

@media (max-width: 850px) {
  .nav { gap: .75rem; }
  .nav-links { gap: .9rem; }
  .nav-links a { font-size: .82rem; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-visual { min-height: 390px; }
  .portrait-card { width: min(82vw, 340px); }
  .section-heading, .calculator-wrap, .skills-panel { grid-template-columns: 1fr; }
  .impact-grid { grid-template-columns: 1fr; }
  .impact-card { min-height: 210px; }
  .impact-card:nth-child(2) { transform: none; }
  .role { grid-template-columns: 1fr; gap: .7rem; }
  .generator-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .shell, .nav { width: min(100% - 28px, 1160px); }
  .nav { min-height: 68px; }
  .brand-name { display: none; }
  .nav-links { gap: .72rem; }
  .nav-links a { font-size: .76rem; }
  .nav-links .nav-cta { padding: .52rem .7rem; }
  .nav-links a[aria-current="page"]::after { bottom: -.35rem; }
  .form-grid, .contact-form-grid { grid-template-columns: 1fr; }
  .generator-header { align-items: stretch; flex-direction: column; }
  .format-toggle { width: 100%; }
  .contact-field.full { grid-column: auto; }
  .form-footer, .next-step { align-items: stretch; flex-direction: column; }
  .send-button, .next-step .button { width: 100%; }
  .footer-inner { flex-direction: column; }
  h1 { font-size: clamp(3.4rem, 19vw, 5.6rem); }
  .page-hero h1 { font-size: clamp(3.2rem, 17vw, 5.2rem); }
  .hero-visual { min-height: 350px; }
  .orbit { right: 0; }
}

@media (max-width: 420px) {
  .nav-links { gap: .5rem; }
  .nav-links a { font-size: .71rem; }
  .nav-links .nav-cta { padding: .48rem .55rem; }
}

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