:root {
  --bg: #FBFAF7;
  --surface: #FFFFFF;
  --ink: #191C1E;
  --ink-soft: #50575B;
  --accent: #1D5560;
  --accent-tint: #DDEAE9;
  --dark: #15343A;
  --on-dark: #F3F1EC;
  --on-dark-soft: rgba(243, 241, 236, .74);
  --line: rgba(25, 28, 30, .1);
  --line-strong: rgba(25, 28, 30, .16);
  --line-dark: rgba(243, 241, 236, .16);
  --font: system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1280px;
  --bar-h: 76px;
  --section-gap: clamp(28px, 4vw, 56px);
  --r-panel: 28px;
  --shadow: 0 1px 2px rgba(25, 28, 30, .05), 0 8px 24px rgba(25, 28, 30, .08);
  --t: 180ms cubic-bezier(.2, .6, .2, 1);
  --ease-out: cubic-bezier(0.32, 0.72, 0, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--bar-h) + 12px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-synthesis: none;
  overflow-x: clip;
  -webkit-tap-highlight-color: transparent;
}

h1, h2, h3 { font-weight: 600; line-height: 1.1; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
p { margin: 0 0 1rem; text-wrap: pretty; }
a { color: inherit; text-decoration: none; transition: color var(--t); }
img { max-width: 100%; height: auto; display: block; }
ul { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }
::selection { background: var(--accent); color: #FFFFFF; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
main { display: grid; gap: var(--section-gap); padding-bottom: var(--section-gap); }

.ico { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.label {
  display: block; margin-bottom: .75rem;
  font-size: clamp(.95rem, 1.1vw, 1.05rem); font-weight: 700; line-height: 1.3;
  letter-spacing: .08em; text-transform: uppercase; color: var(--accent);
}

.logo { display: inline-flex; align-items: center; min-height: 44px; }

.bar {
  position: sticky; top: 0; z-index: 30;
  background: var(--bg);
  padding-top: env(safe-area-inset-top);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t);
}
.bar.scrolled { border-bottom-color: var(--line-strong); }
.bar__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: var(--bar-h); }
.bar__links { display: none; }
.bar__link {
  display: inline-flex; align-items: center; min-height: 44px; padding-inline: .1rem;
  font-size: 1.0625rem; font-weight: 600; color: var(--ink-soft); white-space: nowrap;
  text-decoration: underline; text-decoration-color: transparent;
  text-decoration-thickness: 1.5px; text-underline-offset: .5em;
  transition: color var(--t), text-decoration-color var(--t);
}
.bar__burger {
  display: inline-flex; align-items: center; gap: .5rem;
  min-height: 56px; padding: 0 .25rem 0 .75rem; margin-right: -.25rem;
  border: 0; background: transparent; color: var(--ink); cursor: pointer;
  font: 600 .8rem/1 var(--font); letter-spacing: .08em; text-transform: uppercase;
  touch-action: manipulation;
}
@media (min-width: 1060px) {
  .bar__links { display: flex; align-items: center; gap: clamp(1rem, 2vw, 2rem); }
  .bar__burger { display: none; }
}

.drawer__backdrop {
  position: fixed; inset: 0; z-index: 40;
  background: rgba(0, 0, 0, .45);
  opacity: 0; visibility: hidden;
  transition: opacity 220ms var(--ease-out), visibility 0s 220ms;
}
.drawer__backdrop.is-open { opacity: 1; visibility: visible; transition: opacity 300ms var(--ease-out), visibility 0s; }
.drawer {
  position: fixed; top: 0; bottom: 0; right: 0; z-index: 50;
  width: min(360px, 86vw);
  display: flex; flex-direction: column;
  background: var(--bg);
  box-shadow: var(--shadow);
  translate: 100% 0;
  visibility: hidden;
  overflow-y: auto; overscroll-behavior: contain;
  padding-top: env(safe-area-inset-top);
  transition: translate 220ms var(--ease-out), visibility 0s 220ms;
}
.drawer.is-open { translate: 0 0; visibility: visible; transition: translate 300ms var(--ease-out), visibility 0s; }
.drawer__head { display: flex; justify-content: flex-end; align-items: center; min-height: var(--bar-h); padding-inline: var(--gutter); }
.drawer__close {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  cursor: pointer;
}
.drawer__body { padding: .5rem var(--gutter) 2.5rem; display: flex; flex-direction: column; gap: 1.75rem; }
.drawer__nav a {
  display: flex; align-items: center; min-height: 56px;
  font-size: 1.35rem; font-weight: 600; letter-spacing: -.02em;
  border-bottom: 1px solid var(--line);
}
.drawer__mail { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-soft); overflow-wrap: anywhere; }

.foot { background: var(--dark); color: var(--on-dark); }
.foot ::selection { background: var(--on-dark); color: var(--dark); }
.foot :focus-visible { outline-color: var(--on-dark); }
.foot__inner { display: grid; gap: clamp(32px, 4vw, 64px); padding-block: clamp(48px, 6vw, 80px) clamp(32px, 4vw, 56px); }
.foot__lede { color: var(--on-dark-soft); font-size: .95rem; max-width: 40ch; margin: 1rem 0 0; }
.foot__heading {
  font-size: .9rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--on-dark-soft); margin-bottom: .75rem;
}
.foot__link {
  display: inline-flex; align-items: center; min-height: 44px;
  font-size: .95rem;
  transition: color var(--t), translate var(--t);
}
.foot address { color: var(--on-dark-soft); font-size: .95rem; line-height: 1.8; }
.foot__mail { overflow-wrap: anywhere; }
.foot__base {
  border-top: 1px solid var(--line-dark);
  padding-block: 1.25rem calc(1.25rem + env(safe-area-inset-bottom));
  font-size: .85rem; color: var(--on-dark-soft);
}
.foot__base p { margin: 0; }
@media (min-width: 640px) {
  .foot__inner { grid-template-columns: 1fr 1fr; }
  .foot__brand { grid-column: 1 / -1; }
}
@media (min-width: 960px) {
  .foot__inner { grid-template-columns: 1.6fr 1fr 1fr; }
  .foot__brand { grid-column: auto; }
}

#back-to-top {
  position: fixed; z-index: 20;
  right: calc(20px + env(safe-area-inset-right));
  bottom: calc(20px + env(safe-area-inset-bottom));
  width: 48px; height: 48px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); color: var(--ink);
  cursor: pointer; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; translate: 0 8px;
  transition: opacity var(--t), visibility var(--t), translate var(--t), background-color var(--t), color var(--t), scale 120ms ease-out;
  touch-action: manipulation;
}
#back-to-top.is-visible { opacity: 1; visibility: visible; translate: 0 0; }
#back-to-top:active { scale: .96; }

@media (hover: hover) and (pointer: fine) {
  .bar__link:hover { color: var(--ink); text-decoration-color: var(--accent); }
  .bar__burger:hover, .drawer__nav a:hover { color: var(--accent); }
  .drawer__close:hover { border-color: var(--accent); color: var(--accent); }
  .foot__link:hover { color: #FFFFFF; translate: 3px 0; }
  #back-to-top:hover { background: var(--accent); border-color: var(--accent); color: #FFFFFF; }
}

@keyframes kit-rise { from { opacity: 0; translate: 0 16px; } }
@keyframes kit-lift { from { translate: 0 16px; } }
@keyframes kit-zoom { from { scale: 1.05; } }
html.intro [data-intro] { animation: kit-rise 650ms var(--ease-out) calc(var(--d, 0) * 120ms) both; }
html.intro [data-intro="panel"] { animation-name: kit-lift; animation-duration: 700ms; }
html.intro [data-intro="photo"] { animation-name: kit-zoom; animation-duration: 900ms; }

html.js [data-reveal] {
  opacity: 0; translate: 0 20px;
  transition: opacity .7s var(--ease-out), translate .7s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 80ms);
}
html.js [data-reveal].is-in { opacity: 1; translate: 0 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; transition-delay: 0s !important; animation: none !important; }
}
