/* Extra-page chrome on top of the Claude public design */
.head .btn-book { display: inline-flex !important; }
.work-shell .mm-work-page {
  height: calc(100svh - var(--head));
}

@media (min-width: 1320px) {
  .nav { display: flex !important; }
  .burger { display: none !important; }
}
@media (max-width: 1319px) {
  .nav { display: none !important; }
  .burger { display: grid !important; }
}
.nav { gap: 16px; align-items: center; }
.nav a { font-size: .86rem; font-weight: 500; }
.nav-more { position: relative; display: flex; align-items: center; }
.nav-more-btn {
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: .86rem;
  font-weight: 500;
  color: var(--soft);
  cursor: pointer;
  white-space: nowrap;
}
.nav-more-btn:hover,
.nav-more-btn[aria-expanded="true"] { color: var(--fg); }
.nav-more-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 11rem;
  display: grid;
  gap: 0;
  padding: 8px 0;
  background: var(--bg-2);
  border: 1px solid var(--line);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .35);
  z-index: 90;
}
.nav-more-menu[hidden] { display: none !important; }
.nav-more-menu a {
  display: block;
  padding: 10px 14px;
  font-size: .86rem;
  font-weight: 500;
  color: var(--soft);
  text-decoration: none;
  white-space: nowrap;
}
.nav-more-menu a:hover {
  color: var(--fg);
  background: rgba(244, 244, 243, .06);
}
.page-hero { padding-block: clamp(40px, 7vw, 72px) 8px; }
.page-hero h1 {
  font-family: var(--f-head);
  font-size: clamp(2.1rem, 6vw, 4.2rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
}
.inner-grid { display: grid; gap: 22px; }
.quote-grid {
  display: grid;
  gap: 16px;
}
@media (min-width: 800px) {
  .quote-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.quote-card {
  border: 1px solid var(--line);
  padding: 22px;
  display: grid;
  gap: 12px;
}
.quote-card p { color: var(--soft); }
.quote-card footer {
  color: var(--accent);
  font-size: 0.86rem;
  font-weight: 600;
}
.faq-list { display: grid; }
.faq-list details {
  border-top: 1px solid var(--line);
  padding-block: 16px;
}
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary {
  cursor: pointer;
  font-family: var(--f-head);
  font-weight: 600;
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list details p {
  margin-top: 10px;
  color: var(--soft);
  max-width: 64ch;
}
.faq-list a { color: var(--accent); }
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.team-grid.founders {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 900px) {
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .team-grid,
  .team-grid.founders { grid-template-columns: 1fr; }
}
.team-card {
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--bg-2);
}
.team-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  object-position: center top;
}
.team-grid.founders .team-card img {
  height: auto;
  aspect-ratio: 2 / 3;
  /* Show the full founder photo; letterbox rather than crop faces/legs */
  object-fit: contain;
  object-position: center center;
  background: var(--bg-2);
}
.team-card div { padding: 16px 18px 20px; }
.team-card h2 {
  font-family: var(--f-head);
  font-size: 1.15rem;
  font-weight: 600;
}
.team-card p { color: var(--accent); font-size: 0.9rem; }
.service-grid {
  display: grid;
  gap: 18px;
}
@media (min-width: 800px) {
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.service-card {
  border: 1px solid var(--line);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--bg-2);
}
.service-card img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
}
.service-card .pad { padding: 22px; display: grid; gap: 12px; flex: 1; }
.service-card ul { display: grid; gap: 8px; color: var(--soft); }
.service-card li { padding-left: 14px; position: relative; }
.service-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.contact-map iframe {
  display: block;
  width: 100%;
  height: 320px;
  border: 0;
  background: var(--bg-2);
}
.notice-soon {
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent);
  padding: 14px 18px;
  color: var(--soft);
  max-width: 70ch;
}
.notice-soon b { color: var(--fg); }
.work-shell .foot { display: none; }
.phone-line { color: var(--muted); font-size: 0.88rem; }
.phone-line a { color: var(--accent); text-decoration: none; }
.form-note { color: var(--ok); }
.form-err { color: #F0A07A; }

/* Phone + tablet */
html { -webkit-text-size-adjust: 100%; }
.btn { max-width: 100%; }
.btns { width: 100%; }
.mail,
.contact .btns,
.form,
.form2,
.page-hero h1,
.mtitle,
.hero-copy { min-width: 0; }
.mail { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.mail span,
.page-hero h1,
.mtitle { overflow-wrap: anywhere; }
.sib,
.legal .tw { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.notice-soon { max-width: none; }
.head-in { min-width: 0; }
.head-btns { flex: 0 0 auto; margin-left: 0; }
.burger { margin-left: 0; }
html[data-view=members] .nav-members {
  min-width: 0;
  flex: 1 1 auto;
}
html[data-view=members] .nav-members a {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
html[data-view=members] .head-btns { display: none; }
.back-short { display: none; }
@media (max-width: 720px) {
  .back-full { display: none; }
  .back-short { display: inline; }
}

@media (max-width: 767px) {
  .head .btn-book { display: none !important; }
}
@media (max-width: 480px) {
  .logo span { display: none; }
}
@media (max-width: 1319px) {
  .head-in { column-gap: 12px; }
  .burger {
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    padding: 0;
    align-content: center;
  }
}
@media (max-width: 899px) {
  :root { --head: 60px; --gutter: clamp(16px, 4.5vw, 28px); }
  body { font-size: 16px; }
  .head-in { column-gap: 10px; }
  .logo { font-size: .78rem; letter-spacing: .1em; }
  .logo img.logo-mark { height: 28px; }
  .hero { padding-block: 28px 40px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-shot { order: -1; }
  .hero-shot video {
    width: 100%;
    max-width: 100%;
    height: min(82vh, 860px);
    max-height: min(82vh, 860px);
    aspect-ratio: 9 / 16;
    object-fit: cover;
    margin-inline: auto;
  }
  .hero-shot figcaption { text-align: center; }
  .s { padding-block: clamp(40px, 10vw, 72px); }
  .lede { max-width: none; }
  .origin-lede { max-width: none; }
  .mtitle { font-size: clamp(1.7rem, 9vw, 2.6rem); }
  .opt {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
  }
  .opt .amt { grid-column: 2; justify-self: start; }
  .inv li {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .att { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .foot-mark { height: 56px; }
  .foot .line { font-size: 1rem; }
  .sheet a { font-size: clamp(1.2rem, 5.4vw, 1.7rem); padding-block: 12px; }
  .team-card img { height: auto; aspect-ratio: 2 / 3; }
  .service-card img { height: 180px; }
  .contact-map iframe { height: 240px; }
  .work-shell .mm-work-page { height: auto; min-height: calc(100svh - var(--head)); }
  .mm-work-switch { flex-wrap: wrap; justify-content: center; }
  .mm-work-split,
  .mm-work-photos-col,
  .mm-work-reels-col,
  .mm-reels,
  .mm-reel,
  .mm-reel-frame {
    min-width: 0;
    max-width: 100%;
  }
  .mm-work-page,
  .mm-work-split,
  .mm-work-reels-col,
  .mm-reel { overflow-x: hidden; }
}

@media (min-width: 700px) and (max-width: 1024px) {
  .stats dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gate { grid-template-columns: 1fr; }
}

@media (min-width: 900px) and (max-width: 1024px) {
  .hero-shot video {
    max-height: min(70vh, 640px);
    width: auto;
    max-width: 100%;
  }
}

@media (max-width: 560px) {
  .head-btns .btn-solid { padding: .5rem .7rem; font-size: .7rem; }
  .mm-work-tab { padding: 8px 10px; font-size: 11px; }
  .mm-work-photos { column-count: 2; }
  .quote-card,
  .service-card .pad,
  .team-card div { padding: 16px; }
}

.mm-error-main {
  position: relative;
  min-height: calc(100svh - var(--head, 72px));
  display: grid;
  align-items: center;
  padding: clamp(48px, 9vw, 96px) var(--gutter, 24px) 80px;
  overflow: hidden;
}
.mm-error-num {
  position: absolute;
  left: 50%;
  top: 46%;
  transform: translate(-50%, -52%);
  margin: 0;
  font-family: var(--f-head, inherit);
  font-size: clamp(7.5rem, 32vw, 18rem);
  font-weight: 700;
  letter-spacing: -0.08em;
  line-height: 0.75;
  color: rgba(253, 245, 245, 0.045);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}
.mm-error-card {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  display: grid;
  gap: 16px;
  justify-items: start;
}
.mm-error-card h1 {
  margin: 0;
  font-family: var(--f-head, inherit);
  font-size: clamp(2.1rem, 6vw, 4.2rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
}
.mm-error-card .lede {
  margin: 0;
  max-width: 42ch;
}
.mm-error-card .txt {
  margin: 0;
  max-width: 46ch;
  color: var(--soft, #cfcfcf);
}
.mm-error-hint {
  margin: 8px 0 0;
  color: var(--muted, #9a9a9a);
  font-size: 0.92rem;
  line-height: 1.55;
}
.mm-error-hint a {
  color: var(--accent, #cca250);
  text-decoration: none;
}
.mm-error-hint a:hover {
  color: var(--fg, #fff);
}

.page-title {
  font-family: var(--f-head);
  font-size: clamp(1.7rem, 6.2vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.12;
  margin: 0;
  overflow-wrap: anywhere;
}
#founders.s {
  padding-top: clamp(20px, 3vw, 32px);
  border-top: 0;
}
.col.body { min-width: 0; }
.team-card h2,
.service-card h2,
.faq-list summary { overflow-wrap: anywhere; }
.service-card .btn {
  white-space: normal;
  justify-content: center;
  text-align: center;
}
.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}
img, video, iframe {
  max-width: 100%;
}
iframe { width: 100%; }
.sheet {
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
  padding-bottom: max(48px, env(safe-area-inset-bottom, 0px));
}

@media (max-width: 1099px) {
  .grid { grid-template-columns: 1fr !important; gap: 16px; }
  .side { position: static !important; }
}

@media (max-width: 640px) {
  .btns { flex-direction: column; align-items: stretch; }
  .btns .btn,
  .jbtns .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
    white-space: normal;
  }
  .btn { white-space: normal; }
  .mail { align-items: flex-start; }
  .hero .btns { margin-top: 22px; }
  .quote-grid { grid-template-columns: 1fr; }
  .shot-pair { grid-template-columns: 1fr; }
  .mottos li { font-size: clamp(1rem, 5.2vw, 1.25rem); }
}

@media (max-width: 430px) {
  .head-btns { display: none; }
}
