:root {
  color-scheme: dark;
  --bg: #141414;
  --text: #f0f0ed;
  --muted: #a6a6a3;
  --line: #383838;
  --surface: #202020;
  --inverse: #141414;
  font-family: "Segoe UI", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-synthesis: none;
}
:root[data-theme="light"] { color-scheme: light; --bg: #dedede; --text: #202020; --muted: #585858; --line: #b9b9b9; --surface: #d2d2d2; --inverse: #ededeb; }
:root[data-theme="ocean"] { color-scheme: dark; --bg: #14232e; --text: #e1eff3; --muted: #a3bdc8; --line: #38515f; --surface: #203540; --inverse: #14232e; }
:root[data-theme="plum"] { color-scheme: dark; --bg: #261d2b; --text: #f0e5ec; --muted: #c3acbf; --line: #514055; --surface: #342a3a; --inverse: #261d2b; }
:root[data-theme="sand"] { color-scheme: light; --bg: #e4dccf; --text: #302b25; --muted: #625a4e; --line: #bcb09c; --surface: #d8cfbf; --inverse: #f3ede3; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 32px; }
body { margin: 0; font-size: 16px; line-height: 1.65; }
::selection { color: var(--bg); background: var(--text); }
a { color: inherit; text-underline-offset: 5px; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--text); outline-offset: 6px; }
p, h1, h2, h3 { margin: 0; }
.page { width: min(1080px, calc(100% - 80px)); margin: auto; }
.header { display: flex; align-items: center; justify-content: space-between; gap: 32px; min-height: 116px; border-bottom: 1px solid var(--line); }
.brand { display: block; width: 196px; flex-shrink: 0; }
.brand img { width: 100%; height: auto; display: block; }
:root[data-theme="light"] .brand img, :root[data-theme="sand"] .brand img { filter: invert(1); }
nav { display: flex; align-items: center; gap: 34px; font-size: 14px; }
nav a { text-decoration: none; color: var(--muted); }
nav a:hover, nav .nav-contact { color: var(--text); }
.nav-contact span { margin-left: 9px; }
.eyebrow { color: var(--muted); font-size: 14px; margin-bottom: 24px; }
.hero { padding: 76px 0 80px; }
h1 { font-size: clamp(42px, 6.6vw, 80px); line-height: 1.09; font-weight: 500; letter-spacing: -.065em; }
h1 span { color: var(--muted); }
.hero-bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-top: 40px; }
.hero-bottom p { max-width: 400px; color: var(--muted); }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 32px; padding: 13px 20px; border: 1px solid var(--text); border-radius: 3px; background: var(--text); color: var(--inverse); text-decoration: none; font-size: 14px; font-weight: 600; white-space: nowrap; }
.button span { font-size: 20px; font-weight: 400; transition: transform 180ms ease; }
.button:hover span { transform: translate(2px, -2px); }
.section { border-top: 1px solid var(--line); padding: 64px 0; }
h2 { font-size: clamp(30px, 4vw, 42px); line-height: 1.18; font-weight: 500; letter-spacing: -.045em; }
.services { display: grid; grid-template-columns: .85fr 1.15fr; gap: 72px; }
.section-intro > p:last-child { margin-top: 24px; max-width: 310px; color: var(--muted); }
.service-list { min-width: 0; }
details { border-bottom: 1px solid var(--line); }
summary { display: flex; align-items: center; gap: 22px; padding: 23px 0; list-style: none; cursor: pointer; font-size: 21px; line-height: 1.4; letter-spacing: -.02em; }
summary::-webkit-details-marker { display: none; }
.number { font-size: 12px; color: var(--muted); letter-spacing: 0; font-variant-numeric: tabular-nums; }
.expand { position: relative; width: 16px; height: 16px; margin-left: auto; flex-shrink: 0; }
.expand::before, .expand::after { content: ""; position: absolute; background: currentColor; top: 7px; left: 2px; width: 12px; height: 1px; }
.expand::after { transform: rotate(90deg); transition: transform 180ms ease; }
details[open] .expand::after { transform: rotate(0); }
summary:hover { color: var(--muted); }
.service-description { padding: 0 24px 24px 36px; color: var(--muted); }
.detail-note { margin-top: 12px; font-size: 14px; }
.section-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 32px; }
.project-type { color: var(--muted); font-size: 14px; }
.project-preview { display: block; position: relative; overflow: hidden; border-radius: 4px; border: 1px solid var(--line); background: var(--surface); }
.project-preview img { display: block; width: 100%; height: auto; transition: transform 350ms ease; }
.project-preview:hover img { transform: scale(1.015); }
.preview-label { position: absolute; right: 14px; bottom: 14px; padding: 8px 12px; background: #202020; color: #f2f2f2; border-radius: 2px; font-size: 12px; opacity: 0; transform: translateY(4px); transition: opacity 180ms ease, transform 180ms ease; }
.project-preview:hover .preview-label, .project-preview:focus-visible .preview-label { opacity: 1; transform: none; }
.project-caption { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; padding-top: 26px; }
h3 { font-size: 23px; font-weight: 500; letter-spacing: -.025em; }
.project-caption p { color: var(--muted); }
.text-link { display: inline-flex; gap: 16px; margin-top: 10px; font-size: 14px; text-decoration-color: var(--line); }
.text-link:hover { text-decoration-color: currentColor; }
.contact { padding-top: 64px; padding-bottom: 72px; }
.contact-layout { display: flex; justify-content: space-between; align-items: center; gap: 48px; }
.contact h2 { font-size: clamp(40px, 5vw, 60px); }
.contact p { max-width: 420px; margin-top: 24px; color: var(--muted); }
.contact-link { display: inline-flex; align-items: center; gap: 28px; text-decoration: none; font-size: 18px; white-space: nowrap; }
.contact-circle { display: grid; place-items: center; width: 68px; height: 68px; border: 1px solid var(--line); border-radius: 50%; font-size: 28px; transition: background-color 180ms ease, color 180ms ease; }
.contact-link:hover .contact-circle { background: var(--text); color: var(--inverse); }
.contact-actions { min-width: 0; max-width: 100%; }
.copy-email { display: block; margin-top: 14px; padding: 6px 0; border: 0; background: none; color: var(--muted); font: inherit; font-size: 14px; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.copy-email[hidden], .email-fallback[hidden] { display: none; }
.copy-email:hover { color: var(--text); }
.copy-status { display: block; max-width: 280px; color: var(--muted); font-size: 14px; }
.email-fallback { width: 100%; max-width: 300px; margin-top: 8px; padding: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; font-size: 14px; }
footer { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); padding: 24px 0 68px; color: var(--muted); font-size: 12px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--text); }
.skip { position: absolute; top: -100px; left: 20px; padding: 10px 16px; z-index: 3; background: var(--text); color: var(--bg); }
.skip:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.theme-picker { position: fixed; bottom: max(8px, env(safe-area-inset-bottom)); left: max(10px, env(safe-area-inset-left)); z-index: 2; display: flex; gap: 2px; padding: 3px; background: var(--bg); border: 1px solid var(--line); border-radius: 5px; }
.theme-picker[hidden] { display: none; }
.theme-swatch { display: grid; place-items: center; width: 30px; height: 32px; padding: 6px; border: 0; border-radius: 2px; background: transparent; cursor: pointer; }
.theme-swatch span { width: 16px; height: 16px; background: var(--swatch); border-radius: 2px; border: 1px solid #ffffff30; }
.theme-swatch[aria-pressed="true"] span { outline: 1px solid var(--text); outline-offset: 3px; }
.theme-swatch:hover { background: var(--surface); }
.legal-links { display: flex; flex-wrap: wrap; gap: 20px; }
.legal-dialog { width: min(680px, calc(100% - 32px)); max-height: calc(100dvh - 48px); padding: 0 28px 28px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--text); }
.legal-dialog::backdrop { background: #0009; backdrop-filter: blur(4px); }
html:has(.legal-dialog[open]) { overflow: hidden; }
.dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; position: sticky; top: 0; padding: 22px 0; background: var(--bg); z-index: 1; }
.dialog-header h2 { font-size: 28px; }
.dialog-header button { flex-shrink: 0; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--text); font-size: 24px; cursor: pointer; }
.legal-copy { overflow-wrap: anywhere; }
.legal-copy h3 { font-size: 19px; margin: 26px 0 10px; }
.legal-copy p { margin: 0 0 14px; color: var(--muted); }
.legal-reset { background: var(--surface); color: var(--text); border: 1px solid var(--line); padding: 10px 14px; font: inherit; cursor: pointer; }
.legal-copy .reset-status { margin-top: 8px; font-size: 14px; }
.legal-page { width: min(720px, calc(100% - 40px)); margin: 40px auto; }
.legal-page h1 { font-size: 36px; margin: 32px 0; }
.legal-page section { margin-top: 40px; }
.legal-page h2 { margin-bottom: 24px; }
/* Pointer effects stay inside existing surfaces and never move the link target. */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .project-preview::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(ellipse 40% 80% at var(--light-x, 50%) var(--light-y, 50%), #fff5, #fff0 75%);
    mix-blend-mode: soft-light;
    opacity: 0;
    transition: opacity 300ms ease;
  }
  .project-preview[data-pointer-active]::after { opacity: 1; }
  .project-preview[data-pointer-active] img { transform: scale(1.02) translate(var(--image-x, 0px), var(--image-y, 0px)); }
  .preview-label { z-index: 1; }
}
@media (max-width: 800px) {
  .page { width: calc(100% - 48px); }
  .hero { padding: 56px 0; }
  .hero-bottom { align-items: flex-start; flex-direction: column-reverse; gap: 24px; }
  .hero-bottom p { max-width: 500px; }
  .services { gap: 40px; grid-template-columns: 1fr; }
  .section-intro > p:last-child { max-width: 460px; }
  .section { padding: 44px 0; }
  .project-caption { gap: 28px; }
  .contact-layout { align-items: flex-start; flex-direction: column; gap: 28px; }
  .contact-circle { width: 48px; height: 48px; font-size: 24px; }
}
@media (max-width: 520px) {
  .page { width: calc(100% - 36px); }
  .header { gap: 12px; flex-wrap: wrap; padding: 14px 0 18px; }
  .brand { width: 170px; }
  nav { width: 100%; justify-content: space-between; gap: 20px; }
  .hero { padding-top: 40px; }
  h1 { font-size: clamp(36px, 9.5vw, 49px); }
  .hero .eyebrow { font-size: 12px; }
  .hero-bottom { margin-top: 28px; }
  .section-top { align-items: flex-start; flex-direction: column; gap: 16px; }
  .section-top .eyebrow { margin-bottom: 16px; }
  .project-caption { grid-template-columns: 1fr; gap: 20px; }
  summary { font-size: 19px; gap: 16px; }
  .service-description { padding-left: 30px; padding-right: 0; }
  footer { flex-wrap: wrap; }
  footer > span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .project-preview:hover img, .button:hover span { transform: none; }
}
