@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('/assets/fonts/plus-jakarta-sans-latin.woff2') format('woff2');
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}

@font-face {
  font-family: 'Instrument Serif';
  src: url('/assets/fonts/instrument-serif-italic-latin.woff2') format('woff2');
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg-primary: #1d1b18;
  --bg-elevated: #26231f;
  --bg-recessed: #151311;
  --text-primary: #f5f1e9;
  --text-secondary: #b5aca0;
  --text-muted: #7e7266;
  --accent-sapphire: #d07d58;
  --accent-bright: #d07d58;
  --border-hairline: rgba(106, 85, 73, .4);
  --border-card: #3a332c;
  --logo-bridge: #d07d58;
  --logo-text: #f5f1e9;
  --interactive-accent: #d07d58;
  --ground: var(--bg-primary);
  --ink: var(--text-primary);
  --muted: var(--text-secondary);
  --copper: var(--accent-sapphire);
  --button-ground: var(--accent-sapphire);
  --button-ink: #1d1b18;
  --rule: var(--border-hairline);
  --paper: #f5f1e9;
  --paper-ink: #1d1b18;
  --paper-muted: #5c5449;
  --paper-accent: #955135;
  --paper-display-accent: #c06c4e;
  --paper-rule: rgba(106, 85, 73, .22);
  --display: 'Plus Jakarta Sans', sans-serif;
  --serif: 'Instrument Serif', serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --gutter: clamp(24px, 5.2vw, 88px);
}

:root[data-theme='light'] {
  color-scheme: light;
  --bg-primary: #f5f1e9;
  --bg-elevated: #eae4d7;
  --bg-recessed: #e2dac9;
  --text-primary: #1d1b18;
  --text-secondary: #5c5449;
  --text-muted: #84796b;
  --accent-sapphire: #c06c4e;
  --border-hairline: rgba(106, 85, 73, .22);
  --border-card: #d8cfc0;
  --logo-bridge: #1d1b18;
  --logo-text: #1d1b18;
  --interactive-accent: #955135;
  --button-ground: #1d1b18;
  --button-ink: #f5f1e9;
  --paper: #eae4d7;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 136px; }
html.lenis { scroll-behavior: auto; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 16px/1.6 var(--display); -webkit-font-smoothing: antialiased; }
body, button, a { -webkit-tap-highlight-color: transparent; }
::selection { color: #1d1b18; background: #d07d58; }
html { scrollbar-width: thin; scrollbar-color: var(--copper) var(--ground); }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--ground); }
::-webkit-scrollbar-thumb { background: var(--copper); border-radius: 8px; }
a { color: inherit; text-decoration: none; text-underline-offset: 5px; }
button { font: inherit; }
button, summary, a { touch-action: manipulation; }
button, summary { cursor: pointer; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-weight: 700; line-height: 1.13; letter-spacing: -.03em; text-wrap: balance; }
h3 { font-weight: 600; letter-spacing: -.025em; }
em { font: italic 400 1.04em/1.1 var(--serif); letter-spacing: -.025em; color: var(--copper); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--copper); outline-offset: 7px; border-radius: 2px; }
.paper :focus-visible { outline-color: var(--paper-accent); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.wrap { width: min(100%, 1600px); padding-inline: var(--gutter); margin-inline: auto; }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 20; background: var(--ink); color: var(--ground); padding: 12px 18px; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

.opening { overflow: clip; }
.site-header { position: sticky; top: 0; z-index: 10; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; min-height: 76px; gap: 8px; padding: 6px 16px; background: var(--ground); background: color-mix(in srgb, var(--ground) 94%, transparent); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-bottom: 1px solid var(--rule); }
.brand { --brand-width: 156px; display: inline-flex; align-items: center; flex-shrink: 0; position: relative; width: var(--brand-width); height: calc(var(--brand-width) * .615385); overflow: hidden; }
.brand img { position: absolute; left: calc(var(--brand-width) * -.038462); top: calc(var(--brand-width) * -.230769); width: calc(var(--brand-width) * 1.076923); max-width: none; height: calc(var(--brand-width) * 1.076923); }
.site-header .brand { --brand-width: clamp(96px, 26vw, 116px); }
.logo-light { display: none; }
[data-theme='light'] .logo-dark { display: none; }
[data-theme='light'] .logo-light { display: block; }
.nav-long { display: none; }
.desktop-nav { display: flex; justify-content: center; gap: clamp(8px, 2vw, 12px); }
.desktop-nav a { display: flex; align-items: center; min-height: 44px; font-size: 11px; color: var(--muted); white-space: nowrap; }
.desktop-nav a:hover, .desktop-nav a[aria-current] { color: var(--ink); }
.desktop-nav a[aria-current] { text-decoration: underline; text-decoration-color: var(--copper); text-underline-offset: 7px; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.theme-toggle { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--rule); border-radius: 50%; color: var(--ink); background: transparent; }
.theme-toggle .icon { width: 18px; height: 18px; }
.theme-toggle:hover { background: var(--ink); color: var(--ground); }
.theme-moon { display: none; }
[data-theme='light'] .theme-sun { display: none; }
[data-theme='light'] .theme-moon { display: block; }
.header-contact { display: none; }

.hero { min-height: calc(100svh - 76px); padding-top: 32px; padding-bottom: 28px; position: relative; }
.hero h1 { font-size: clamp(37px, 10.8vw, 58px); }
.hero h1 > span { display: block; }
.hero h1 > span:last-child { max-width: 12ch; }
.hero-description { color: var(--muted); font-size: 15px; line-height: 1.8; margin-top: 24px; }
.hero-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; margin-top: 30px; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 19px; min-height: 54px; font-size: 14px; font-weight: 600; border-radius: 5px; }
.button-primary { background: var(--button-ground); color: var(--button-ink); }
.button-primary:hover { background: var(--ink); color: var(--ground); }
.text-link { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; font-size: 13px; font-weight: 500; }
.text-link:hover { text-decoration: underline; }
.text-link .icon { width: 18px; height: 18px; }
.file-type { font-size: 11px; font-weight: 600; letter-spacing: .06em; }
.hero-bridge { margin: 36px -12px 18px; position: relative; }
.hero-bridge img { width: 100%; height: auto; }
.bridge-caption { position: absolute; right: 8%; bottom: 8%; color: var(--muted); font-size: 9px; letter-spacing: .035em; }
.hero-scroll { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--rule); padding-top: 22px; padding-right: 84px; color: var(--muted); font-size: 11px; }
.hero-scroll .icon { width: 18px; height: 18px; transform: rotate(90deg); }
.hero-scroll:hover { color: var(--ink); }

.paper { background: var(--paper); color: var(--paper-ink); }
.paper em { color: var(--paper-display-accent); }
.section { padding-block: 70px; }
.section-intro h2 { font-size: clamp(29px, 7.9vw, 43px); }
.section-intro > p { color: var(--paper-muted); font-size: 14px; margin-top: 20px; line-height: 1.8; }
.people-list { margin-top: 40px; }
.person { padding-block: 28px; border-top: 1px solid var(--paper-rule); }
.person:last-child { padding-bottom: 0; }
.person-heading { display: flex; align-items: center; gap: 16px; }
.person-heading h3 { font-size: 24px; }
.person-heading > div > span { display: block; font-size: 12px; color: var(--paper-accent); margin-top: 5px; }
.portrait-shell { display: block; flex: 0 0 64px; width: 64px; height: 64px; padding: 3px; border: 1px solid var(--paper-display-accent); border-radius: 50%; }
.portrait { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: 50% 42%; }
.person { opacity: 1; transform: translateY(0); transition: opacity 600ms var(--ease), transform 600ms var(--ease); }
.person.reveal-pending { opacity: 0; transform: translateY(14px); }
.person p { font-size: 15px; color: var(--paper-muted); line-height: 1.8; max-width: 45ch; margin-top: 17px; }
.person .text-link { margin-top: 16px; }
.services { padding-top: 0; }
.service-list { margin-top: 32px; }
.service-list details { border-top: 1px solid var(--paper-rule); }
.service-list details:last-of-type { border-bottom: 1px solid var(--paper-rule); }
summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 22px; list-style: none; font-size: clamp(15px, 4.2vw, 20px); font-weight: 500; letter-spacing: -.015em; }
summary::-webkit-details-marker { display: none; }
summary .icon { width: 18px; height: 18px; color: var(--paper-accent); transition: transform 260ms var(--ease); }
summary:hover { color: var(--paper-accent); }
details[open] summary .icon { transform: rotate(45deg); }
.service-detail { padding: 0 28px 24px 0; }
.service-detail p { max-width: 56ch; color: var(--paper-muted); font-size: 15px; line-height: 1.8; }
.service-note { font-size: 12px; color: var(--paper-muted); margin-top: 16px; }
.profile { padding-top: 32px; padding-bottom: 60px; }
.profile > div:first-child { border-top: 1px solid var(--paper-rule); padding-top: 32px; }
.profile h2 { font-size: 29px; }
.profile p { color: var(--paper-muted); font-size: 13px; line-height: 1.8; margin-top: 12px; }
.profile-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-top: 26px; }
.button-ink { background: var(--paper-ink); color: var(--paper); }
.button-ink:hover { background: var(--paper-accent); color: #f5f1e9; }

.contact { padding-top: 40px; padding-bottom: 20px; }
.contact h2 { font-size: clamp(30px, 8.3vw, 45px); }
.contact h2 em { display: block; }
.contact-email { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; margin-top: 16px; font-size: clamp(14px, 4vw, 19px); text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 8px; }
.contact-email:hover { text-decoration-color: var(--copper); }
.contact-email .icon { width: 19px; height: 19px; }
.contact-people { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin-top: 24px; }
.contact-people h3 { font-size: 18px; margin-bottom: 4px; }
.contact-people a { display: flex; align-items: center; min-height: 44px; font-size: 14px; color: var(--muted); }
.contact-people a[href^='mailto:'] { display: block; align-content: center; font-size: 12px; }
.contact-people a:hover { color: var(--interactive-accent); }
.existing-email { display: inline-flex; align-items: center; gap: 10px; max-width: 100%; margin-top: 32px; min-height: 44px; font-size: 12px; color: var(--muted); }
.existing-email .icon { width: 14px; height: 14px; }
.site-footer { padding-bottom: 96px; }
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 16px; border-top: 1px solid var(--rule); }
.footer-top .text-link { font-size: 11px; gap: 6px; }
.js .back-to-top { position: fixed; right: max(30px, calc(env(safe-area-inset-right) + 10px)); bottom: max(96px, calc(env(safe-area-inset-bottom) + 76px)); z-index: 12; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--rule); border-radius: 50%; background: var(--ground); color: var(--ink); visibility: hidden; }
.js .back-to-top.is-visible { visibility: visible; }
.js .back-to-top span { display: none; }
.js .back-to-top .icon { transform: rotate(-45deg); }
.footer-bottom { color: var(--muted); display: grid; gap: 16px; padding-right: 84px; font-size: 12px; line-height: 1.7; }
.whatsapp-button { position: fixed; right: max(20px, env(safe-area-inset-right)); bottom: max(20px, env(safe-area-inset-bottom)); z-index: 12; display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; border: 1px solid var(--rule); border-radius: 50%; background: var(--ground); background: color-mix(in srgb, var(--ground) 88%, transparent); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); color: var(--ink); box-shadow: 0 6px 24px rgba(29, 27, 24, .16); }
.whatsapp-button .icon { display: block; color: var(--interactive-accent); width: 32px; height: 32px; fill: currentColor; stroke: none; }
.whatsapp-button:hover { border-color: var(--copper); background: var(--ground); }

::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-old(root) { z-index: 1; }
::view-transition-new(root) { z-index: 2; animation: theme-reveal 780ms var(--ease) both; }
@keyframes theme-reveal {
  from { clip-path: circle(0 at var(--theme-x, 90%) var(--theme-y, 5%)); }
  to { clip-path: circle(var(--theme-radius, 150vmax) at var(--theme-x, 90%) var(--theme-y, 5%)); }
}

@media (min-width: 600px) {
  .site-header { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; padding-block: 12px; padding-inline: var(--gutter); }
  .site-header .brand { --brand-width: 156px; }
  .nav-long { display: block; }
  .nav-short { display: none; }
  .desktop-nav { display: flex; grid-column: 1 / -1; grid-row: 2; justify-content: space-between; gap: 20px; }
  .header-contact { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 12px; }
  .hero { min-height: 0; padding-top: 72px; }
  .hero h1 { font-size: 64px; }
  .hero h1 > span:last-child { max-width: none; }
  .hero-bridge { width: 70%; margin: 46px auto 26px; }
  .hero-description { font-size: 16px; }
  .hero-actions { flex-direction: row; align-items: center; gap: 24px; }
  .section { padding-block: 90px; }
  .people-list { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
  .person:last-child { padding-bottom: 28px; }
  .services { padding-top: 0; }
  .contact-people { grid-template-columns: 1fr 1fr; }
  .contact h2 em { display: inline; }
  .footer-bottom { display: flex; justify-content: space-between; align-items: flex-start; }
}

@media (min-width: 1000px) {
  .js .back-to-top { position: static; display: inline-flex; width: auto; height: auto; min-height: 44px; visibility: visible; border: 0; background: none; }
  .js .back-to-top span { display: inline; }
  .js .back-to-top .icon { transform: none; }
  .hero-scroll, .footer-bottom { padding-right: 0; }
  .site-header { display: flex; min-height: 100px; padding-block: 16px; }
  .desktop-nav { gap: 28px; margin-left: auto; margin-right: 32px; padding-top: 0; }
  .desktop-nav a { display: flex; align-items: center; min-height: 44px; font-size: 12px; color: var(--muted); }
  .desktop-nav a:hover { color: var(--ink); }
  .header-actions { gap: 26px; }
  .hero { min-height: 674px; padding-top: 94px; padding-bottom: 34px; }
  .hero-copy { position: relative; z-index: 1; width: 72%; }
  .hero h1 { font-size: clamp(64px, 6.15vw, 92px); }
  .hero-description { margin-top: 32px; }
  .hero-actions { margin-top: 34px; }
  .button { font-size: 14px; padding: 17px 21px; }
  .hero-bridge { position: absolute; right: -17%; top: 120px; width: 69%; margin: 0; pointer-events: none; }
  .hero-bridge img { opacity: .36; }
  .bridge-caption { bottom: 7%; right: 32%; font-size: 10px; }
  .hero-scroll { margin-top: 94px; }
  .section { padding-block: 106px; }
  .section-intro h2 { font-size: clamp(38px, 3.5vw, 50px); }
  .section-intro > p { font-size: 14px; margin-top: 22px; }
  .people { display: grid; grid-template-columns: 1fr 1.12fr; gap: 80px; }
  .people-list { margin-top: 0; gap: 38px; }
  .person { padding-top: 24px; padding-bottom: 0; }
  .person-heading { gap: 12px; }
  .person-heading h3 { font-size: 23px; }
  .person-heading > div > span { margin-top: 7px; }
  .portrait-shell { flex-basis: 52px; width: 52px; height: 52px; }
  .person p { font-size: 14px; margin-top: 22px; }
  .person .text-link { margin-top: 20px; }
  .services { display: grid; grid-template-columns: 1fr 1.12fr; gap: 80px; padding-top: 12px; }
  .service-list { margin: 0; }
  summary { font-size: 19px; padding-block: 23px; }
  .service-detail p { font-size: 14px; }
  .profile { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding-top: 0; padding-bottom: 80px; }
  .profile > div:first-child { padding-top: 40px; flex: 1; }
  .profile h2 { font-size: 32px; }
  .profile p br { display: none; }
  .profile-actions { margin-top: 40px; flex-direction: row; align-items: center; gap: 28px; }
  .contact { display: grid; grid-template-columns: 1.12fr 1fr; column-gap: 70px; padding-block: 96px 68px; }
  .contact h2 { font-size: clamp(36px, 3.6vw, 51px); }
  .contact h2 em { display: block; }
  .contact-email { font-size: 20px; margin-top: 28px; }
  .contact-people { margin-top: 9px; gap: 35px; }
  .contact-people h3 { margin-bottom: 15px; }
  .contact-people a { font-size: 13px; }
  .existing-email { grid-column: 2; margin-top: 16px; }
  .footer-top { padding-block: 32px; }
  .footer-top .text-link { font-size: 11px; }
  .footer-bottom { padding-top: 4px; font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .person.reveal-pending { opacity: 1; transform: none; }
}
