/* ============ Base ============ */
html { scroll-behavior: smooth; }
body {
  margin: 0;
  padding: 0;
  background: #fff;
  color: #000;
  font-family: Geist, "Inter", -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}
main { width: 100%; display: flex; flex-direction: column; align-items: center; }
a { color: #000; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; text-align: inherit; }
img { display: block; }
h1, h2, p { margin: 0; }

@keyframes marquee { from { transform: translate3d(0,0,0); } to { transform: translate3d(-50%,0,0); } }
@keyframes pulseDot { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }

.page { width: 100%; display: flex; flex-direction: column; align-items: center; }
.page[hidden] { display: none; }

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: #000;
  transform: scaleX(0);
  transform-origin: 0 50%;
  z-index: 1000;
  pointer-events: none;
}

@keyframes pageIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.page-enter { animation: pageIn 0.65s cubic-bezier(0.22, 1, 0.36, 1) both; }
.page-leave { opacity: 0; transform: translateY(-10px); transition: opacity 0.25s ease, transform 0.25s ease; }

/* ============ Shared bits ============ */
.btn {
  height: 48px;
  border-radius: 50px;
  background: #000;
  box-shadow: 0 10px 20px rgba(0,0,0,0.5);
  padding: 16px 26px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-family: Geist, sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 1;
  letter-spacing: -0.03em;
  color: #fff;
  white-space: nowrap;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 28px rgba(0,0,0,0.55); color: #fff; }
.btn-sm { height: 42px; padding: 14px 24px; font-family: Inter, sans-serif; font-size: 14px; }

.badge {
  border-radius: 50px;
  background: #000;
  box-shadow: 0 3px 15px rgba(0,0,0,0.5);
  padding: 5px 14px;
  font-family: Geist, sans-serif;
  font-weight: 400;
  font-size: 14px;
  white-space: nowrap;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: #fff;
}
.pill-white {
  border-radius: 50px;
  background: #fff;
  box-shadow: 0 3px 20px rgba(0,0,0,0.15);
  padding: 7px 16px;
  font-family: Geist, sans-serif;
  font-weight: 400;
  font-size: 14px;
  white-space: nowrap;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: #000;
}

.section-head { display: flex; flex-direction: column; gap: 30px; align-items: center; width: 100%; }
.section-title { display: flex; flex-direction: column; gap: 16px; align-items: center; width: 100%; }
.section-title h2 {
  font-weight: 500;
  font-size: clamp(32px, 6vw, 48px);
  text-align: center;
  line-height: 1;
  color: #000;
  text-wrap: balance;
}
.h2-inter { font-family: Inter, sans-serif; letter-spacing: -0.04em; }
.h2-geist { font-family: Geist, sans-serif; letter-spacing: -0.06em; }
.section-title p {
  font-family: Geist, sans-serif;
  font-weight: 400;
  font-size: 16px;
  text-align: center;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: #707070;
  text-wrap: pretty;
}

.stars { display: inline-flex; gap: 2px; align-items: center; }
.stars svg { fill: #000; }

/* ============ Header ============ */
.site-header {
  width: 100%;
  max-width: 1024px;
  padding: 20px 24px;
  box-sizing: border-box;
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.brand { display: flex; gap: 10px; align-items: center; cursor: pointer; }
.brand img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.brand-text { display: flex; flex-direction: column; gap: 5px; align-items: flex-start; }
.brand-name { font-family: Geist, sans-serif; font-weight: 500; font-size: 16px; line-height: 1; letter-spacing: -0.03em; color: #000; }
.brand-role { font-family: Geist, sans-serif; font-weight: 400; font-size: 14px; line-height: 1.2; letter-spacing: -0.03em; color: #707070; }
.header-right { display: flex; gap: 16px; align-items: center; }
.status { display: flex; gap: 10px; align-items: center; }
.status-mobile { display: none; }
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50px;
  background: rgb(7,209,0);
  animation: pulseDot 2.4s ease-in-out infinite;
  flex-shrink: 0;
}
.status-text { font-family: Geist, sans-serif; font-weight: 400; font-size: 14px; white-space: nowrap; line-height: 1.2; letter-spacing: -0.03em; color: #000; }
.header-divider { width: 1px; height: 42px; background: #c9c9c9; flex-shrink: 0; }

/* ============ Hero ============ */
.hero {
  width: 100%;
  padding: 56px 24px 80px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: center;
}
.hero-sub { padding: 56px 24px; }
.hero-copy { display: flex; flex-direction: column; gap: 16px; align-items: center; width: 100%; }
.hero-copy h1 {
  max-width: 720px;
  font-family: Inter, sans-serif;
  font-weight: 500;
  font-size: clamp(40px, 7vw, 72px);
  text-align: center;
  line-height: 1;
  letter-spacing: -0.04em;
  color: #000;
  text-wrap: balance;
}
.hero-copy p {
  max-width: 600px;
  font-family: Geist, sans-serif;
  font-weight: 400;
  font-size: 20px;
  text-align: center;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: #707070;
  text-wrap: pretty;
}
.h1-sub { font-size: clamp(36px, 5.5vw, 56px) !important; }
.hero-sub-p { font-size: 16px !important; }
.rating-pill {
  border-radius: 50px;
  background: #fff;
  box-shadow: 0 3px 20px rgba(0,0,0,0.15);
  padding: 7px 10px;
  display: flex;
  gap: 10px;
  align-items: center;
}
.rating-text { font-family: Geist, sans-serif; font-weight: 400; font-size: 14px; white-space: nowrap; line-height: 1.2; letter-spacing: -0.03em; color: #000; }

/* ============ Marquees ============ */
.marquee-wrap { width: 100%; overflow: hidden; padding-bottom: 4px; }
/* The track is far wider than the screen, so leaving this visible let the
   whole document pan sideways on mobile — which also drifted the fixed nav
   off-screen. Clip the x axis only: `hidden` would force overflow-y to auto
   and crop the cards' shadow, while `clip` leaves y genuinely visible.
   Engines without `clip` keep the `hidden` fallback above it. */
.marquee-wrap-open {
  overflow: hidden;
  overflow-x: clip;
  overflow-y: visible;
  padding: 8px 0 16px;
}
.marquee-track {
  display: flex;
  gap: 12px;
  width: max-content;
  animation: marquee linear infinite;
}
.marquee-track:hover { animation-play-state: paused; }
.marquee-track-slow { gap: 30px; }
.showcase-card {
  width: min(635px, 85vw);
  aspect-ratio: 4 / 3;
  border-radius: 36px;
  background: #ececec;
  padding: 20px;
  box-sizing: border-box;
  flex-shrink: 0;
}
.showcase-card > div { width: 100%; height: 100%; border-radius: 16px; background-position: center; background-size: cover; background-repeat: no-repeat; }

.quote-card {
  width: 440px;
  border-radius: 30px;
  background: #fff;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  padding: 10px;
  box-sizing: border-box;
  flex-shrink: 0;
}
.quote-inner {
  border-radius: 25px;
  background: #ebeced;
  padding: 50px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: flex-start;
  min-height: 322px;
}
.quote-head { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.quote-who { display: flex; flex-direction: column; gap: 5px; align-items: flex-start; }
.quote-name { font-family: Geist, sans-serif; font-weight: 500; font-size: 16px; line-height: 1; letter-spacing: -0.03em; color: #000; }
.quote-role { font-family: Geist, sans-serif; font-weight: 400; font-size: 14px; line-height: 1.2; letter-spacing: -0.03em; color: #707070; }
.quote-inner p { font-family: Geist, sans-serif; font-weight: 400; font-size: 16px; line-height: 1.4; letter-spacing: -0.01em; color: #000; text-wrap: pretty; }

/* ============ Sections ============ */
.section { width: 100%; box-sizing: border-box; display: flex; flex-direction: column; align-items: center; }
.about-section {
  border-top: 1px solid rgba(0,0,0,0.12);
  border-bottom: 1px solid rgba(0,0,0,0.12);
  padding: 80px 24px;
  gap: 80px;
}
.projects-section { border-bottom: 1px solid rgba(0,0,0,0.12); padding: 80px 8px; gap: 65px; }
.toolkit-section { padding: 80px 24px; }
.track-section {
  border-top: 1px solid rgba(0,0,0,0.12);
  border-bottom: 1px solid rgba(0,0,0,0.12);
  padding: 80px 24px;
  gap: 80px;
}
.process-section { border-bottom: 1px solid rgba(0,0,0,0.12); padding: 80px 24px; gap: 80px; }

/* ============ About bento ============ */
.about-grid {
  width: 100%;
  max-width: 1080px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 10px;
}
.bento-card { border-radius: 32px; background: #f7f7f7; box-sizing: border-box; overflow: hidden; }
.about-main {
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: flex-start;
  justify-content: space-between;
  min-height: 583px;
}
.bento-big { font-family: Inter, sans-serif; font-weight: 600; font-size: 32px; line-height: 1.16; letter-spacing: -0.02em; color: #000; text-wrap: pretty; }
.about-avatar { width: 100%; flex: 1 1 0; min-height: 0; display: flex; align-items: stretch; justify-content: center; }
.about-avatar img { width: 100%; height: 100%; object-fit: contain; object-position: center bottom; }
.about-col { display: flex; flex-direction: column; gap: 10px; }
.based-in {
  padding: 28px 0 48px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  justify-content: space-between;
  flex-grow: 1;
}
.based-in-copy { padding: 0 32px; display: flex; flex-direction: column; gap: 2px; align-items: flex-start; }
.bento-label { font-family: Inter, sans-serif; font-weight: 600; font-size: 12px; line-height: 1.36; color: rgba(0,0,0,0.5); }
.bento-value { font-family: Inter, sans-serif; font-weight: 600; font-size: 24px; line-height: 1.2; letter-spacing: -0.03em; color: #000; text-wrap: pretty; }
.based-in-art { height: 112px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.based-in-art img { width: 588px; height: 112px; object-fit: contain; flex-shrink: 0; }
.done-card {
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  justify-content: space-between;
  align-items: flex-start;
  min-height: 269px;
}
.pill-light {
  border-radius: 1000px;
  background: #fff;
  padding: 8px 12px 7px;
  box-sizing: border-box;
  display: inline-flex;
  gap: 6px;
  align-items: center;
  font-family: Inter, sans-serif;
  font-weight: 600;
  font-size: 12px;
  white-space: nowrap;
  line-height: 1.36;
  color: rgba(0,0,0,0.5);
}
.pill-dot { width: 4px; height: 4px; border-radius: 1000px; background: rgb(53,199,89); flex-shrink: 0; }

/* ============ Work grid (home) ============ */
.work-grid {
  width: 100%;
  max-width: 1080px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 10px;
}
.work-card {
  position: relative;
  height: auto;
  aspect-ratio: 4 / 3;
  border-radius: 18px;
  background: #f7f7f7;
  padding: 0;
  box-sizing: border-box;
  overflow: hidden;
  display: flex;
  cursor: pointer;
  transition: transform 0.45s ease, background 0.45s ease;
}
.work-card:hover { transform: translateY(-6px); background: #f2f2f2; }
.work-card > span:first-child {
  width: 100%;
  height: 100%;
  border-radius: 18px;
  background-position: center top;
  background-size: cover;
  background-repeat: no-repeat;
}

/* ============ Toolkit ============ */
.toolkit-inner { width: 100%; max-width: 700px; display: flex; flex-direction: column; gap: 50px; align-items: center; }
.toolkit-list { width: 100%; display: flex; flex-direction: column; gap: 5px; }
.tool-bar {
  width: 100%;
  height: 83px;
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  transition: transform 0.45s ease;
}
.tool-bar:hover { transform: translateY(-3px); }
.tool-fill { position: absolute; left: 0; top: 0; height: 100%; background: #000; }
.tool-content {
  position: absolute;
  left: 10px;
  top: 10px;
  right: 140px;
  height: 64px;
  display: flex;
  gap: 10px;
  align-items: center;
}
.tool-icon {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.tool-icon img { width: 42px; height: 42px; object-fit: contain; }
.tool-copy { display: flex; flex-direction: column; gap: 5px; align-items: flex-start; min-width: 0; }
.tool-name { font-family: Geist, sans-serif; font-weight: 500; font-size: 20px; line-height: 1.2; letter-spacing: -0.05em; color: #fff; }
.tool-desc { font-family: Geist, sans-serif; font-weight: 400; font-size: 14px; line-height: 1.2; letter-spacing: -0.03em; color: #bababa; }
.tool-level {
  position: absolute;
  right: 14px;
  top: 23px;
  height: 37px;
  border-radius: 50px;
  background: #e8e8e8;
  padding: 10px 14px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Geist, sans-serif;
  font-weight: 400;
  font-size: 14px;
  white-space: nowrap;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: #7a7a7a;
}
.tool-level-glass {
  background: rgba(38,38,38,0.3);
  backdrop-filter: blur(20px);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.1);
  color: #fff;
}

/* ============ Track record ============ */
.stat-grid {
  width: 100%;
  max-width: 880px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 10px;
}
.stat-card {
  border-radius: 32px;
  background: #f7f7f7;
  padding: 56px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  justify-content: center;
  min-height: 308px;
}
.stat-number { font-family: Inter, sans-serif; font-weight: 600; font-size: 80px; text-align: center; line-height: 1.16; letter-spacing: -0.02em; color: #000; }
.stat-number-fluid { font-size: clamp(72px, 10vw, 80px); }
.stat-unit { font-size: 0.42em; }
.stat-label { font-family: Inter, sans-serif; font-weight: 600; font-size: 32px; text-align: center; line-height: 1.16; letter-spacing: -0.02em; color: #000; }

/* ============ Process / experience ============ */
.xp-list { width: 100%; max-width: 880px; display: flex; flex-direction: column; gap: 16px; }
.xp-card {
  border-radius: 30px;
  background: #fff;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  padding: 10px;
  box-sizing: border-box;
  transition: transform 0.45s ease;
}
.xp-card:hover { transform: translateY(-3px); }
.xp-inner {
  border-radius: 25px;
  background: #ebeced;
  padding: 48px;
  box-sizing: border-box;
  display: flex;
  gap: 30px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.xp-meta { width: 151px; flex-shrink: 0; display: flex; flex-direction: column; gap: 10px; }
.xp-meta-top { display: flex; flex-direction: column; gap: 5px; }
.xp-title { font-family: Geist, sans-serif; font-weight: 500; font-size: 16px; line-height: 1; letter-spacing: -0.03em; color: #000; }
.xp-org { font-family: Geist, sans-serif; font-weight: 400; font-size: 14px; line-height: 1.2; letter-spacing: -0.03em; color: #707070; }
.xp-dates { font-family: Geist, sans-serif; font-weight: 400; font-size: 14px; line-height: 1.2; letter-spacing: -0.03em; color: #000; }
.xp-inner p { flex: 1 1 320px; font-family: Geist, sans-serif; font-weight: 400; font-size: 16px; line-height: 1.4; letter-spacing: -0.01em; color: #000; text-wrap: pretty; }

/* ============ Projects page ============ */
.projects-hero { border-bottom: 1px solid rgba(0,0,0,0.12); }
.social-row { display: flex; gap: 6.67px; align-items: center; }
.social-tile {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: rgb(1,1,1);
  box-shadow: 0 6.667px 13.333px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.35s ease;
}
.social-tile:hover { transform: translateY(-2px); }
.social-tile span { font-family: Inter, sans-serif; font-weight: 600; font-size: 13px; letter-spacing: -0.02em; color: #fff; }
.projects-index { border-bottom: 1px solid rgba(0,0,0,0.12); padding: 56px 8px; }
.index-grid {
  width: 100%;
  max-width: 1080px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 10px;
}
.index-card {
  position: relative;
  height: auto;
  aspect-ratio: 4 / 3;
  border-radius: 32px;
  background: #f7f7f7;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.45s ease;
  display: block;
  width: 100%;
}
.index-card:hover { transform: translateY(-6px); }
.index-img {
  position: absolute;
  inset: 16px;
  border-radius: 18px;
  background-position: center top;
  background-size: cover;
  background-repeat: no-repeat;
}
.index-bar {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 26px;
  height: 54px;
  border-radius: 80px;
  background: #fff;
  padding: 6px;
  box-sizing: border-box;
  display: flex;
  gap: 10px;
  align-items: center;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.index-card:hover .index-bar,
.index-card:focus-visible .index-bar,
.work-card:hover .index-bar,
.work-card:focus-visible .index-bar {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
/* Gradient scrim behind the hover pill (transparent -> 80% black). */
.work-card > span:first-child {
  position: relative;
}
.work-card > span:first-child::after,
.index-img::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.8) 100%);
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
}
.work-card:hover > span:first-child::after,
.work-card:focus-visible > span:first-child::after,
.index-card:hover .index-img::after,
.index-card:focus-visible .index-img::after {
  opacity: 1;
}

/* The pill is hover/focus-only on every device. On touch screens tapping the
   card goes straight to the project detail, so the pill stays hidden there. */
.index-avatar {
  width: 42px;
  height: 42px;
  border-radius: 60px;
  background: rgb(195,245,60);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Geist, sans-serif;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.03em;
  color: rgb(0,44,21);
}
.index-copy { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex-grow: 1; align-items: flex-start; }
.index-name { font-family: Geist, sans-serif; font-weight: 500; font-size: 15px; line-height: 1; letter-spacing: -0.03em; color: #000; white-space: nowrap; }
.index-desc {
  font-family: Geist, sans-serif;
  font-weight: 400;
  font-size: 12.5px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: #707070;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.index-cta {
  height: 38px;
  border-radius: 60px;
  background: #f7f7f7;
  padding: 0 16px;
  display: flex;
  gap: 6px;
  align-items: center;
  flex-shrink: 0;
  font-family: Geist, sans-serif;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: -0.03em;
  color: #000;
  white-space: nowrap;
}
.open-slot {
  height: 326px;
  border-radius: 32px;
  background: #f7f7f7;
  padding: 16px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}
.open-slot-sm { height: 278px; }
.open-slot-inner {
  width: 100%;
  height: 100%;
  border-radius: 18px;
  border: 1px dashed #d9d9d9;
  background: repeating-linear-gradient(135deg, #fafafa 0px, #fafafa 8px, #f5f5f5 8px, #f5f5f5 16px);
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}
.open-slot-inner span { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12px; letter-spacing: 0.04em; color: #adadad; }

/* ============ Project detail ============ */
.detail-section {
  width: 100%;
  padding: 56px 24px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 56px;
  align-items: center;
}
.detail-head { width: 100%; max-width: 800px; display: flex; flex-direction: column; gap: 30px; }
.detail-head-row { display: flex; gap: 28px; align-items: center; }
.back-btn {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #000;
  box-shadow: 0 8.571px 17.143px rgba(0,0,0,0.5);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.35s ease;
}
.back-btn:hover { transform: translateX(-3px); }
.detail-title { display: flex; flex-direction: column; gap: 8px; flex-grow: 1; min-width: 0; }
.detail-title h1 { font-family: Inter, sans-serif; font-weight: 500; font-size: clamp(30px, 4.5vw, 48px); line-height: 1; letter-spacing: -0.04em; color: #000; }
.detail-title p { font-family: Geist, sans-serif; font-weight: 400; font-size: 16px; line-height: 1.4; letter-spacing: -0.01em; color: #707070; text-wrap: pretty; }
.detail-hero {
  width: 100%;
  max-width: 880px;
  aspect-ratio: 4 / 3;
  border-radius: 18px;
  background: #f7f7f7;
  padding: 0;
  box-sizing: border-box;
  overflow: hidden;
}
.detail-hero > span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 18px;
  background-position: center top;
  background-size: cover;
  background-repeat: no-repeat;
}
.detail-copy { width: 100%; max-width: 720px; display: flex; flex-direction: column; gap: 20px; }
.detail-copy p { font-family: Geist, sans-serif; font-weight: 400; font-size: 16px; line-height: 1.4; letter-spacing: -0.01em; color: #707070; text-wrap: pretty; }
.detail-gallery {
  width: 100%;
  max-width: 880px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 10px;
  /* Each card keeps its own height rather than stretching to the tallest one
     in its row. */
  align-items: start;
}
.gallery-card {
  border-radius: 18px;
  background: #f7f7f7;
  padding: 0;
  box-sizing: border-box;
  overflow: hidden;
}
/* The grid column fixes the width; the height follows the image's own ratio,
   so shots are never cropped. */
.gallery-card > img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
}
.detail-gallery .open-slot { height: auto; aspect-ratio: 4 / 3; }

/* ============ Contact ============ */
.cal-section {
  width: 100%;
  padding: 56px 24px 0;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
}
.cal-card {
  width: 100%;
  max-width: 1080px;
  border-radius: 18px;
  border: 1px solid rgba(0,0,0,0.08);
  background: #fafafa;
  padding: 10px;
  box-sizing: border-box;
}
.cal-card > div {
  width: 100%;
  min-height: 620px;
  overflow: auto;
}
@media (max-width: 600px) {
  .cal-section { padding: 24px 12px 0; }
  .cal-card > div { min-height: 560px; }
}

.contact-section {
  width: 100%;
  padding: 80px 24px;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
}
.contact-card {
  width: 100%;
  max-width: 700px;
  border-radius: 30px;
  background: #fff;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  padding: 10px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.contact-inner {
  width: 100%;
  border-radius: 20px;
  background: #ebeced;
  padding: 40px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 50px;
  align-items: center;
}
.contact-links { width: 100%; display: flex; flex-direction: column; gap: 20px; align-items: center; }
.contact-label { font-family: Geist, sans-serif; font-weight: 500; font-size: 16px; text-align: center; line-height: 1; letter-spacing: -0.03em; color: #000; }
.contact-detail { width: 100%; display: flex; flex-direction: column; gap: 5px; align-items: center; }
.contact-phone { font-family: Geist, sans-serif; font-weight: 500; font-size: 20px; text-align: center; line-height: 1.2; letter-spacing: -0.05em; color: #000; }
.contact-email {
  font-family: Geist, sans-serif;
  font-weight: 500;
  font-size: clamp(22px, 5vw, 36px);
  text-align: center;
  line-height: 1;
  letter-spacing: -0.06em;
  color: #000;
  word-break: break-word;
}
.contact-phone:hover, .contact-email:hover { color: #707070; }
.contact-social { display: flex; gap: 5px; align-items: center; }
.contact-social a {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 5px 10px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.35s ease;
}
.contact-social a:hover { transform: translateY(-2px); }
.contact-footer {
  width: 100%;
  padding: 20px 0 10px;
  box-sizing: border-box;
  font-family: Geist, sans-serif;
  font-weight: 400;
  font-size: 16px;
  text-align: center;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: #000;
}

/* ============ Bottom nav ============ */
.nav-spacer { height: 110px; flex-shrink: 0; }
.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(28px + env(safe-area-inset-bottom, 0px));
  z-index: 999;
  display: flex;
  justify-content: center;
  padding: 0 16px;
  pointer-events: none;
  /* Own compositor layer — keeps the fixed nav painted through big DOM
     swaps and instant scrolls during page transitions. */
  transform: translateZ(0);
  will-change: transform;
  backface-visibility: hidden;
}
.bottom-nav-shell {
  width: 100%;
  max-width: 604px;
  height: 66px;
  border-radius: 50px;
  background: #fff;
  box-shadow: 0 5px 20px rgba(0,0,0,0.25);
  padding: 5px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  pointer-events: auto;
}
.bottom-nav-track {
  flex-grow: 1;
  align-self: stretch;
  position: relative;
  border-radius: 50px;
  background: #ebeced;
  padding: 4px;
  box-sizing: border-box;
  display: flex;
  gap: 2px;
  align-items: center;
  justify-content: space-between;
}
.nav-pill {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 0;
  width: 0;
  border-radius: 50px;
  background: linear-gradient(226.422deg, rgb(50,50,50) 24.99%, rgb(20,20,20) 75.01%);
  transition: left 0.5s cubic-bezier(0.4, 0, 0.2, 1), width 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s ease;
  pointer-events: none;
}
.nav-item {
  flex-grow: 1;
  flex-basis: 0;
  align-self: stretch;
  position: relative;
  z-index: 1;
  overflow: hidden;
  border-radius: 50px;
  padding: 0 clamp(6px, 2.2vw, 16px);
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.35s ease, color 0.4s ease;
  font-family: Geist, sans-serif;
  font-weight: 500;
  font-size: clamp(13px, 3.4vw, 16px);
  white-space: nowrap;
  line-height: 1;
  letter-spacing: -0.03em;
  color: #000;
}
.nav-item-home { flex-grow: 1.15; }
.nav-icon {
  display: block;
  width: 0;
  height: auto;
  margin-right: 0;
  opacity: 0;
  transform: scale(0.5);
  flex-shrink: 0;
  transition: width 0.45s cubic-bezier(0.4, 0, 0.2, 1), margin-right 0.45s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s ease, transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-item.is-active .nav-icon {
  width: clamp(15px, 4vw, 18px);
  margin-right: clamp(4px, 1.4vw, 8px);
  opacity: 1;
  transform: scale(1);
}
.nav-item-link { flex-grow: 1.1; }
.nav-item:hover:not(.is-active) { background: rgba(255,255,255,0.6); color: #000; }
.nav-item.is-active { color: #fff; }

/* Mobile: icon-only navbar */
@media (max-width: 600px) {
  .nav-item span { display: none; }
  .nav-icon,
  .nav-item.is-active .nav-icon {
    width: 20px;
    margin-right: 0;
    opacity: 1;
    transform: none;
  }
}

/* Phones only: toolkit rows become solid black cards. Tablets and up keep
   the progress-bar style — at ≥600px the fill (capped at 100% − 118px) is
   still wide enough to keep the name and description on black. */
@media (max-width: 600px) {
  .tool-bar {
    height: auto;
    background: #000;
    border-radius: 18px;
    padding: 10px 14px 10px 10px;
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .tool-fill { display: none; }
  .tool-content {
    position: static;
    height: auto;
    flex: 1 1 auto;
    min-width: 0;
  }
  .tool-icon { width: 48px; height: 48px; border-radius: 12px; }
  .tool-icon img { width: 32px; height: 32px; }
  .tool-name { font-size: 17px; }
  .tool-desc { font-size: 13px; white-space: normal; }
  .tool-level,
  .tool-level-glass {
    position: static;
    flex-shrink: 0;
    height: 34px;
    padding: 0 14px;
    font-size: 13px;
    background: rgba(255,255,255,0.14);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
    backdrop-filter: none;
    color: #fff;
  }
}

/* Mobile: compact one-row header — status moves under the name */
@media (max-width: 600px) {
  .site-header { flex-wrap: nowrap; padding: 16px 20px; gap: 12px; }
  .brand { gap: 8px; min-width: 0; }
  .brand img { width: 44px; height: 44px; }
  .brand-text { gap: 4px; }
  .brand-role { display: none; }
  .status-mobile { display: flex; gap: 6px; }
  .status-mobile .status-dot { width: 6px; height: 6px; }
  .status-mobile .status-text { font-size: 12px; color: #707070; }
  .header-right .status, .header-divider { display: none; }
  .header-right .btn-sm { height: 38px; padding: 0 18px; font-size: 13px; flex-shrink: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .nav-pill, .nav-icon, .nav-item, .page-leave { transition: none; }
  .page-enter { animation: none; }
  .marquee-track { animation-play-state: paused; }
}
