[hidden] {
  display: none !important;
}

:root {
  --bg: #f5f5f7;
  --surface: #ffffff;
  --ink: #1d1d1f;
  --body: #3a3a3c;
  --muted: #6e6e73;
  --faint: #86868b;
  --line: rgba(0, 0, 0, 0.1);
  --line-solid: #d2d2d7;
  --max: 72rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 20px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--ink);
  color: #fff;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 100;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line-solid);
}

.skip:focus {
  top: 10px;
}

.container {
  width: min(var(--max), calc(100% - 48px));
  margin-inline: auto;
}

/* Full wordmark — the entire lockup, including the boxed subtitle */

.logo {
  display: flex;
  justify-content: center;
  max-width: 100%;
}

.logo-img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(540px, 90vw);
  object-fit: contain;
}

.logo--modal .logo-img {
  max-width: min(320px, 72vw);
}

.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 30;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line-solid);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s;
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
}

.to-top:hover {
  background: #fff;
}

.logo-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--ink);
}

.logo-fallback .mark {
  width: 64px;
  height: 64px;
}

.logo-name {
  margin-top: 14px;
  font-size: 2.35rem;
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1;
}

.logo-rule {
  width: 32px;
  height: 1px;
  margin: 12px auto 10px;
  background: var(--ink);
}

.logo-sub {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
}

.logo--modal .logo-name {
  font-size: 1.55rem;
}

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
  padding: 64px 0 80px;
  text-align: center;
}

#blueprint {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.hero-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 40% 56% at 50% 42%, rgba(245, 245, 247, 0.96) 0%, rgba(245, 245, 247, 0.84) 48%, rgba(245, 245, 247, 0.32) 78%, rgba(245, 245, 247, 0.04) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
}

.hero-title {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
  display: flex;
  justify-content: center;
}

.hero-copy {
  max-width: 40rem;
  margin: 32px auto 0;
  font-size: 1.125rem;
  line-height: 1.65;
  letter-spacing: -0.011em;
  color: var(--muted);
  text-wrap: pretty;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

.socials {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 18px;
}

.icon-btn {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--ink);
  border: 1px solid transparent;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.72);
  border-color: var(--line-solid);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 980px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.012em;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s var(--ease);
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--ink);
  color: #fff;
}

.btn-primary:hover {
  background: #333336;
}

.btn-secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line-solid);
}

.btn-secondary:hover {
  border-color: #c6c6cc;
}

/* Sections */

.section {
  padding: 96px 0 8px;
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
}

.section-heading {
  margin: 0 0 22px;
  font-size: clamp(1.7rem, 2.5vw, 2.15rem);
  font-weight: 600;
  letter-spacing: -0.038em;
  line-height: 1.15;
  text-wrap: balance;
}

.prose p {
  margin: 0 0 1rem;
  font-size: 1.02rem;
  line-height: 1.7;
  letter-spacing: -0.011em;
  color: var(--body);
  text-wrap: pretty;
}

.prose p:last-child {
  margin-bottom: 0;
  color: var(--ink);
}

.about-actions {
  margin-top: 26px;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 36px 48px;
  align-items: center;
}

/* Gallery */

.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.project {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  appearance: none;
  -webkit-appearance: none;
  padding: 0;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--line-solid);
  background: #e7e5e0 center / 28px 28px no-repeat;
  cursor: zoom-in;
  color: inherit;
  min-width: 0;
}

.project img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: transform 0.7s var(--ease);
}

.project:hover img {
  transform: scale(1.045);
}

.project:hover {
  border-color: #c4c4c8;
}

.project.is-fallback::after {
  content: attr(data-label);
  position: absolute;
  left: 12px;
  bottom: 10px;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: rgba(29, 29, 31, 0.45);
}

/* Services bento */

.bento {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 8px;
  align-items: stretch;
}

.bento-card {
  position: relative;
  height: 100%;
  min-height: 252px;
  padding: 32px 46px 28px;
  display: flex;
}

.plate {
  position: absolute;
  inset: 0 6px;
  background: var(--surface);
  border: 1px solid var(--line-solid);
  border-radius: 22px;
  transform: skewX(-7deg);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.bento-card:nth-child(even) .plate {
  transform: skewX(7deg);
}

.bento-body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 38rem;
}

.bento-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  color: var(--ink);
}

.bento-card h3 {
  margin: 0 0 8px;
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: -0.028em;
  line-height: 1.25;
}

.bento-card h3 span {
  color: var(--faint);
  font-weight: 500;
  margin-right: 0.35em;
}

.bento-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.55;
  letter-spacing: -0.011em;
}

/* Contact */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 20px;
  align-items: stretch;
}

.location-card,
.contact-card {
  background: var(--surface);
  border: 1px solid var(--line-solid);
  border-radius: 20px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.location-card {
  display: flex;
  flex-direction: column;
  min-height: 480px;
  overflow: hidden;
  color: inherit;
  transition: border-color 0.2s ease;
}

.location-card:hover {
  border-color: #c4c4c8;
}

.location-map {
  position: relative;
  flex: 1;
  min-height: 340px;
  background: #e6e7eb;
}

.location-map svg {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 340px;
}

.location-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.location-meta strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.location-meta span {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  color: var(--muted);
}

.location-go {
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.01em;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-solid);
  background: var(--bg);
}

.contact-card {
  padding: 28px 28px 18px;
}

.detail + .detail {
  margin-top: 20px;
}

.detail h3,
.hours-heading {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--faint);
}

.detail p {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.014em;
}

.detail a {
  border-bottom: 1px solid rgba(0, 0, 0, 0.16);
  transition: border-color 0.2s ease;
}

.detail a:hover {
  border-bottom-color: var(--ink);
}

.tel-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 8px;
  row-gap: 4px;
}

.sep {
  color: var(--faint);
}

.hours-heading {
  margin-top: 30px;
  margin-bottom: 10px;
}

.hours {
  margin: 0;
}

.hours div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.hours div:first-child {
  border-top: 1px solid var(--line);
}

.hours div:last-child {
  border-bottom: none;
}

.hours dt {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.hours dd {
  margin: 0;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.hours .is-closed dd {
  color: var(--faint);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.hours .is-today dt,
.hours .is-today dd {
  color: var(--ink);
  font-weight: 600;
}

/* Footer */

.footer {
  margin-top: 88px;
  padding: 36px 0 56px;
  border-top: 1px solid #d2d2d7;
  text-align: center;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.copy {
  margin: 0;
  font-size: 13px;
  letter-spacing: -0.01em;
  color: var(--muted);
}

.credit {
  margin: 0;
  max-width: 36rem;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1.6;
  color: var(--faint);
  perspective: 600px;
}

@media (min-width: 640px) {
  .credit {
    white-space: nowrap;
  }
}

.heart {
  display: inline-block;
  transform-style: preserve-3d;
  transition: transform 0.8s ease;
  transform-origin: center center;
  padding: 0 3px;
  vertical-align: -2px;
  line-height: 0;
}

.heart:hover {
  transform: rotateY(360deg);
}

.heart svg {
  display: block;
}

.terms-link {
  margin-top: 4px;
  padding: 2px 0;
  border-bottom: 1px solid var(--line-solid);
  color: var(--muted);
  font-size: 13px;
  letter-spacing: -0.01em;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.terms-link:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

/* Dialogs */

.terms-dialog {
  padding: 0;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 22px;
  background: #fff;
  color: var(--ink);
  width: min(680px, calc(100vw - 32px));
  max-height: min(840px, calc(100dvh - 32px));
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.2);
}

.terms-dialog[open] {
  display: flex;
  flex-direction: column;
}

.terms-dialog::backdrop,
.lightbox::backdrop {
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.terms-scroll {
  overflow: auto;
  padding: 64px 44px 48px;
}

.terms-close,
.lightbox-close,
.lightbox-nav {
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  border-radius: 999px;
  display: grid;
  place-items: center;
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.terms-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 36px;
  height: 36px;
}

.logo--modal {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.terms-scroll h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2vw, 1.6rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.25;
  text-align: center;
  text-wrap: balance;
}

.terms-updated {
  margin: 8px 0 0;
  text-align: center;
  font-size: 13px;
  color: var(--faint);
  letter-spacing: -0.01em;
}

.terms-body h3 {
  margin: 28px 0 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.terms-body p {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.65;
  letter-spacing: -0.011em;
  color: var(--body);
  text-wrap: pretty;
}

.terms-body a {
  border-bottom: 1px solid rgba(0, 0, 0, 0.18);
}

.lightbox {
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
}

.lightbox[open] {
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox::backdrop {
  background: rgba(0, 0, 0, 0.72);
}

.lightbox-frame {
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-frame img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(1100px, calc(100vw - 160px));
  max-height: 82vh;
  border-radius: 16px;
  background: #111;
  object-fit: contain;
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
  transition: background 0.2s ease;
}

.lightbox-close:hover,
.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.24);
}

.lightbox-close {
  top: 18px;
  right: 18px;
}

.lightbox-nav.prev {
  left: 22px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-nav.next {
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox :focus-visible {
  outline-color: #fff;
}

.lightbox-count {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  margin: 0;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  color: rgba(255, 255, 255, 0.92);
  font-size: 12px;
  letter-spacing: 0.12em;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 980px) {
  .about-layout,
  .contact-grid,
  .bento {
    grid-template-columns: 1fr;
  }

  .location-card,
  .location-map,
  .location-map svg {
    min-height: 300px;
  }

  .location-map svg {
    height: 300px;
  }
}

@media (max-width: 760px) {
  .section {
    padding-top: 76px;
  }

  .hero {
    padding: 56px 0 48px;
  }

  .hero-veil {
    background:
      radial-gradient(ellipse 96% 68% at 50% 40%, rgba(245, 245, 247, 0.97) 0%, rgba(245, 245, 247, 0.92) 58%, rgba(245, 245, 247, 0.5) 100%);
  }

  .hero-copy {
    font-size: 1.02rem;
  }

  .actions {
    gap: 8px;
  }

  .hero .btn {
    padding: 0 16px;
  }

  .gallery {
    grid-template-columns: 1fr 1fr;
  }

  .bento-card {
    padding: 28px 32px 24px;
    min-height: 272px;
  }

  .plate {
    transform: skewX(-5deg);
  }

  .bento-card:nth-child(even) .plate {
    transform: skewX(5deg);
  }

  .terms-scroll {
    padding: 60px 22px 36px;
  }
}

@media (max-width: 720px) {
  .to-top {
    right: 16px;
    bottom: 16px;
  }

  .container {
    width: min(var(--max), calc(100% - 32px));
  }

  .lightbox-frame img {
    max-width: calc(100vw - 32px);
  }

  .lightbox-nav.prev,
  .lightbox-nav.next {
    top: auto;
    bottom: 18px;
    transform: none;
  }

  .lightbox-nav.prev { left: 16px; }
  .lightbox-nav.next { right: 16px; }
  .lightbox-count { bottom: 28px; }
}

@media (max-width: 380px) {
  .logo-img { max-width: min(540px, 88vw); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }

  .heart:hover { transform: none; }
}
