:root {
  --paper: #f2ede5;
  --paper-deep: #e8e0d5;
  --paper-line: rgba(37, 35, 32, 0.16);
  --ink: #252321;
  --ink-soft: #5c5751;
  --charcoal: #181715;
  --charcoal-soft: #23211e;
  --accent: #d65f35;
  --accent-dark: #b84c29;
  --accent-soft: rgba(214, 95, 53, 0.12);
  --white: #fbf8f3;
  --shadow-paper: rgba(81, 63, 46, 0.12);
  --display: "Iowan Old Style", "Hiragino Mincho ProN", "Yu Mincho", Georgia, serif;
  --sans: "Avenir Next", "Hiragino Sans", "Yu Gothic", "Helvetica Neue", Arial, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --container: min(1180px, calc(100% - 64px));
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.05;
  content: "";
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.25'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

::selection {
  color: var(--white);
  background: var(--accent);
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
  font: inherit;
}

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

.responsive-media {
  display: block;
  width: 100%;
  height: 100%;
}

figure,
h1,
h2,
h3,
p,
ol {
  margin: 0;
}

h1,
h2,
h3 {
  font-weight: 500;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 8px 14px;
  color: var(--white);
  background: var(--charcoal);
  transform: translateY(-160%);
  transition: transform 220ms var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
}

:where(a, button):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 50;
  color: var(--ink);
  background: rgba(242, 237, 229, 0.72);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(16px);
  transition: background 260ms var(--ease), border-color 260ms var(--ease), box-shadow 260ms var(--ease);
}

.site-header.is-scrolled {
  background: rgba(242, 237, 229, 0.92);
  border-color: var(--paper-line);
  box-shadow: 0 10px 30px rgba(74, 54, 38, 0.06);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
}

.wordmark {
  display: inline-block;
  font-size: 25px;
  font-weight: 600;
  letter-spacing: -0.07em;
  line-height: 1;
}

.wordmark span {
  color: var(--accent);
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.primary-nav > a:not(.nav-cta) {
  position: relative;
  padding-block: 8px;
}

.primary-nav > a:not(.nav-cta)::after {
  position: absolute;
  right: 0;
  bottom: 3px;
  left: 0;
  height: 1px;
  content: "";
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 260ms var(--ease);
}

.primary-nav > a:not(.nav-cta):hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 11px 17px;
  color: var(--white);
  background: var(--accent);
  transition: background 220ms var(--ease), transform 220ms var(--ease);
}

.nav-cta:hover,
.button--primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
}

.nav-cta:active,
.button:active {
  transform: translateY(1px) scale(0.98);
}

.nav-cta svg,
.button svg,
.text-link svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 1px solid var(--paper-line);
  background: transparent;
  cursor: pointer;
}

.menu-toggle__line {
  display: block;
  width: 20px;
  height: 1px;
  margin: 5px auto;
  background: currentColor;
  transition: transform 220ms var(--ease);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__line:first-of-type {
  transform: translateY(3px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__line:last-of-type {
  transform: translateY(-3px) rotate(-45deg);
}

.hero,
.contact {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.hero {
  min-height: 100dvh;
  padding: 150px 0 74px;
  background: var(--paper);
}

.hero__grain,
.contact__grain {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.45;
  background: radial-gradient(circle at 18% 30%, rgba(255, 255, 255, 0.62), transparent 34%), radial-gradient(circle at 77% 46%, rgba(208, 183, 157, 0.16), transparent 40%);
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: clamp(40px, 7vw, 110px);
  min-height: calc(100dvh - 224px);
}

.hero__copy {
  position: relative;
  z-index: 2;
}

.eyebrow,
.section-label {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--accent-dark);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.3;
  text-transform: uppercase;
}

.eyebrow__line {
  width: 34px;
  height: 1px;
  background: var(--accent);
}

.hero h1 {
  max-width: 11em;
  margin-top: 28px;
  font-family: var(--display);
  font-size: clamp(46px, 5.4vw, 80px);
  letter-spacing: -0.075em;
  line-height: 1.06;
  text-wrap: balance;
}

.hero h1 em,
.contact h2 em {
  color: var(--accent);
  font-style: normal;
}

.accent-text {
  color: var(--accent);
}

.hero__lead {
  max-width: 34em;
  margin-top: 28px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 2;
  text-wrap: pretty;
}

.hero__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 25px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 53px;
  padding: 14px 22px;
  border: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  transition: background 220ms var(--ease), color 220ms var(--ease), transform 220ms var(--ease);
}

.button--primary {
  color: var(--white);
  background: var(--accent);
}

.button--large {
  min-width: 224px;
  min-height: 60px;
  font-size: 14px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding-block: 8px;
  border-bottom: 1px solid var(--ink);
  font-size: 13px;
  font-weight: 600;
  transition: color 220ms var(--ease), border-color 220ms var(--ease), gap 220ms var(--ease);
}

.text-link:hover {
  gap: 14px;
  color: var(--accent-dark);
  border-color: var(--accent);
}

.hero__proof {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 58px;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.02em;
}

.hero__proof span:not(:last-child)::after {
  margin-left: 18px;
  color: var(--accent);
  content: "/";
}

.hero__visual {
  position: relative;
  min-height: min(65vw, 650px);
  margin: 0;
  overflow: hidden;
  background: var(--paper-deep);
  clip-path: polygon(5% 0, 100% 0, 100% 93%, 92% 100%, 0 100%, 0 8%);
}

.hero__visual::after,
.why__visual::after,
.services__visual::after,
.process__visual::after,
.contact__visual::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background: linear-gradient(90deg, rgba(242, 237, 229, 0.78), transparent 28%);
  mix-blend-mode: normal;
}

.hero__visual img {
  width: 100%;
  height: 100%;
  min-height: min(65vw, 650px);
  object-fit: cover;
  object-position: 76% 56%;
  filter: saturate(0.92) contrast(0.98);
}

.hero__visual figcaption,
.why__visual figcaption,
.services__visual figcaption,
.process__visual figcaption,
.contact__visual figcaption {
  position: absolute;
  right: 22px;
  bottom: 18px;
  z-index: 1;
  display: flex;
  gap: 15px;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.04em;
}

.hero__visual figcaption {
  color: rgba(37, 35, 32, 0.75);
}

.hero__visual figcaption span:first-child {
  color: var(--accent-dark);
}

.section-index {
  position: absolute;
  right: 32px;
  bottom: 24px;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
}

.section-index span {
  margin-inline: 7px;
  color: var(--accent);
}

.section-index--light {
  color: rgba(37, 35, 32, 0.6);
}

.section-index--dark {
  color: rgba(251, 248, 243, 0.6);
}

.belief-strip {
  overflow: hidden;
  color: var(--paper);
  background: var(--charcoal);
  border-top: 1px solid rgba(251, 248, 243, 0.12);
  border-bottom: 1px solid rgba(251, 248, 243, 0.12);
}

.belief-strip__track {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 3vw, 46px);
  min-width: max-content;
  padding: 18px 20px;
  color: rgba(251, 248, 243, 0.76);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
}

.belief-strip__track span:nth-child(even) {
  color: var(--accent);
}

.section {
  position: relative;
  padding: clamp(110px, 13vw, 190px) 0 clamp(125px, 14vw, 195px);
}

.why {
  background: var(--paper);
}

.why__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  column-gap: clamp(45px, 9vw, 130px);
  row-gap: 82px;
  align-items: start;
}

.why__intro {
  padding-top: 12px;
}

.section-label {
  margin-bottom: 24px;
}

.why h2,
.logic h2,
.services h2,
.process h2,
.contact h2 {
  font-family: var(--display);
  font-size: clamp(38px, 4.8vw, 67px);
  letter-spacing: -0.07em;
  line-height: 1.08;
  text-wrap: balance;
}

.why h2 span {
  color: var(--accent);
}

.section-lead {
  max-width: 34em;
  margin-top: 26px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 2;
  text-wrap: pretty;
}

.why__intro .text-link {
  margin-top: 36px;
}

.why__visual {
  position: relative;
  min-height: 495px;
  margin: 0;
  overflow: hidden;
  background: var(--paper-deep);
  clip-path: polygon(0 5%, 92% 0, 100% 7%, 96% 100%, 4% 96%);
}

.why__visual img {
  width: 100%;
  height: 100%;
  min-height: 495px;
  object-fit: cover;
  object-position: 57% 54%;
  filter: saturate(0.86);
}

.why__visual::after {
  background: linear-gradient(0deg, rgba(242, 237, 229, 0.72), transparent 26%);
}

.principles {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--paper-line);
}

.principle {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  padding: 30px 26px 0 0;
  border-right: 1px solid var(--paper-line);
}

.principle:not(:first-child) {
  padding-left: 26px;
}

.principle:last-child {
  border-right: 0;
}

.principle__number,
.service-item__number,
.process-step__number {
  color: var(--accent-dark);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
}

.principle h3 {
  font-family: var(--display);
  font-size: 25px;
  letter-spacing: -0.05em;
  line-height: 1.2;
}

.principle p {
  margin-top: 14px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.9;
}

.logic {
  background: var(--paper-deep);
}

.section-heading--split {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  align-items: end;
  gap: 60px;
}

.logic__diagram {
  display: grid;
  grid-template-columns: 1fr minmax(190px, 0.56fr) 1fr;
  align-items: center;
  gap: clamp(25px, 5vw, 75px);
  margin-top: 88px;
}

.logic__name {
  margin-bottom: 20px;
  font-family: var(--display);
  font-size: 24px;
  letter-spacing: -0.05em;
}

.paper-stack {
  display: grid;
  gap: 0;
  padding: 8px 0 12px;
  background: rgba(251, 248, 243, 0.5);
  border-bottom: 1px solid var(--paper-line);
  box-shadow: 10px 15px 0 rgba(98, 75, 53, 0.05), 20px 28px 0 rgba(98, 75, 53, 0.04);
}

.paper-layer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 92px;
  padding: 18px 24px;
  background: rgba(251, 248, 243, 0.78);
  border-top: 1px solid rgba(37, 35, 32, 0.1);
}

.paper-layer span:first-child {
  font-family: var(--display);
  font-size: 24px;
}

.paper-layer span:last-child {
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 10px;
}

.logic__connector {
  display: grid;
  justify-items: center;
  gap: 14px;
  color: var(--accent-dark);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.02em;
  text-align: center;
}

.logic__connector svg {
  width: 100%;
  height: 24px;
  overflow: visible;
  fill: none;
  stroke: var(--accent);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.logic__column--direct {
  position: relative;
}

.logic__column--direct .logic__name {
  color: var(--accent-dark);
}

.direct-panel {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 17px;
  min-height: 126px;
  padding: 24px;
  background: rgba(214, 95, 53, 0.12);
  border: 1px solid rgba(214, 95, 53, 0.5);
  box-shadow: 14px 18px 0 rgba(98, 75, 53, 0.05);
}

.direct-panel__mark {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--accent);
}

.direct-panel__mark svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.1;
}

.direct-panel strong {
  font-family: var(--display);
  font-size: 27px;
  letter-spacing: -0.05em;
}

.direct-panel small {
  color: var(--ink-soft);
  font-size: 11px;
}

.ai-note {
  display: inline-block;
  margin-top: 22px;
  padding: 8px 12px;
  color: var(--accent-dark);
  border: 1px solid rgba(214, 95, 53, 0.38);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
}

.logic__bottom {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(260px, 0.42fr);
  align-items: center;
  gap: 60px;
  margin-top: 112px;
}

.logic__image {
  height: 170px;
  overflow: hidden;
  opacity: 0.72;
  border: 1px solid rgba(37, 35, 32, 0.1);
  filter: saturate(0.7);
}

.logic__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 58%;
}

.logic__bottom p {
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 2;
}

.services {
  color: var(--paper);
  background: var(--charcoal);
}

.services .section-label,
.services .principle__number,
.services .service-item__number {
  color: var(--accent);
}

.services__intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.62fr);
  align-items: end;
  gap: 70px;
}

.services h2 {
  color: var(--white);
}

.services .section-lead {
  color: rgba(242, 237, 229, 0.64);
}

.services__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(34px, 8vw, 115px);
  align-items: start;
  margin-top: 78px;
}

.services__visual {
  position: relative;
  min-height: 570px;
  margin: 0;
  overflow: hidden;
  background: var(--charcoal-soft);
  border: 1px solid rgba(242, 237, 229, 0.18);
}

.services__visual img {
  width: 100%;
  height: 100%;
  min-height: 570px;
  object-fit: cover;
  object-position: 52% 53%;
  opacity: 0.9;
  filter: saturate(0.78) contrast(1.05);
}

.services__visual::after {
  background: linear-gradient(0deg, rgba(24, 23, 21, 0.74), transparent 36%);
}

.services__visual figcaption {
  color: rgba(242, 237, 229, 0.7);
}

.service-list {
  border-top: 1px solid rgba(242, 237, 229, 0.22);
}

.service-item {
  border-bottom: 1px solid rgba(242, 237, 229, 0.22);
}

.service-item__trigger {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  width: 100%;
  min-height: 78px;
  gap: 14px;
  padding: 0;
  color: var(--paper);
  text-align: left;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.service-item__trigger:hover .service-item__title,
.service-item.is-open .service-item__title {
  color: var(--accent);
}

.service-item__title {
  font-family: var(--display);
  font-size: clamp(20px, 2vw, 29px);
  letter-spacing: -0.05em;
  transition: color 220ms var(--ease);
}

.service-item__icon {
  color: var(--accent);
  font-size: 21px;
  font-weight: 300;
  transition: transform 260ms var(--ease);
}

.service-item.is-open .service-item__icon {
  transform: rotate(45deg);
}

.service-item__detail {
  display: grid;
  grid-template-rows: 0fr;
  color: rgba(242, 237, 229, 0.6);
  font-size: 13px;
  line-height: 1.9;
  opacity: 0;
  transition: grid-template-rows 300ms var(--ease), opacity 300ms var(--ease), padding 300ms var(--ease);
}

.service-item__detail > span {
  min-height: 0;
  overflow: hidden;
}

.service-item.is-open .service-item__detail {
  grid-template-rows: 1fr;
  padding: 0 36px 25px 56px;
  opacity: 1;
}

.process {
  background: var(--paper);
}

.process__heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.62fr);
  align-items: end;
  gap: 70px;
}

.process h2 span {
  color: var(--accent);
}

.process__layout {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(35px, 7vw, 100px);
  align-items: start;
  margin-top: 82px;
}

.process__visual {
  position: sticky;
  top: 120px;
  min-height: 410px;
  margin: 0;
  overflow: hidden;
  background: var(--paper-deep);
  border: 1px solid var(--paper-line);
}

.process__visual img {
  width: 100%;
  height: 100%;
  min-height: 410px;
  object-fit: cover;
  object-position: 50% 49%;
  filter: saturate(0.75) contrast(0.97);
}

.process__visual::after {
  background: linear-gradient(0deg, rgba(242, 237, 229, 0.82), transparent 32%);
}

.process__visual figcaption {
  right: auto;
  left: 22px;
  color: var(--ink-soft);
}

.process__steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 36px;
  padding: 0;
  list-style: none;
}

.process__steps::before {
  position: absolute;
  top: 17px;
  bottom: 18px;
  left: 16px;
  width: 1px;
  content: "";
  background: var(--accent);
  opacity: 0.65;
}

.process-step {
  position: relative;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 15px;
  min-height: 155px;
  padding: 0 0 40px;
}

.process-step__number {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 33px;
  height: 33px;
  color: var(--paper);
  background: var(--accent);
  border-radius: 50%;
  font-size: 9px;
}

.process-step h3 {
  font-family: var(--display);
  font-size: 24px;
  letter-spacing: -0.05em;
  line-height: 1.25;
}

.process-step p {
  max-width: 22em;
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.85;
}

.process-step--focus h3 {
  color: var(--accent-dark);
}

.contact {
  padding: clamp(105px, 12vw, 170px) 0 125px;
  color: var(--paper);
  background: var(--charcoal);
}

.contact__grain {
  opacity: 0.34;
  background: radial-gradient(circle at 68% 56%, rgba(214, 95, 53, 0.16), transparent 28%), radial-gradient(circle at 20% 45%, rgba(251, 248, 243, 0.07), transparent 40%);
}

.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(40px, 9vw, 140px);
}

.contact .section-label {
  color: var(--accent);
}

.contact h2 {
  color: var(--white);
  font-size: clamp(48px, 6.3vw, 90px);
}

.contact__copy > p:not(.section-label):not(.contact__note) {
  max-width: 32em;
  margin-top: 30px;
  color: rgba(242, 237, 229, 0.7);
  font-size: 14px;
  line-height: 2;
}

.contact .button {
  margin-top: 34px;
}

.contact__note {
  margin-top: 18px;
  color: rgba(242, 237, 229, 0.52);
  font-family: var(--mono);
  font-size: 10px;
}

.contact__visual {
  position: relative;
  min-height: 455px;
  margin: 0;
  overflow: hidden;
  background: var(--charcoal-soft);
  clip-path: polygon(0 7%, 94% 0, 100% 12%, 97% 100%, 7% 94%);
}

.contact__visual img {
  width: 100%;
  height: 100%;
  min-height: 455px;
  object-fit: cover;
  object-position: 72% 55%;
  filter: saturate(0.84) contrast(1.06);
}

.contact__visual::after {
  background: linear-gradient(90deg, rgba(24, 23, 21, 0.52), transparent 55%);
}

.contact__visual figcaption {
  color: rgba(242, 237, 229, 0.62);
}

.site-footer {
  color: rgba(242, 237, 229, 0.62);
  background: var(--charcoal);
  border-top: 1px solid rgba(242, 237, 229, 0.16);
}

.footer__inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  padding: 35px 0 42px;
}

.wordmark--footer {
  color: var(--white);
  font-size: 21px;
}

.footer__inner p {
  margin-top: 12px;
  font-size: 12px;
}

.footer__right {
  display: flex;
  align-items: flex-end;
  gap: 25px;
  font-family: var(--mono);
  font-size: 10px;
}

.footer__right a {
  color: var(--accent);
}

.footer__right a:hover {
  color: var(--white);
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 760ms var(--ease), transform 760ms var(--ease);
}

.reveal--delay-1 { transition-delay: 90ms; }
.reveal--delay-2 { transition-delay: 160ms; }
.reveal--delay-3 { transition-delay: 230ms; }
.reveal--delay-4 { transition-delay: 300ms; }
.reveal--delay-5 { transition-delay: 370ms; }

.reveal.is-visible,
.reveal--visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  :root {
    --container: min(100% - 40px, 760px);
  }

  .header__inner {
    min-height: 68px;
  }

  .menu-toggle {
    display: block;
  }

  .primary-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 20px;
    left: 20px;
    display: grid;
    gap: 0;
    padding: 12px;
    background: rgba(242, 237, 229, 0.98);
    border: 1px solid var(--paper-line);
    box-shadow: 0 18px 40px rgba(74, 54, 38, 0.12);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 220ms var(--ease), transform 220ms var(--ease);
  }

  .primary-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .primary-nav > a:not(.nav-cta) {
    padding: 14px 12px;
    border-bottom: 1px solid var(--paper-line);
  }

  .primary-nav > a:not(.nav-cta)::after {
    display: none;
  }

  .nav-cta {
    justify-content: center;
    margin-top: 12px;
  }

  .hero__inner,
  .why__grid,
  .logic__diagram,
  .services__grid,
  .process__layout,
  .contact__grid {
    grid-template-columns: 1fr;
  }

  .hero__inner {
    min-height: auto;
  }

  .hero__visual {
    min-height: 520px;
  }

  .hero__visual img {
    min-height: 520px;
  }

  .why__intro {
    max-width: 560px;
  }

  .why__visual {
    min-height: 520px;
  }

  .why__visual img {
    min-height: 520px;
  }

  .principles {
    grid-column: auto;
  }

  .logic__diagram {
    gap: 28px;
  }

  .logic__connector {
    justify-items: start;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 20px;
  }

  .logic__connector svg {
    transform: rotate(90deg);
  }

  .logic__bottom {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .services__visual {
    min-height: 470px;
  }

  .services__visual img {
    min-height: 470px;
  }

  .process__visual {
    position: relative;
    top: auto;
    min-height: 430px;
  }

  .process__visual img {
    min-height: 430px;
  }

  .contact__visual {
    min-height: 430px;
  }

  .contact__visual img {
    min-height: 430px;
  }
}

@media (max-width: 640px) {
  :root {
    --container: calc(100% - 32px);
  }

  body {
    font-size: 15px;
  }

  .header__inner {
    min-height: 62px;
  }

  .wordmark {
    font-size: 22px;
  }

  .hero {
    padding-top: 112px;
    padding-bottom: 68px;
  }

  .hero h1 {
    max-width: 100%;
    margin-top: 22px;
    font-size: clamp(34px, 9.2vw, 42px);
    letter-spacing: -0.06em;
    line-height: 1.14;
    text-wrap: pretty;
  }

  .hero__lead {
    margin-top: 22px;
    font-size: 13px;
  }

  .hero__actions {
    align-items: stretch;
    flex-direction: column;
    gap: 17px;
    margin-top: 28px;
  }

  .hero__actions .button,
  .hero__actions .text-link {
    justify-content: center;
    width: 100%;
  }

  .hero__proof {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 12px;
    margin-top: 40px;
    line-height: 1.8;
  }

  .hero__proof span:not(:last-child)::after {
    display: none;
  }

  .hero__visual {
    min-height: 0;
    aspect-ratio: 2 / 3;
    margin-top: 18px;
    clip-path: polygon(4% 0, 100% 0, 100% 96%, 91% 100%, 0 100%, 0 6%);
  }

  .hero__visual img {
    height: 100%;
    min-height: 0;
    object-position: center;
  }

  .hero__visual figcaption,
  .why__visual figcaption,
  .services__visual figcaption,
  .process__visual figcaption,
  .contact__visual figcaption {
    right: 13px;
    bottom: 12px;
    left: 13px;
    justify-content: space-between;
    font-size: 8px;
  }

  .section-index {
    right: 16px;
    bottom: 16px;
  }

  .belief-strip__track {
    justify-content: flex-start;
    gap: 17px;
    padding-block: 15px;
    font-size: 9px;
  }

  .section {
    padding: 96px 0 120px;
  }

  .why__grid {
    row-gap: 48px;
  }

  .section-label {
    margin-bottom: 18px;
  }

  .why h2,
  .logic h2,
  .services h2,
  .process h2 {
    font-size: clamp(37px, 10vw, 55px);
  }

  .section-lead {
    margin-top: 20px;
    font-size: 13px;
  }

  .why__intro .text-link {
    margin-top: 28px;
  }

  .why__visual {
    min-height: 0;
    aspect-ratio: 4 / 5;
    clip-path: polygon(0 4%, 92% 0, 100% 8%, 96% 100%, 4% 96%);
  }

  .why__visual img {
    height: 100%;
    min-height: 0;
    object-position: center;
  }

  .principles {
    display: block;
  }

  .principle,
  .principle:not(:first-child) {
    grid-template-columns: 34px 1fr;
    padding: 24px 0;
    border-right: 0;
    border-bottom: 1px solid var(--paper-line);
  }

  .principle:last-child {
    border-bottom: 0;
  }

  .principle h3 {
    font-size: 24px;
  }

  .principle p {
    margin-top: 9px;
    font-size: 12px;
  }

  .section-heading--split,
  .services__intro,
  .process__heading {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .logic__diagram {
    margin-top: 55px;
  }

  .logic__name {
    font-size: 22px;
  }

  .paper-layer {
    min-height: 72px;
    padding: 14px 17px;
  }

  .paper-layer span:first-child {
    font-size: 21px;
  }

  .logic__connector {
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 4px;
  }

  .logic__connector svg {
    width: 110px;
    transform: rotate(90deg) translateX(36px);
    transform-origin: left center;
  }

  .direct-panel {
    min-height: 106px;
    padding: 17px;
  }

  .direct-panel strong {
    font-size: 22px;
  }

  .logic__bottom {
    margin-top: 68px;
  }

  .logic__image {
    height: auto;
    aspect-ratio: 947 / 1661;
    opacity: 1;
    filter: none;
  }

  .logic__image img {
    object-fit: contain;
    object-position: center;
  }

  .services__grid {
    margin-top: 52px;
  }

  .services__visual {
    min-height: 0;
    aspect-ratio: 869 / 1810;
    background: var(--paper);
  }

  .services__visual img {
    height: 100%;
    min-height: 0;
    object-fit: contain;
    object-position: center;
    opacity: 1;
    filter: none;
  }

  .service-item__trigger {
    grid-template-columns: 31px 1fr auto;
    min-height: 72px;
    gap: 9px;
  }

  .service-item__title {
    font-size: 20px;
  }

  .service-item.is-open .service-item__detail {
    padding: 0 26px 22px 40px;
  }

  .process__layout {
    margin-top: 54px;
  }

  .process__visual {
    min-height: 0;
    aspect-ratio: 869 / 1810;
  }

  .process__visual img {
    height: 100%;
    min-height: 0;
    object-fit: contain;
    object-position: center;
    filter: none;
  }

  .services__visual figcaption,
  .process__visual figcaption,
  .services__visual::after,
  .process__visual::after {
    display: none;
  }

  .process__steps {
    display: block;
  }

  .process__steps::before {
    bottom: 36px;
  }

  .process-step {
    min-height: 0;
    padding-bottom: 28px;
  }

  .process-step h3 {
    font-size: 22px;
  }

  .process-step p {
    font-size: 12px;
  }

  .contact {
    padding: 92px 0 105px;
  }

  .contact h2 {
    font-size: clamp(50px, 14vw, 77px);
  }

  .contact__copy > p:not(.section-label):not(.contact__note) {
    font-size: 13px;
  }

  .contact__visual {
    min-height: 0;
    aspect-ratio: 4 / 5;
    clip-path: polygon(0 6%, 94% 0, 100% 10%, 96% 100%, 6% 94%);
  }

  .contact__visual img {
    height: 100%;
    min-height: 0;
    object-position: center;
  }

  .hero__visual::after,
  .why__visual::after,
  .process__visual::after {
    background: linear-gradient(0deg, rgba(242, 237, 229, 0.58), transparent 22%);
  }

  .services__visual::after,
  .contact__visual::after {
    background: linear-gradient(0deg, rgba(24, 23, 21, 0.58), transparent 22%);
  }

  .footer__inner,
  .footer__right {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer__inner {
    padding: 30px 0 35px;
  }

  .footer__right {
    gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
