/* Design tokens: start here when refining the visual direction. */
:root {
  color-scheme: light;
  --color-background: #fff;
  --color-text: #0a0a0a;
  --color-muted: #6b6b6b;
  --font-sans: Arial, Helvetica, sans-serif;
  --page-gutter: 34px;
  --content-left: 31.6%;
  --content-width: 600px;
  --content-top: 254px;
  --anchor-offset: 144px;
  --section-space: 152px;
  --bottom-control-offset: calc(20px + env(safe-area-inset-bottom));
  --view-toggle-height: 38px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--anchor-offset);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--color-text);
  background: var(--color-background);
  font-family: var(--font-sans);
  font-size: 19px;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.025em;
  -webkit-font-smoothing: antialiased;
}

::selection { color: #fff; background: #222; }
a { color: inherit; text-decoration: none; }
a, button, summary { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid currentColor; outline-offset: 6px; }
[hidden] { display: none !important; }
p, h1, h2, h3 { margin: 0; }
p + p { margin-top: 22px; }

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 12px 18px;
  color: #fff;
  background: #111;
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 34px var(--page-gutter);
  background: var(--color-background);
}

.wordmark {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.2;
}

.booking-link {
  margin-right: 18px;
  font-size: 18px;
  line-height: 1.5;
  text-underline-offset: 5px;
}
.booking-link:hover { text-decoration: underline; }

.site-nav {
  position: fixed;
  top: calc(var(--content-top) - 6px);
  left: var(--page-gutter);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  font-size: 18px;
  letter-spacing: -0.015em;
}

.site-nav a {
  position: relative;
  padding: 6px 0;
  line-height: 24px;
  text-underline-offset: 5px;
}
.site-nav a:hover { text-decoration: underline; }
.site-nav a::before {
  position: absolute;
  top: 16px;
  left: -14px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  content: "";
  opacity: 0;
  transition: opacity 150ms ease;
}
.site-nav a[aria-current="location"]::before { opacity: 1; }

.content {
  width: var(--content-width);
  max-width: calc(100% - var(--content-left) - var(--page-gutter));
  margin-left: var(--content-left);
  padding-top: var(--content-top);
}
.content:focus { outline: none; }
.section { scroll-margin-top: 0; }
.studio { scroll-margin-top: calc(var(--content-top) - var(--anchor-offset)); }

h1, h2 {
  font-size: 48px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.035em;
}
h1 { max-width: 600px; }
h2 { max-width: 580px; }
h3 { font-size: 25px; font-weight: 500; line-height: 1.2; letter-spacing: -0.035em; }

.intro-copy { margin-top: 52px; }
.studio-overview { margin-top: 52px; }
.divided-section {
  margin-top: var(--section-space);
  padding-top: 28px;
}
.section-intro { margin-top: 28px; line-height: 1.4; }

.services-section { margin-top: 52px; }
.service {
  padding: 30px 0;
}
.service h3 { margin-bottom: 16px; }
.service p { font-size: 17px; line-height: 1.45; }
.service .service-detail { margin-top: 18px; color: var(--color-muted); font-size: 13px; letter-spacing: 0; }
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: 44px;
  margin-top: 28px;
  padding-bottom: 6px;
  border-bottom: 1px solid currentColor;
  font-size: 18px;
  line-height: 1.4;
}
.text-link span { transition: transform 150ms ease; }
.text-link:hover span { transform: translate(2px, -2px); }

.resource-list { margin-top: 42px; }
.resource summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 0;
  cursor: pointer;
  list-style: none;
}
.resource summary::-webkit-details-marker { display: none; }
.resource-title { font-size: 23px; font-weight: 500; line-height: 1.25; letter-spacing: -0.03em; }
.resource summary:hover .resource-title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.disclosure-icon { position: relative; flex: 0 0 16px; width: 16px; height: 16px; }
.disclosure-icon::before, .disclosure-icon::after {
  position: absolute;
  top: 7px;
  left: 1px;
  width: 14px;
  height: 1px;
  background: currentColor;
  content: "";
}
.disclosure-icon::after { transform: rotate(90deg); transition: transform 150ms ease; }
.resource[open] .disclosure-icon::after { transform: rotate(0); }
.resource-content { max-width: 540px; padding: 0 0 28px; font-size: 17px; line-height: 1.5; }
.draft-label { display: inline-block; margin-top: 22px; color: var(--color-muted); font-size: 12px; letter-spacing: 0; }

.contact .section-intro { max-width: 520px; }
.contact-action { display: inline-block; margin-top: 28px; font-size: 18px; line-height: 1.4; }
.booking-placeholder { margin-top: 32px; color: var(--color-muted); font-size: 15px; }
.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 120px;
  padding: 24px 0 calc(112px + env(safe-area-inset-bottom));
  font-size: 13px;
  letter-spacing: 0;
}
.site-footer > span { color: var(--color-muted); }

/* A persistent, keyboard-accessible link between the two reading formats. */
.view-toggle {
  position: fixed;
  left: 50%;
  bottom: var(--bottom-control-offset);
  z-index: 30;
  display: flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid #dedede;
  border-radius: 999px;
  background: var(--color-background);
  box-shadow: 0 4px 20px #0000000a;
  transform: translateX(-50%);
}
.view-toggle a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 82px;
  min-height: calc(var(--view-toggle-height) - 8px);
  padding: 6px 17px;
  border-radius: 999px;
  color: #5a5a5a;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition: background-color 150ms ease, color 150ms ease;
}
.view-toggle a:hover { color: var(--color-text); background: #f3f3f3; }
.view-toggle a[aria-current="page"] { color: #fff; background: var(--color-text); }
.view-toggle a:focus-visible { outline-offset: 2px; }

.agent-content {
  width: min(800px, calc(100% - 2 * var(--page-gutter)));
  margin: 0 auto;
  padding: 180px 0 calc(124px + env(safe-area-inset-bottom));
}
.agent-content h1 { font-size: 32px; }
.agent-intro { margin-top: 16px; color: var(--color-muted); font-size: 17px; line-height: 1.5; }
.agent-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 24px; margin: 28px 0 12px; }
.agent-actions button, .agent-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--color-text);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 5px;
}
.copy-status { min-height: 20px; color: var(--color-muted); font-size: 13px; letter-spacing: 0; }
.agent-text {
  margin: 28px 0 0;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 14px;
  line-height: 1.85;
  letter-spacing: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.agent-text code { font: inherit; }

@media (min-width: 761px) {
  /* Let the scrolling column remain visible and selectable behind the header. */
  .site-header { background: transparent; pointer-events: none; }
  .site-header a { pointer-events: auto; }
  .site-copyright {
    position: fixed;
    left: var(--page-gutter);
    bottom: calc(var(--bottom-control-offset) + var(--view-toggle-height) / 2);
    transform: translateY(50%);
    z-index: 10;
    line-height: 1;
    white-space: nowrap;
  }
}

@media (min-width: 1800px) {
  :root { --content-width: 640px; }
}

@media (max-width: 1100px) {
  :root { --content-left: 29%; --content-top: 220px; --page-gutter: 28px; }
  h1, h2 { font-size: 44px; }
  body { font-size: 18px; }
  .booking-link { margin-right: 0; }
}

@media (max-width: 760px) {
  :root { --page-gutter: 24px; --content-top: 190px; --section-space: 100px; --anchor-offset: 152px; }
  .site-header { padding: 26px var(--page-gutter) 22px; }
  .wordmark { font-size: 25px; }
  .booking-link { font-size: 16px; }
  .site-nav {
    top: 77px;
    right: 0;
    left: 0;
    flex-direction: row;
    justify-content: space-between;
    gap: 16px;
    padding: 6px var(--page-gutter) 14px;
    background: var(--color-background);
    font-size: 15px;
  }
  .site-nav a { padding: 8px 0; line-height: 20px; }
  .site-nav a::before { inset: auto 0 3px; width: 100%; height: 1px; border-radius: 0; }
  .content { width: auto; max-width: none; margin: 0 var(--page-gutter); }
  h1, h2 { font-size: clamp(34px, 6.8vw, 46px); }
  h1 { max-width: 580px; }
  .intro-copy { margin-top: 36px; }
  .studio-overview { margin-top: 36px; }
  body { font-size: 18px; line-height: 1.4; }
  p + p { margin-top: 22px; }
  .section-intro { margin-top: 24px; }
  .services-section { margin-top: 36px; }
  .service h3 { font-size: 24px; }
  .resource-title { font-size: 21px; }
  .site-footer { margin-top: 88px; }
  .agent-content { padding-top: 136px; }
  .agent-content h1 { font-size: 28px; }
  .agent-text { font-size: 13px; line-height: 1.8; }
}

@media (max-width: 360px) {
  :root { --page-gutter: 18px; }
  .site-nav { gap: 12px; font-size: 14px; }
  .text-link { gap: 18px; font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
