/* pintcode-site/styles.css */

:root {
  --color-ink: #201513;
  --color-muted: #4f3b31;
  --color-paper: #fff8ee;
  --color-paper-soft: rgba(255, 249, 240, 0.78);
  --color-paper-strong: rgba(255, 251, 245, 0.9);
  --color-cream: #fbf2e6;
  --color-cream-deep: #ead5ba;
  --color-coffee: #572615;
  --color-coffee-dark: #2a1109;
  --color-amber: #a45c20;
  --color-gold: #d6a15d;
  --color-line: rgba(85, 43, 24, 0.14);
  --color-line-strong: rgba(85, 43, 24, 0.22);
  --color-white-line: rgba(255, 255, 255, 0.78);
  --shadow-soft: 0 16px 44px rgba(52, 25, 12, 0.1);
  --shadow-card: 0 24px 70px rgba(52, 25, 12, 0.13);
  --shadow-button: 0 14px 30px rgba(64, 28, 14, 0.2);
  --radius-panel: 28px;
  --radius-card: 22px;
  --radius-pill: 999px;
  --shell-max: 1080px;
  --header-height: 86px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 32px;
  --space-8: 40px;
  --space-9: 48px;
  --space-10: 56px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--color-ink);
  background:
    radial-gradient(circle at 18% 4%, rgba(255, 253, 248, 0.9), transparent 31%),
    linear-gradient(180deg, #fbf2e6 0%, #e9d3b9 54%, #f8ebdc 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14.5px;
  line-height: 1.55;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(87, 38, 21, 0.05) 1px, transparent 1px);
  background-size: 18px 18px;
  opacity: 0.22;
  mix-blend-mode: multiply;
}

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

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

main {
  display: block;
  flex: 1 0 auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 12px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 10px;
  background: #fff;
}

.skip-link:focus {
  left: 12px;
}

.shell {
  width: min(var(--shell-max), calc(100% - clamp(32px, 6vw, 88px)));
  margin-inline: auto;
}

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
  height: var(--header-height);
}

.page-header {
  position: relative;
  background: rgba(255, 248, 238, 0.74);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: var(--header-height);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}

.brand-icon {
  flex: 0 0 auto;
  width: 30px;
  height: 52px;
  object-fit: contain;
  object-position: center;
}

.brand-name {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  color: #241713;
  font-weight: 900;
  font-size: 20px;
  letter-spacing: 0.075em;
  line-height: 0.9;
}

.brand-name::before,
.brand-name::after {
  display: none;
}

.brand-name small {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 4px;
  font-size: 10px;
  letter-spacing: 0.24em;
  line-height: 1;
}

.brand-name small::before,
.brand-name small::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 40px;
  height: 2px;
  background: var(--color-coffee);
  transform: translateY(-50%);
}

.brand-name small::before {
  right: calc(100% + 12px);
}

.brand-name small::after {
  left: calc(100% + 12px);
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 30px);
  margin-left: auto;
  font-size: 13.5px;
  font-weight: 600;
}

.nav a {
  position: relative;
  padding: 28px 0 20px;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  height: 3px;
  border-radius: var(--radius-pill);
  background: transparent;
  transform: scaleX(0.64);
  transition: transform 0.18s ease, background 0.18s ease;
}

.nav a:hover::after,
.nav a.is-active::after {
  background: var(--color-coffee);
  transform: scaleX(1);
}

.top-button {
  display: none;
}

.button,
.top-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: var(--radius-pill);
  font-size: 13.5px;
  font-weight: 700;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.button-primary,
.top-button {
  color: #fff8ea;
  background: var(--color-coffee);
  box-shadow: var(--shadow-button);
}

.button-secondary {
  color: var(--color-ink);
  background: rgba(255, 255, 255, 0.5);
  border: 1.5px solid var(--color-coffee-dark);
}

.button-primary:hover,
.button-secondary:hover,
.top-button:hover,
.learn-link:hover {
  transform: translateY(-1px);
}

.section-kicker,
.eyebrow,
.hero-kicker {
  margin: 0 0 10px;
  color: var(--color-amber);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.centered {
  text-align: center;
}

.title-rule {
  display: block;
  width: 42px;
  height: 3px;
  margin: 13px auto 38px;
  border-radius: var(--radius-pill);
  background: var(--color-amber);
}

.title-rule-left {
  margin: 12px 0 20px;
}

.hero,
.brewed-section,
.app-card,
.philosophy,
.story-panel,
.next-panel {
  position: relative;
  z-index: 1;
}

.hero {
  min-height: 620px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 76px;
  right: max(-4px, calc((100vw - var(--shell-max)) / 2 - 18px));
  bottom: -38px;
  left: max(41.5%, calc((100vw - var(--shell-max)) / 2 + 510px));
  background:
    linear-gradient(90deg,
      rgba(255, 248, 238, 0.94) 0%,
      rgba(255, 248, 238, 0.54) 5%,
      rgba(255, 248, 238, 0.16) 11%,
      rgba(255, 248, 238, 0.03) 18%,
      rgba(255, 248, 238, 0) 24%),
    linear-gradient(180deg,
      rgba(255, 248, 238, 0) 0%,
      rgba(255, 248, 238, 0) 86%,
      rgba(255, 248, 238, 0.08) 95%,
      rgba(255, 248, 238, 0.28) 100%),
    url("assets/hero-brewed-desk.png") center center / cover no-repeat;
}

.hero-bg::before {
  content: "";
  position: absolute;
  top: -24px;
  bottom: -24px;
  left: -154px;
  width: 152px;
  background: linear-gradient(90deg,
    rgba(255, 248, 238, 0.62) 0%,
    rgba(255, 248, 238, 0.28) 34%,
    rgba(255, 248, 238, 0.08) 68%,
    rgba(255, 248, 238, 0) 100%);
  filter: blur(8px);
  pointer-events: none;
}

.hero-bg::after {
  content: "";
  position: absolute;
  left: -80px;
  right: -40px;
  bottom: -38px;
  height: 74px;
  background: linear-gradient(180deg, rgba(255, 248, 238, 0), rgba(255, 248, 238, 0.26));
  filter: blur(5px);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 620px;
  padding-top: var(--header-height);
}

.hero-copy {
  width: min(470px, 45%);
  padding-top: 18px;
}

.hero h1 {
  max-width: 500px;
  margin: 0 0 24px;
  font-family: "DM Serif Display", Georgia, serif;
  font-size: clamp(56px, 5.55vw, 78px);
  font-weight: 400;
  line-height: 0.88;
  letter-spacing: -0.05em;
}

.hero h1 .line {
  display: block;
  white-space: nowrap;
}

.hero h1 .line-ideas,
.hero h1 .line-software,
.hero h1 .line-brewed {
  color: var(--color-ink);
}

.hero h1 .line-brewed span {
  color: var(--color-amber);
}

.hero p {
  max-width: 442px;
  margin: 0 0 14px;
  font-size: 14.5px;
  font-weight: 400;
  line-height: 1.6;
}

.hero .hero-tagline {
  display: none;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 27px;
}

.brewed-section,
.page-hero,
.company-card,
.info-panel,
.legal-panel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-panel);
  background: var(--color-paper-soft);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.74), var(--shadow-soft);
}

.page-hero::before,
.company-card::before,
.info-panel::before,
.legal-panel::before {
  content: "";
  position: absolute;
  inset: -10% auto auto 52%;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 244, 225, 0.72) 0%, rgba(255, 244, 225, 0) 72%);
  pointer-events: none;
}

.brewed-section {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) minmax(0, 1.04fr);
  gap: 30px;
  align-items: center;
  padding: 30px 42px;
  margin-top: 0;
}

.brewed-mark,
.value-icon {
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, #fff8ed, #f4e2ca);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.82), 0 14px 30px rgba(64, 28, 14, 0.09);
}

.brewed-mark {
  width: 68px;
  height: 68px;
}

.brewed-mark img {
  width: 28px;
  height: 50px;
  object-fit: contain;
}

.brewed-copy h2,
.app-copy h2,
.philosophy h2,
.story-copy h2,
.next-copy h2,
.company-card h2,
.page-hero h1,
.info-panel h2,
.legal-panel h2,
.contact-merged-grid h2 {
  margin: 0;
  font-family: "DM Serif Display", Georgia, serif;
  font-weight: 400;
  line-height: 1.03;
  letter-spacing: -0.02em;
}

.brewed-copy h2 {
  font-size: 24px;
}

.brewed-copy p {
  margin: 0 0 8px;
  color: var(--color-muted);
  font-size: 13.8px;
  font-weight: 400;
  line-height: 1.52;
}

.brewed-copy .lead {
  color: var(--color-ink);
  font-weight: 600;
}

.delight-line {
  margin-top: 12px;
  color: var(--color-coffee);
  font-weight: 700;
}

.app-card {
  display: grid;
  grid-template-columns: minmax(340px, 0.72fr) minmax(520px, 1.28fr);
  align-items: center;
  min-height: 310px;
  margin-top: 32px;
  overflow: hidden;
  border-radius: var(--radius-panel);
  border: 1px solid rgba(255, 255, 255, 0.84);
  background: linear-gradient(115deg, rgba(255, 249, 241, 0.9), rgba(244, 226, 198, 0.82));
  box-shadow: var(--shadow-card);
}

.app-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 56% 38%, rgba(255, 251, 245, 0.64), transparent 42%),
    linear-gradient(90deg, rgba(255, 252, 246, 0.22), rgba(255, 252, 246, 0.02));
  pointer-events: none;
}

.app-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 96px 1fr;
  align-items: center;
  gap: clamp(26px, 3.8vw, 42px);
  padding: 50px 12px 50px clamp(44px, 5vw, 68px);
}

.app-badge {
  display: grid;
  place-content: center;
  width: 82px;
  height: 82px;
  gap: 5px;
  text-align: center;
  color: #fff7eb;
  background: #251b18;
  border-radius: 14px;
  box-shadow: 0 14px 34px rgba(55, 26, 14, 0.18);
}

.app-logo-badge {
  justify-self: start;
  width: 94px;
  height: 94px;
  margin-right: 0;
  padding: 10px;
  border-radius: 22px;
  background: rgba(255, 251, 244, 0.72);
  box-shadow: 0 18px 46px rgba(55, 26, 14, 0.14), inset 0 0 0 1px rgba(255, 255, 255, 0.9);
}

.app-logo-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.app-copy h2 {
  font-size: 34px;
}

.app-copy h3 {
  margin: 9px 0 15px;
  color: var(--color-coffee);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
}

.app-copy p {
  max-width: 290px;
  margin: 0 0 18px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.56;
}

.app-actions {
  display: flex;
  align-items: center;
  gap: 0;
}

.coming-soon,
.learn-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
}

.learn-link {
  color: var(--color-coffee);
}

.calendar-icon {
  position: relative;
  top: 2px;
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  border: 1.8px solid currentColor;
  border-radius: 3px;
}

.calendar-icon::before {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  top: 4px;
  border-top: 1.8px solid currentColor;
}

.calendar-icon::after {
  content: "";
  position: absolute;
  left: 4px;
  bottom: 3px;
  width: 3px;
  height: 3px;
  background: currentColor;
  border-radius: 1px;
  box-shadow: 5px 0 0 currentColor;
}

.phone-stage {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: end;
  justify-content: center;
  align-self: stretch;
  min-height: 310px;
  overflow: visible;
  padding: 22px 24px 0 0;
}

.phone-preview {
  position: relative;
  width: min(610px, 49vw);
  max-width: none;
  transform: translateX(7%) translateY(2%);
  object-fit: contain;
  object-position: bottom right;
  filter: drop-shadow(0 22px 34px rgba(63, 31, 16, 0.14));
}

.philosophy {
  padding: 38px 0 34px;
  text-align: center;
}

.philosophy h2,
.next-copy h2 {
  font-size: 38px;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  text-align: left;
}

.value-card {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 22px;
  align-items: center;
  min-height: 100px;
  padding: 0 34px;
  border-right: 1px solid var(--color-line);
}

.value-card:last-child {
  border-right: 0;
}

.value-icon {
  width: 58px;
  height: 58px;
  color: var(--color-amber);
  font-size: 29px;
  line-height: 1;
}

.value-icon-smile {
  position: relative;
}

.smile-face {
  position: relative;
  width: 24px;
  height: 24px;
  border: 2.2px solid currentColor;
  border-radius: 50%;
  box-sizing: border-box;
}

.smile-face::before,
.smile-face::after {
  content: "";
  position: absolute;
}

.smile-face::before {
  top: 6px;
  left: 6px;
  width: 3px;
  height: 3px;
  background: currentColor;
  border-radius: 50%;
  box-shadow: 8px 0 0 currentColor;
}

.smile-face::after {
  left: 50%;
  bottom: 5px;
  width: 11px;
  height: 6px;
  border-bottom: 2px solid currentColor;
  border-radius: 0 0 10px 10px;
  transform: translateX(-50%);
}

.value-icon img,
.path-art img {
  width: 40px;
  height: auto;
  object-fit: contain;
}

.value-card h3 {
  margin: 0 0 7px;
  color: var(--color-coffee);
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 22px;
  font-weight: 400;
  line-height: 1.05;
}

.value-card p {
  margin: 0;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.54;
}

.story-panel {
  display: grid;
  grid-template-columns: 35% 1fr;
  align-items: stretch;
  min-height: 324px;
  margin-top: 22px;
  overflow: hidden;
  color: #fff6e8;
  border-radius: var(--radius-card);
  background: radial-gradient(circle at 78% 46%, rgba(135, 82, 58, 0.64), rgba(65, 27, 16, 0.95) 58%, rgba(29, 13, 10, 0.99) 100%);
  box-shadow: var(--shadow-card);
}

.story-panel::before {
  content: "";
  position: absolute;
  left: 29%;
  top: 0;
  bottom: 0;
  width: 145px;
  background: linear-gradient(90deg, rgba(28, 13, 9, 0), rgba(28, 13, 9, 0.52), rgba(28, 13, 9, 0));
  filter: blur(18px);
  pointer-events: none;
  z-index: 1;
}

.story-photo {
  min-height: 324px;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.02) 0%, rgba(0, 0, 0, 0.14) 72%, rgba(42, 12, 5, 0.34) 100%),
    url("assets/story-brewed-cropped.png") center left / cover no-repeat;
  filter: brightness(1.09) contrast(1.03) saturate(1.02);
}

.story-copy {
  position: relative;
  z-index: 2;
  max-width: 520px;
  align-self: center;
  padding: 40px 48px 38px 50px;
}

.story-copy .eyebrow {
  color: var(--color-gold);
}

.story-copy h2 {
  font-size: clamp(31px, 3vw, 43px);
}

.story-copy p {
  margin: 0 0 15px;
}

.story-beats {
  color: #ffe7c4;
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 13.6px;
  font-weight: 400;
  line-height: 1.34;
}

.story-copy p:not(.eyebrow):not(.story-beats) {
  max-width: 410px;
  font-size: 12.3px;
  font-weight: 400;
  line-height: 1.74;
}

.seal {
  position: absolute;
  z-index: 2;
  top: 50%;
  right: clamp(38px, 5.6vw, 84px);
  width: clamp(205px, 18.8vw, 292px);
  transform: translateY(-50%) rotate(1deg);
  filter: drop-shadow(0 26px 22px rgba(0, 0, 0, 0.26));
}

.story-panel:hover .seal {
  transform: translateY(-50%) rotate(3deg) scale(1.015);
}

.next-panel {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(300px, 0.86fr) minmax(120px, 0.34fr);
  align-items: center;
  min-height: 254px;
  margin-top: 22px;
  overflow: hidden;
  border-radius: var(--radius-panel) var(--radius-panel) 0 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.62);
  background: linear-gradient(90deg, rgba(255, 252, 246, 0.96), rgba(255, 249, 240, 0.8));
}

.next-sketch {
  min-height: 254px;
  background-image:
    linear-gradient(90deg,
      rgba(255, 252, 246, 0) 34%,
      rgba(255, 252, 246, 0.16) 54%,
      rgba(255, 252, 246, 0.52) 75%,
      rgba(255, 252, 246, 0.97) 100%),
    url("assets/next-landscape.png");
  background-size: cover;
  background-position: center left;
  background-repeat: no-repeat;
  mix-blend-mode: multiply;
}

.next-copy {
  align-self: center;
  padding: 34px 28px 32px 32px;
}

.next-copy p {
  max-width: 430px;
  margin: 0 0 14px;
  font-size: 13.4px;
  font-weight: 400;
  line-height: 1.54;
}

.path-art {
  display: flex;
  align-items: center;
  justify-self: center;
  gap: 9px;
  padding-right: 22px;
  color: var(--color-coffee);
  opacity: 0.82;
}

.map-pin {
  font-size: 42px;
  line-height: 1;
}

.dash-line {
  width: 62px;
  height: 34px;
  border-top: 2px dashed rgba(87, 38, 21, 0.52);
  border-radius: 50%;
}

.site-footer {
  min-height: 104px;
  padding: 24px 0;
  color: #fff4e4;
  background: radial-gradient(circle at 42% 0%, #5d2717, #2b1109 72%);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  text-align: center;
}

.footer-text {
  width: 100%;
  margin: 0 auto;
  display: grid;
  gap: 4px;
}

.footer-tagline {
  margin: 0 0 4px;
  color: #d98b43;
  font-size: 13px;
  font-weight: 800;
}

.footer-copy {
  margin: 0;
  color: #d7b99a;
  font-size: 13.5px;
  font-weight: 400;
}

.footer-logo,
.footer-links,
.legal-links {
  display: none;
}

.subpage-main {
  position: relative;
  padding: 32px 0 36px;
}

.subpage-main::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 26px;
  width: min(1100px, 96vw);
  height: 360px;
  transform: translateX(-50%);
  background: radial-gradient(circle at 50% 12%, rgba(255, 251, 244, 0.74) 0%, rgba(255, 251, 244, 0) 72%);
  pointer-events: none;
}

.about-page-main .company-section {
  padding-top: clamp(20px, 4vw, 40px);
}

.company-section {
  margin-top: 28px;
  margin-bottom: 34px;
}

.company-card {
  max-width: 960px;
  margin: 0 auto;
  padding: clamp(34px, 4.8vw, 56px);
}

.company-card h2,
.page-hero h1 {
  margin-bottom: 14px;
  font-size: clamp(34px, 4.3vw, 54px);
}

.company-card p,
.page-hero p,
.info-panel p,
.legal-panel p {
  color: var(--color-muted);
  font-weight: 400;
  line-height: 1.66;
}

.company-card p,
.info-panel p,
.legal-panel p {
  margin: 0 0 14px;
}

.company-details {
  display: none;
}

.page-hero {
  padding: clamp(34px, 4.8vw, 52px);
  margin-bottom: 26px;
}

.page-hero p {
  max-width: 760px;
  font-size: 15px;
  line-height: 1.66;
}

.page-note-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.page-note {
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 252, 246, 0.56);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.72);
}

.page-note-label {
  margin: 0 0 6px;
  color: var(--color-amber);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.page-note p:last-child {
  margin: 0;
  color: var(--color-ink);
  font-size: 13.5px;
  line-height: 1.56;
}

.info-panel,
.legal-panel {
  padding: clamp(30px, 5vw, 54px);
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 42px;
}

.info-panel h2 {
  margin-bottom: 14px;
  font-size: clamp(34px, 4vw, 48px);
}

.info-panel h3,
.contact-merged-grid h3 {
  margin: 0 0 12px;
  color: var(--color-coffee);
  font-size: 20px;
}

.legal-panel {
  max-width: min(920px, calc(100% - 72px));
}

.legal-panel h2 {
  margin: 32px 0 14px;
  color: var(--color-coffee);
  font-size: 30px;
}

.legal-panel h2:first-child {
  margin-top: 0;
}

.legal-panel a,
.info-panel a,
.contact-merged-grid a {
  color: var(--color-coffee);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.contact-merged {
  max-width: 960px;
  margin-inline: auto;
  margin-bottom: 0;
  padding: clamp(34px, 4.8vw, 52px);
}

.contact-merged h1 {
  max-width: 760px;
  font-size: clamp(28px, 3.6vw, 44px);
}

.contact-merged > p {
  max-width: 680px;
  font-size: 15px;
  line-height: 1.66;
}

.contact-merged-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid rgba(92, 48, 29, 0.18);
  justify-items: center;
}

.contact-merged-grid > div {
  max-width: 520px;
  width: 100%;
  padding: 18px 20px;
  border-radius: 20px;
  background: rgba(255, 252, 246, 0.48);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.68);
}

.contact-merged-grid h2 {
  font-size: clamp(22px, 2.2vw, 30px);
}

.contact-merged-grid p,
.contact-merged-grid a {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.58;
}

.contact-merged-grid > div p:last-child {
  margin-bottom: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy,
  .brewed-section,
  .app-card,
  .philosophy,
  .story-panel,
  .next-panel {
    animation: rise-in 0.7s ease both;
  }

  .brewed-section {
    animation-delay: 0.05s;
  }

  .app-card {
    animation-delay: 0.1s;
  }

  .philosophy {
    animation-delay: 0.15s;
  }

  .story-panel {
    animation-delay: 0.2s;
  }

  .next-panel {
    animation-delay: 0.25s;
  }

  @keyframes rise-in {
    from {
      opacity: 0;
      transform: translateY(12px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

@media (max-width: 1060px) {
  :root {
    --shell-max: 920px;
  }

  .shell {
    width: min(var(--shell-max), calc(100% - 48px));
  }

  .hero-bg {
    left: max(40%, calc((100vw - var(--shell-max)) / 2 + 440px));
  }

  .hero-copy {
    width: min(450px, 47%);
  }

  .hero h1 {
    font-size: clamp(50px, 5.25vw, 66px);
  }

  .hero p {
    font-size: 14px;
  }

  .brewed-section {
    grid-template-columns: 66px 1fr 1fr;
    gap: 24px;
    padding: 28px 32px;
  }

  .app-card {
    grid-template-columns: minmax(320px, 0.74fr) minmax(430px, 1.16fr);
  }

  .app-content {
    padding-left: 38px;
    gap: 24px;
  }

  .phone-preview {
    width: min(540px, 50vw);
  }

  .story-copy {
    padding: 32px 28px 28px 36px;
  }

  .seal {
    right: 30px;
    width: clamp(190px, 18vw, 250px);
  }

  .next-panel {
    grid-template-columns: minmax(280px, 0.95fr) minmax(300px, 0.9fr) minmax(110px, 0.32fr);
  }
}

@media (max-width: 900px) {
  .site-header {
    position: relative;
    height: auto;
  }

  .header-inner {
    height: auto;
    padding: 15px 0;
    flex-wrap: wrap;
  }

  .brand-icon {
    width: 32px;
    height: 54px;
  }

  .brand-name {
    font-size: 20px;
  }

  .brand-name small {
    font-size: 10px;
  }

  .brand-name::before,
  .brand-name::after {
    display: none;
  }

  .brand-name small::before,
  .brand-name small::after {
    width: 28px;
  }

  .hero {
    display: flex;
    flex-direction: column-reverse;
    min-height: auto;
  }

  .hero-bg {
    position: relative;
    inset: auto;
    width: min(92vw, 720px);
    min-height: 360px;
    margin: 0 auto 28px;
    border-radius: 22px;
    background:
      linear-gradient(180deg, rgba(251, 242, 230, 0) 60%, rgba(251, 242, 230, 0.8) 100%),
      url("assets/hero-brewed-desk.png") center center / cover no-repeat;
  }

  .hero-bg::before,
  .hero-bg::after {
    display: none;
  }

  .hero-inner {
    display: block;
    min-height: auto;
    padding-top: 38px;
  }

  .hero-copy {
    width: 100%;
    max-width: 600px;
    padding-bottom: 32px;
  }

  .hero h1 {
    font-size: clamp(48px, 10.5vw, 68px);
    line-height: 0.92;
  }

  .hero p {
    max-width: 550px;
    font-size: 14px;
  }

  .brewed-section {
    grid-template-columns: 64px 1fr;
    gap: 20px;
    padding: 28px 26px;
  }

  .secondary-copy {
    grid-column: 2;
  }

  .app-card {
    grid-template-columns: 1fr;
  }

  .app-content {
    grid-template-columns: 96px 1fr;
    gap: 28px;
    padding: 36px 28px 8px;
  }

  .app-logo-badge {
    width: 96px;
    height: 96px;
    margin-right: 0;
  }

  .app-copy p {
    max-width: 430px;
  }

  .phone-stage {
    justify-content: center;
    min-height: 245px;
    padding: 0 24px;
  }

  .phone-stage::before {
    right: 24px;
    bottom: 24px;
  }

  .phone-preview {
    width: min(560px, 92vw);
    transform: translateX(0) translateY(0);
    object-position: bottom center;
  }

  .value-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .value-card {
    max-width: 560px;
    margin-inline: auto;
    padding: 0;
    border-right: 0;
  }

  .story-panel {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .story-panel::before {
    display: none;
  }

  .story-photo {
    display: none;
  }

  .story-copy {
    max-width: none;
    padding: 32px 28px 22px;
    background: radial-gradient(circle at 78% 40%, rgba(177, 134, 112, 0.34), rgba(85, 42, 27, 0) 42%);
  }

  .seal {
    position: static;
    width: min(230px, 52vw);
    transform: none;
    margin: 0 auto 30px;
  }

  .story-panel:hover .seal {
    transform: rotate(2deg) scale(1.015);
  }

  .next-panel {
    grid-template-columns: 1fr;
  }

  .next-sketch {
    min-height: 220px;
    background-position: center;
  }

  .next-copy {
    padding: 34px 28px 12px;
  }

  .path-art {
    justify-self: start;
    padding: 0 28px 32px;
  }

  .info-grid,
  .contact-merged-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }
}

@media (max-width: 820px) {
  .header-inner {
    justify-content: center;
  }

  .nav {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 720px) {
  .header-inner {
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
  }

  .brand {
    order: 1;
    width: auto;
    min-width: 0;
    justify-content: flex-start;
  }

  .brand-name {
    display: none;
  }

  .brand-icon {
    width: 24px;
    height: 42px;
  }

  .nav {
    order: 2;
    width: auto;
    flex: 0 1 auto;
    gap: 12px;
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: center;
    font-size: 12.5px;
  }

  .nav a {
    padding: 6px 0 10px;
    white-space: nowrap;
  }

  .nav a::after {
    bottom: 5px;
  }
}

@media (max-width: 640px) {
  .shell {
    width: min(100% - 28px, var(--shell-max));
  }

  .header-inner {
    padding-top: 14px;
    padding-bottom: 12px;
  }

  .hero-bg {
    min-height: 295px;
  }

  .hero h1 {
    font-size: clamp(44px, 13.2vw, 56px);
  }

  .hero h1 .line {
    white-space: normal;
  }

  .hero p {
    font-size: 13.7px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .brewed-section {
    grid-template-columns: 1fr;
  }

  .brewed-mark {
    width: 64px;
    height: 64px;
  }

  .secondary-copy {
    grid-column: auto;
  }

  .app-content {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .app-copy p {
    max-width: 100%;
  }

  .app-copy h2,
  .brewed-copy h2 {
    font-size: 31px;
  }

  .philosophy h2,
  .story-copy h2,
  .next-copy h2 {
    font-size: 31px;
  }

  .story-panel {
    margin-top: 24px;
  }

  .story-photo {
    display: none;
  }

  .story-copy {
    padding: 28px 24px 18px;
    background: radial-gradient(circle at 78% 40%, rgba(177, 134, 112, 0.34), rgba(85, 42, 27, 0) 42%);
  }

  .story-copy h2 {
    font-size: 28px;
  }

  .story-copy p:not(.eyebrow):not(.story-beats) {
    max-width: none;
    font-size: 12.5px;
    line-height: 1.48;
  }

  .story-beats {
    font-size: 13.5px;
    line-height: 1.18;
  }

  .seal {
    width: min(180px, 54vw);
    margin: 8px auto 22px;
  }

  .phone-preview {
    width: min(380px, 100%);
    transform: none;
  }

  .value-card {
    grid-template-columns: 60px 1fr;
    gap: 18px;
  }

  .value-icon {
    width: 58px;
    height: 58px;
  }

  .page-hero p {
    font-size: 15px;
  }

  .page-note-grid {
    grid-template-columns: 1fr;
  }

  .legal-panel {
    max-width: min(920px, calc(100% - 28px));
  }
}

@media (max-width: 380px) {
  .header-inner {
    gap: 8px;
  }

  .brand {
    width: auto;
  }

  .brand-icon {
    width: 22px;
    height: 38px;
  }

  .nav {
    width: auto;
    gap: 10px;
    font-size: 11.5px;
  }
}
