:root {
  --page: #f5f5f7;
  --card: #fbfaf7;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --soft: #86868b;
  --line: rgba(0, 0, 0, 0.08);
  --blue: #0071e3;
  --blue-dark: #005bb5;
  --warm: #c06b35;
  --warm-soft: #f0ded1;
  --black: #050505;
  --dark-card: #111113;
  --radius-lg: 32px;
  --radius-md: 22px;
  --max: 1180px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--page);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

:focus-visible {
  outline: 3px solid rgba(0, 113, 227, 0.36);
  outline-offset: 4px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(var(--max), calc(100% - 44px));
  min-height: 58px;
  margin: 0 auto;
  padding: 10px 0;
  color: rgba(29, 29, 31, 0.82);
  background: rgba(245, 245, 247, 0.72);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(251, 250, 247, 0.74);
  font-size: 21px;
  font-weight: 820;
  letter-spacing: -0.04em;
}

.brand span {
  color: var(--text);
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: rgba(29, 29, 31, 0.78);
  font-size: 15px;
  font-weight: 600;
}

.nav a {
  padding: 6px 2px;
  transition: color 0.18s ease;
}

.nav a:hover {
  color: var(--blue);
}

.hero,
.section,
.feature,
.contact,
.site-footer {
  width: min(var(--max), calc(100% - 44px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.5fr);
  gap: clamp(28px, 5vw, 46px);
  min-height: calc(100vh - 58px);
  padding: 48px 0;
  align-content: center;
  text-align: left;
}

.hero-copy {
  width: min(900px, 100%);
  margin: 0;
  min-width: 0;
}

.hero-visual {
  position: relative;
  align-self: center;
  width: 100%;
  max-width: 460px;
  min-width: 0;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 30px;
  overflow: hidden;
  background: #ececf0;
  box-shadow: 0 28px 80px rgba(29, 29, 27, 0.08);
  aspect-ratio: 3 / 2;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.86) contrast(0.98);
}

.hero-visual span {
  position: absolute;
  left: 18px;
  bottom: 16px;
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(251, 250, 247, 0.78);
  color: rgba(29, 29, 31, 0.8);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--soft);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  letter-spacing: -0.055em;
}

h1 {
  margin-bottom: 22px;
  font-size: clamp(72px, 10vw, 100px);
  line-height: 1.05;
  font-weight: 800;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(42px, 7vw, 88px);
  line-height: 1.1;
  font-weight: 780;
}

h3 {
  margin-bottom: 10px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.12;
  font-weight: 740;
}

.hero-line {
  max-width: 760px;
  margin: 0 0 22px;
  font-size: clamp(25px, 3.8vw, 46px);
  line-height: 1.22;
  font-weight: 760;
  letter-spacing: -0.04em;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.hero-intro,
.section-head > p,
.feature-copy > p,
.contact-copy > p {
  color: var(--muted);
  font-size: clamp(18px, 2.2vw, 23px);
  line-height: 1.7;
  letter-spacing: -0.018em;
}

.hero-intro {
  width: min(720px, 100%);
  margin: 0;
  overflow-wrap: anywhere;
}

.section {
  padding: clamp(78px, 11vw, 134px) 0;
}

.section-head {
  width: min(820px, 100%);
  margin-bottom: 34px;
}

.section-head.centered {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.now-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 76px);
  align-items: start;
}

.now-layout .section-head {
  margin-bottom: 0;
}

.now-story {
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.now-story > p {
  max-width: 680px;
  margin: 0;
  color: var(--text);
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.45;
  font-weight: 680;
  letter-spacing: -0.035em;
}

.now-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.now-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid rgba(0, 113, 227, 0.18);
  border-radius: 999px;
  background: rgba(0, 113, 227, 0.055);
  color: var(--blue-dark);
  font-size: 13px;
  font-weight: 720;
  letter-spacing: -0.01em;
}

.now-tags span:nth-child(2) {
  border-color: rgba(192, 107, 53, 0.22);
  background: var(--warm-soft);
  color: var(--warm);
}

.interest-card,
.contact-panel,
.work-card {
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

.interest-card span,
.contact-panel span,
.work-card span {
  display: block;
  margin-bottom: 18px;
  color: var(--soft);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.interest-card p,
.timeline-row p,
.work-card p,
.contact-panel p,
.site-footer p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 17px;
  letter-spacing: -0.016em;
}

.feature {
  display: grid;
  gap: 28px;
  padding: clamp(48px, 7vw, 78px);
  border-radius: 36px;
  overflow: hidden;
}

.feature-light {
  background: var(--card);
}

.feature-dark {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
  align-items: center;
  margin-top: 26px;
  background: var(--black);
  color: #f5f5f7;
}

.feature-dark .eyebrow,
.feature-dark p {
  color: rgba(245, 245, 247, 0.68);
}

.feature-copy {
  width: min(780px, 100%);
}

.bakery-preview {
  display: grid;
  grid-template-columns: minmax(140px, 0.4fr) minmax(260px, 0.84fr);
  align-items: start;
  gap: 18px;
  width: min(820px, 100%);
}

.bakery-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.bakery-chip {
  min-height: 40px;
  padding: 9px 15px;
  border: 1px solid rgba(29, 29, 31, 0.1);
  border-radius: 999px;
  background: rgba(251, 250, 247, 0.72);
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.bakery-chip:hover,
.bakery-chip:focus-visible,
.bakery-chip.is-active {
  border-color: rgba(0, 113, 227, 0.28);
  background: var(--card);
  color: var(--text);
  transform: translateY(-1px);
}

.bakery-stage,
.image-interest {
  position: relative;
  min-height: 190px;
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  background: #ececf0;
}

.bakery-stage {
  aspect-ratio: 4 / 3;
  min-height: 0;
}

.bakery-stage img,
.image-interest img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: center;
  transform: scale(1.01);
  filter: saturate(0.82) contrast(0.98);
}

.bakery-stage figcaption {
  position: absolute;
  left: 18px;
  bottom: 16px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(251, 250, 247, 0.76);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.interest-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.72fr);
  align-items: center;
  gap: 18px;
}

.interest-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 320px;
  padding: 34px;
}

.interest-card a,
.button {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--blue);
  color: #f5f5f7;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: background 0.18s ease, transform 0.18s ease;
}

.interest-card a:hover,
.button:hover {
  background: var(--blue-dark);
  transform: translateY(-1px);
}

.clip-list {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.clip-list a {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  min-height: 64px;
  width: 100%;
  padding: 13px 42px 13px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--page);
  color: var(--text);
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.clip-list a::after {
  content: "↗";
  position: absolute;
  right: 16px;
  top: 50%;
  color: var(--soft);
  font-size: 15px;
  font-weight: 700;
  transform: translateY(-50%);
  transition: color 0.18s ease, transform 0.18s ease;
}

.clip-list a:hover {
  border-color: rgba(0, 113, 227, 0.28);
  background: var(--card);
  transform: translateY(-1px);
}

.clip-list a:hover::after {
  color: var(--blue);
  transform: translate(2px, calc(-50% - 2px));
}

.clip-list span {
  margin: 0;
  color: var(--text);
  font-size: 15px;
  font-weight: 720;
}

.clip-list small {
  color: var(--soft);
  font-size: 12px;
  font-weight: 600;
}

.clip-list .pending {
  cursor: default;
  opacity: 0.56;
  pointer-events: none;
}

.image-interest {
  padding: 0;
  color: #f5f5f7;
  aspect-ratio: 16 / 10;
  min-height: 0;
}

.image-interest::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 36%, rgba(0, 0, 0, 0.68));
}

.image-interest > div {
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: 24px;
  z-index: 1;
}

.image-interest img {
  height: 100%;
  min-height: 0;
  object-position: center 48%;
}

.image-interest span,
.image-interest p {
  color: rgba(255, 255, 255, 0.74);
}

.work-card {
  min-height: 280px;
  padding: 34px;
  background:
    radial-gradient(circle at 80% 20%, rgba(0, 113, 227, 0.24), transparent 36%),
    var(--dark-card);
  color: #f5f5f7;
}

.work-card strong {
  display: block;
  max-width: 420px;
  margin-bottom: 16px;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1;
  letter-spacing: -0.055em;
}

.timeline-row {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.timeline-row::before {
  content: "";
  position: absolute;
  left: 12.5%;
  right: 12.5%;
  bottom: 37px;
  height: 1px;
  background: var(--line);
}

.timeline-row::after {
  content: "";
  position: absolute;
  right: calc(12.5% - 2px);
  bottom: 33px;
  width: 8px;
  height: 8px;
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  transform: rotate(45deg);
}

.timeline-row article {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: 1fr 66px;
}

.timeline-card {
  height: 100%;
  padding: 28px 22px;
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

.timeline-card h3 {
  line-height: 1.12;
}

.timeline-card h3 span {
  display: inline-block;
  margin-top: 6px;
}

.timeline-marker {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 66px;
}

.timeline-marker::before {
  content: "";
  width: 1px;
  height: 22px;
  background: var(--line);
}

.timeline-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--blue);
  transform: translateY(-1px);
}

.timeline-card-future {
  background: transparent;
  border: 1px dashed var(--line);
  box-shadow: none;
}

.timeline-dot-future {
  background: var(--card);
  border: 1.5px solid var(--blue);
}

.timeline-year {
  margin-top: 9px;
  color: var(--soft);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.58fr);
  gap: clamp(28px, 7vw, 84px);
  align-items: center;
  padding: clamp(78px, 11vw, 128px) 0;
}

.contact-copy {
  width: min(680px, 100%);
}

.contact-panel {
  display: grid;
  grid-template-columns: 124px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 16px;
}

.contact-panel img {
  width: 124px;
  aspect-ratio: 1;
  border-radius: 20px;
  object-fit: cover;
}

.contact-panel strong {
  display: block;
  margin-bottom: 10px;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1;
  letter-spacing: -0.055em;
}

.site-footer {
  padding: 28px 0 42px;
  border-top: 1px solid var(--line);
}

.error-page {
  min-height: 100vh;
}

.error-shell {
  display: grid;
  align-content: center;
  width: min(760px, calc(100% - 44px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 44px 0;
}

.error-shell .brand {
  margin-bottom: 36px;
}

.error-card {
  padding: clamp(36px, 7vw, 68px);
  border-radius: 36px;
  background: var(--card);
  box-shadow: 0 28px 80px rgba(29, 29, 27, 0.08);
}

.error-card h1 {
  max-width: 620px;
  font-size: clamp(48px, 9vw, 84px);
}

.error-card p:not(.eyebrow) {
  max-width: 560px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.65;
  letter-spacing: -0.018em;
}

.js [data-reveal] {
  opacity: 0;
  transform: translateY(34px) scale(0.985);
  transition:
    opacity 0.72s ease,
    transform 0.88s cubic-bezier(0.22, 1, 0.36, 1);
}

.js .reveal-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    aspect-ratio: 16 / 10;
    max-width: 100%;
  }

  .now-layout,
  .interest-grid,
  .feature-dark,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    justify-self: center;
  }
}

@media (max-width: 768px) {
  .timeline-row {
    grid-template-columns: 1fr;
    gap: 18px;
    padding-left: 36px;
  }

  .timeline-row::before {
    left: 13px;
    right: auto;
    top: 22px;
    bottom: 18px;
    width: 1px;
    height: auto;
  }

  .timeline-row::after {
    left: 9px;
    right: auto;
    bottom: 15px;
    border-top: 0;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    transform: rotate(45deg);
  }

  .timeline-row article {
    grid-template-columns: 28px minmax(0, 1fr);
    grid-template-rows: auto;
    gap: 12px;
  }

  .timeline-card {
    grid-column: 2;
    grid-row: 1;
  }

  .timeline-marker {
    grid-column: 1;
    grid-row: 1;
    align-self: start;
    height: auto;
    min-height: 74px;
  }

  .timeline-marker::before {
    display: none;
  }

  .timeline-dot {
    margin-top: 22px;
    transform: none;
  }

  .timeline-year {
    margin-top: 8px;
    font-size: 12px;
    white-space: nowrap;
    transform: translateX(-4px);
  }
}

@media (max-width: 760px) {
  .site-header,
  .hero,
  .section,
  .feature,
  .contact,
  .site-footer {
    width: min(calc(100% - 28px), var(--max));
  }

  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .nav {
    flex-wrap: wrap;
    gap: 12px 18px;
  }

  .hero {
    padding-top: 54px;
    max-width: calc(100vw - 28px);
    overflow: hidden;
  }

  .hero-copy,
  .hero-intro,
  .hero-line {
    max-width: calc(100vw - 28px);
  }

  h1 {
    font-size: clamp(58px, 17vw, 82px);
  }

  .hero-line {
    font-size: clamp(26px, 8.4vw, 34px);
  }

  .hero-intro,
  .section-head > p,
  .feature-copy > p,
  .contact-copy > p {
    word-break: break-all;
    line-break: loose;
  }

  h2 {
    font-size: clamp(40px, 12vw, 58px);
  }

  .bakery-preview {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .feature {
    padding: 34px 20px;
    border-radius: 30px;
  }

  .interest-card,
  .work-card {
    min-height: auto;
  }

  .now-story {
    padding-top: 22px;
  }

  .bakery-stage,
  .image-interest {
    min-height: 180px;
  }

  .contact-panel {
    grid-template-columns: 96px minmax(0, 1fr);
    border-radius: 26px;
  }

  .contact-panel img {
    width: 96px;
    border-radius: 18px;
  }

  .error-shell {
    width: min(100% - 28px, 760px);
  }
}

@media (max-width: 460px) {
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .contact-panel img {
    width: 120px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
