:root {
  --paper: #ffffff;
  --ink: #191919;
  --muted: #686868;
  --accent: #525252;
  --line: #e2e2e2;
  --surface: #f3f3f3;
  --panel: #f8f8f8;
  --display: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --body: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
.section-wrap { width: min(1060px, calc(100% - 64px)); margin-inline: auto; }

.brand { display: inline-flex; align-items: center; gap: 11px; font-family: var(--display); font-size: 16px; font-weight: 700; letter-spacing: -.5px; }
.brand-mark { width: 27px; height: 27px; display: grid; place-items: center; border: 1px solid #b9c2b1; border-radius: 50%; color: var(--accent); font-size: 12px; font-weight: 700; }
.main-nav { display: flex; align-items: center; gap: 34px; color: #62665f; font-size: 12px; }
.main-nav a:hover, .footer-links a:hover { color: var(--accent); }
.main-nav .nav-contact { color: var(--ink); }
.main-nav .nav-contact span { margin-left: 8px; color: var(--accent); }
.menu-toggle { display: none; }

.hero { min-height: 520px; padding-block: 110px 95px; display: flex; align-items: center; justify-content: center; position: relative; }
.hero-copy { width: min(100%, 850px); padding-bottom: 20px; text-align: left; }
.eyebrow { margin: 0 0 21px; display: flex; align-items: center; gap: 9px; color: #71796b; font: 500 9px var(--mono); letter-spacing: 1px; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: #788b6b; }
.hero h1, .section-heading h2, .about-copy h2 { margin: 0; font: 650 clamp(52px, 6vw, 76px)/1.06 var(--display); letter-spacing: -4.5px; }
.hero h1 span, .section-heading h2 span { color: var(--accent); font-family: var(--display); font-size: .88em; font-style: normal; font-weight: 500; letter-spacing: -.035em; }
.hero-intro { max-width: 470px; margin: 23px 0 25px; color: var(--muted); font-size: 16px; line-height: 1.8; }
.hero-actions { display: flex; align-items: center; justify-content: flex-start; gap: 25px; }
.button { display: inline-flex; align-items: center; gap: 19px; padding: 14px 17px; border: 1px solid var(--ink); font-size: 11px; font-weight: 600; transition: background .2s, color .2s; }
.button:hover { background: var(--accent); border-color: var(--accent); color: white; }
@media (prefers-color-scheme: dark) {
  .button:hover { background: #444; border-color: #888; color: #fff; }
}
.button span { color: #92a283; font-size: 15px; }
.button-mail { align-items: flex-start; flex-direction: column; gap: 4px; min-width: 190px; }
.button-mail-title { color: var(--ink) !important; font: 600 14px var(--display) !important; }
.button-mail-note { color: var(--muted) !important; font: 11px var(--body) !important; }
.button-mail:hover .button-mail-title, .button-mail:hover .button-mail-note { color: white !important; }
.text-link { color: #53594f; font-size: 11px; font-weight: 600; }
.text-link span { margin-left: 7px; color: var(--accent); }
.hero-note { display: flex; align-items: center; gap: 11px; margin-top: 50px; color: #8b8e86; font: 9px var(--mono); }
.note-line { width: 25px; height: 1px; background: #aeb2a8; }

.references { padding-block: 78px 88px; border-top: 1px solid var(--line); }
.references-heading { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 31px; }
.references-heading h2 { margin: 0; font: 650 46px/1.1 var(--display); letter-spacing: -2.7px; }
.references-heading h2 span { color: var(--accent); }
.references-heading p { margin: 0; color: var(--muted); font-size: 11px; }
.reference-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.reference-card h3 { margin: 14px 0 5px; font: 600 16px var(--display); }
.reference-card p { margin: 0; color: var(--muted); font-size: 12px; }
.reference-preview { height: 240px; position: relative; overflow: hidden; border: 1px solid var(--line); background: var(--panel); }
.reference-preview iframe { display: block; width: 300%; height: 720px; border: 0; pointer-events: none; transform: scale(.3333); transform-origin: top left; }
.reference-card p a { text-decoration: underline; text-underline-offset: 3px; }

.about { padding-block: 76px; background: var(--surface); }
.about-inner { display: grid; grid-template-columns: 1fr; align-items: center; justify-items: center; }
.about-visual { height: 310px; position: relative; display: grid; place-items: center; }
.portrait-frame { width: 220px; height: 270px; position: relative; overflow: hidden; background: #e1e4d8; }
.portrait-bg { position: absolute; inset: 20px; border: 1px solid #c5cdbb; }
.portrait-plant { position: absolute; top: 34px; right: 23px; color: #87957d; font: 52px Georgia; transform: rotate(35deg); }
.portrait-person { position: absolute; width: 160px; height: 240px; left: 31px; bottom: -21px; }
.portrait-hair { position: absolute; width: 98px; height: 111px; left: 31px; top: 17px; z-index: 2; border-radius: 52% 50% 38% 42%; background: #483b32; }
.portrait-face { position: absolute; z-index: 3; width: 79px; height: 98px; left: 40px; top: 30px; border-radius: 46%; background: #c88d68; }
.portrait-face:after { content: ''; position: absolute; left: 27px; top: 61px; width: 28px; height: 15px; border-bottom: 2px solid #795744; border-radius: 50%; }
.portrait-face i, .portrait-face b { position: absolute; top: 42px; left: 18px; width: 4px; height: 3px; border-radius: 50%; background: #514238; }
.portrait-face b { left: 55px; }
.portrait-shirt { position: absolute; z-index: 2; left: 4px; top: 112px; width: 152px; height: 150px; border-radius: 65px 65px 0 0; background: #68795e; }
.portrait-shirt:after { content: ''; position: absolute; left: 63px; top: 0; border-left: 13px solid transparent; border-right: 13px solid transparent; border-top: 20px solid #e3bea2; }
.portrait-sun { position: absolute; top: 20px; left: 24px; color: #77876a; font-size: 18px; }
.portrait-caption { position: absolute; bottom: 1px; left: 8px; color: #7d8577; font: 9px/1.7 var(--mono); }
.portrait-stamp { position: absolute; right: 1px; bottom: 26px; color: #77816e; font: 8px/1.4 var(--mono); letter-spacing: .8px; text-align: center; }
.about-copy { width: min(100%, 620px); text-align: left; }
.about-copy .eyebrow { margin-bottom: 15px; }
.about-copy h2 { font-size: 42px; letter-spacing: -2.8px; }
.accent-dot { color: var(--accent); }
.about-lead { margin: 19px 0 9px !important; color: #414141 !important; font-size: 14px !important; }
.about-copy>p:not(.eyebrow) { max-width: 500px; margin: 10px 0; color: var(--muted); font-size: 13px; line-height: 1.85; }
.button-outline { margin-top: 17px; border-color: #b7b7b7; }
.button-outline span { color: var(--accent); }

.site-footer { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.site-footer .brand { color: var(--ink); font-size: 17px; }
.site-footer .brand-mark { width: 23px; height: 23px; }
.footer-links { display: flex; gap: 22px; font-size: 13px; }
.copyright { font: 8px var(--mono); }

.legal-page { width: min(760px, calc(100% - 48px)); min-height: calc(100vh - 88px); margin: 0 auto; padding: 48px 0 72px; }
.legal-page h1 { margin: 34px 0 42px; font: 650 clamp(38px, 6vw, 56px)/1.1 var(--display); letter-spacing: -2.5px; }
.legal-page h2 { margin: 32px 0 12px; font: 600 20px/1.3 var(--display); letter-spacing: -.4px; }
.legal-page p, .legal-page address { color: var(--muted); font-size: 15px; line-height: 1.8; }
.legal-page address { font-style: normal; }
.legal-page a:not(.back-link) { text-decoration: underline; text-underline-offset: 3px; }
.back-link { color: var(--muted); font-size: 13px; }
.legal-note { padding: 14px 16px; border: 1px solid var(--line); font-size: 13px !important; }

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --paper: #161616;
    --ink: #f0f0f0;
    --muted: #b8b8b8;
    --accent: #c3c3c3;
    --line: #3a3a3a;
    --surface: #202020;
    --panel: #292929;
  }
}

@media (prefers-color-scheme: dark) {
  .about-lead { color: var(--ink) !important; }
}

@media (max-width: 760px) {
  .section-wrap { width: calc(100% - 40px); }
  .menu-toggle { display: flex; flex-direction: column; gap: 5px; padding: 10px; border: 0; background: none; }
  .menu-toggle span { width: 20px; height: 1px; background: var(--ink); }
  .main-nav { display: none; position: absolute; top: 69px; left: -20px; right: -20px; padding: 22px 20px; background: var(--paper); border-bottom: 1px solid var(--line); flex-direction: column; align-items: flex-start; gap: 20px; }
  .main-nav.open { display: flex; }
  .hero { min-height: 0; padding-block: 75px 68px; }
  .hero h1 { font-size: clamp(50px, 13vw, 68px); letter-spacing: -4px; }
  .hero-intro { max-width: 390px; font-size: 15px; }
  .hero-note { margin-top: 32px; }
  .references { padding-block: 58px 65px; }
  .references-heading { display: block; margin-bottom: 22px; }
  .references-heading h2 { font-size: 38px; }
  .references-heading p { margin-top: 9px; }
  .reference-grid { grid-template-columns: 1fr; gap: 24px; }
  .reference-preview { height: 220px; }
  .reference-preview iframe { height: 660px; }
  .about { padding-block: 58px; }
  .about-inner { grid-template-columns: 1fr; }
  .about-visual { height: 285px; max-width: 360px; width: 100%; margin: auto; }
  .portrait-frame { width: 205px; height: 250px; }
  .portrait-person { transform: scale(.9); transform-origin: bottom center; left: 23px; }
  .about-copy h2 { font-size: 38px; }
  .site-footer { padding-block: 19px; display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
  .legal-page { width: calc(100% - 40px); padding-top: 32px; }
  .legal-page h1 { margin: 28px 0 34px; }
  .legal-page h2 { font-size: 18px; }
  .legal-page p, .legal-page address { font-size: 14px; }
  .footer-links { gap: 13px; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
