/** 凱洛斯智慧科技企業官網樣式：編輯感排版、真實店家影像、成果案例與跨裝置導覽。 */
:root {
  color-scheme: light;
  --ink: #17211d;
  --ink-soft: #47534d;
  --paper: #f2eee4;
  --paper-light: #fbf9f4;
  --paper-dark: #e6dece;
  --forest: #153d32;
  --forest-light: #245648;
  --orange: #c65732;
  --orange-dark: #994020;
  --gold: #dfb24b;
  --line: rgba(23, 33, 29, 0.18);
  --line-light: rgba(255, 255, 255, 0.2);
  --shadow: 0 24px 70px rgba(40, 32, 22, 0.13);
  --sans:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang TC",
    "Noto Sans TC", sans-serif;
  --serif: "Songti TC", "Noto Serif TC", "PMingLiU", serif;
  --shell: min(100% - 48px, 1240px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  overflow-x: clip;
}

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

body::before {
  position: fixed;
  z-index: 100;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--orange) 0 42%,
    var(--gold) 42% 68%,
    var(--forest) 68%
  );
  content: "";
  pointer-events: none;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 16px;
  padding: 10px 14px;
  color: #fff;
  background: var(--ink);
  transform: translateY(-150%);
}

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

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

.section {
  padding: 128px 0;
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid transparent;
  background: rgba(242, 238, 228, 0.9);
  backdrop-filter: blur(16px);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.site-header.is-scrolled {
  border-color: var(--line);
  box-shadow: 0 8px 30px rgba(23, 33, 29, 0.06);
}

.header-inner {
  display: flex;
  width: var(--shell);
  min-height: 88px;
  margin-inline: auto;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
}

.company-mark {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 13px;
  text-decoration: none;
}

.company-symbol {
  position: relative;
  display: grid;
  width: 43px;
  height: 43px;
  place-items: center;
  overflow: hidden;
  color: #fff;
  background: var(--orange);
  border-radius: 7px 16px 7px 7px;
  box-shadow: inset -9px -9px 0 rgba(117, 43, 19, 0.22);
}

.company-symbol::after {
  position: absolute;
  width: 15px;
  height: 15px;
  right: -4px;
  top: -4px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  content: "";
}

.company-symbol i {
  font-family: Georgia, serif;
  font-size: 24px;
  font-weight: 700;
  font-style: normal;
  transform: translate(-1px, 1px);
}

.company-name {
  display: grid;
  line-height: 1.15;
}

.company-name strong {
  font-size: 16px;
  letter-spacing: 0.08em;
}

.company-name small {
  margin-top: 5px;
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.22em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(15px, 2vw, 30px);
  font-size: 14px;
  font-weight: 650;
}

.main-nav a {
  text-decoration: none;
}

.main-nav a:not(.nav-product-link) {
  position: relative;
}

.main-nav a:not(.nav-product-link)::after {
  position: absolute;
  right: 0;
  bottom: -6px;
  left: 0;
  height: 1px;
  background: var(--orange);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 160ms ease;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-product-link {
  padding: 10px 17px;
  color: #fff;
  background: var(--forest);
  border-radius: 999px;
}

.nav-product-link:hover {
  background: var(--forest-light);
}

.nav-toggle {
  display: none;
}

.hero {
  display: grid;
  min-height: calc(100vh - 88px);
  padding: 72px 0 94px;
  grid-template-columns: minmax(0, 1fr) minmax(480px, 1fr);
  align-items: center;
  gap: clamp(52px, 7vw, 100px);
}

.hero-copy {
  padding-bottom: 28px;
}

.eyebrow {
  display: flex;
  margin: 0 0 24px;
  align-items: center;
  gap: 11px;
  color: var(--orange-dark);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.eyebrow span {
  padding-right: 11px;
  border-right: 1px solid currentColor;
  color: var(--ink-soft);
  font-size: 10px;
  letter-spacing: 0.18em;
}

.eyebrow-light {
  color: #f2b377;
}

.eyebrow-light span {
  color: rgba(255, 255, 255, 0.68);
}

.hero h1,
.section-heading h2,
.proof-heading h2,
.case-intro h2,
.team-heading h2,
.contact-section h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.13;
  letter-spacing: -0.035em;
}

.hero h1 {
  max-width: 680px;
  font-size: clamp(48px, 5vw, 68px);
}

.hero h1 em {
  color: var(--orange);
  font-style: normal;
}

.hero-lead {
  max-width: 610px;
  margin: 30px 0 0;
  color: var(--ink-soft);
  font-size: clamp(17px, 1.35vw, 20px);
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  margin-top: 38px;
  align-items: center;
  gap: 28px;
}

.button {
  display: inline-flex;
  min-height: 52px;
  padding: 13px 23px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 750;
  text-decoration: none;
  transition:
    transform 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #fff;
  background: var(--orange);
  box-shadow: 0 14px 34px rgba(198, 87, 50, 0.24);
}

.button-primary:hover {
  background: var(--orange-dark);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.text-link span,
.case-result-bar a span,
.product-copy a span,
.contact-email span {
  color: var(--orange);
  font-size: 1.15em;
}

.hero-note {
  margin: 35px 0 0;
  color: #6f7772;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.1em;
}

.field-collage {
  position: relative;
  display: grid;
  min-height: 620px;
  grid-template-columns: 1.1fr 0.9fr;
  grid-template-rows: 1fr 1fr;
  gap: 13px;
  isolation: isolate;
}

.field-collage::before {
  position: absolute;
  z-index: -1;
  right: -15px;
  bottom: -31px;
  width: 74%;
  height: 72%;
  border: 1px solid rgba(21, 61, 50, 0.3);
  content: "";
}

.field-photo {
  position: relative;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  background: var(--paper-dark);
}

.field-photo-main {
  grid-row: 1 / 3;
}

.field-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.03);
  transition: transform 600ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.field-photo:hover img,
.partner-card:hover img {
  transform: scale(1.035);
}

.field-photo figcaption {
  position: absolute;
  right: 10px;
  bottom: 10px;
  left: 10px;
  display: flex;
  padding: 10px 12px;
  align-items: center;
  gap: 9px;
  color: #fff;
  background: rgba(15, 29, 24, 0.76);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  backdrop-filter: blur(8px);
}

.field-photo figcaption span {
  color: #efb27d;
  font-size: 9px;
}

.collage-stamp {
  position: absolute;
  z-index: 5;
  left: calc(55% - 52px);
  top: calc(50% - 52px);
  display: grid;
  width: 104px;
  height: 104px;
  place-content: center;
  color: #fff;
  background: var(--orange);
  border: 5px solid var(--paper);
  border-radius: 50%;
  text-align: center;
  transform: rotate(-8deg);
}

.collage-stamp span {
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.collage-stamp strong {
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.2;
}

.proof-section {
  padding: 94px 0 68px;
  color: #fff;
  background: var(--forest);
}

.proof-heading {
  display: flex;
  margin-bottom: 58px;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
}

.proof-heading .eyebrow {
  margin: 0;
}

.proof-heading h2 {
  max-width: 690px;
  font-size: clamp(34px, 4vw, 56px);
  text-align: right;
}

.proof-grid {
  display: grid;
  margin: 0;
  border-top: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
  grid-template-columns: repeat(4, 1fr);
}

.proof-grid > div {
  padding: 29px clamp(18px, 2.4vw, 36px) 32px;
  border-right: 1px solid var(--line-light);
}

.proof-grid > div:first-child {
  padding-left: 0;
}

.proof-grid > div:last-child {
  padding-right: 0;
  border-right: 0;
}

.proof-grid dt {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 650;
}

.proof-grid dd {
  display: flex;
  margin: 12px 0 4px;
  align-items: baseline;
  gap: 8px;
  white-space: nowrap;
}

.proof-grid dd strong {
  font-family: Georgia, var(--serif);
  font-size: clamp(43px, 4.6vw, 67px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.055em;
}

.proof-grid dd span {
  color: #efb27d;
  font-size: 14px;
  font-weight: 700;
}

.proof-grid p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 11px;
}

.proof-source {
  max-width: 900px;
  margin: 22px 0 0 auto;
  color: rgba(255, 255, 255, 0.55);
  font-size: 11px;
  text-align: right;
}

.section-heading h2,
.case-intro h2,
.team-heading h2,
.contact-section h2 {
  font-size: clamp(38px, 4.5vw, 62px);
}

.story-section {
  background: var(--paper-light);
}

.story-grid {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: clamp(70px, 10vw, 150px);
}

.sticky-heading {
  position: sticky;
  top: 130px;
  align-self: start;
}

.story-copy {
  max-width: 650px;
}

.story-copy > p {
  margin: 0 0 24px;
  color: var(--ink-soft);
  font-size: 18px;
}

.story-copy .story-lead {
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(26px, 2.5vw, 35px);
  font-weight: 700;
  line-height: 1.55;
}

.story-copy blockquote {
  position: relative;
  margin: 52px 0;
  padding: 30px 36px;
  color: #fff;
  background: var(--orange);
  font-family: var(--serif);
  font-size: clamp(25px, 2.5vw, 34px);
  font-weight: 700;
  line-height: 1.55;
  transform: rotate(-1deg);
  box-shadow: var(--shadow);
}

.story-copy blockquote::after {
  position: absolute;
  right: 20px;
  bottom: -15px;
  width: 35px;
  height: 35px;
  background: var(--orange);
  clip-path: polygon(0 0, 100% 0, 100% 100%);
  content: "";
}

.story-copy blockquote span {
  color: rgba(255, 255, 255, 0.45);
}

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

.story-timeline article {
  display: grid;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  grid-template-columns: 48px 1fr;
  gap: 20px;
}

.story-timeline article > span {
  color: var(--orange);
  font-family: Georgia, serif;
  font-size: 13px;
  font-style: italic;
}

.story-timeline strong {
  display: block;
  margin-bottom: 5px;
  font-size: 18px;
}

.story-timeline p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
}

.case-section {
  color: #fff;
  background: var(--ink);
}

.case-intro {
  display: grid;
  margin-bottom: 65px;
  grid-template-columns: 1.3fr 0.7fr;
  align-items: end;
  gap: clamp(50px, 9vw, 130px);
}

.case-intro > p {
  margin: 0 0 6px;
  color: rgba(255, 255, 255, 0.67);
  font-size: 17px;
}

.case-board {
  display: grid;
  border-top: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
  grid-template-columns: 1fr 1fr;
}

.case-image {
  position: relative;
  min-height: 550px;
  margin: 0;
  overflow: hidden;
}

.case-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-image figcaption {
  position: absolute;
  right: 15px;
  bottom: 15px;
  padding: 8px 12px;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(23, 33, 29, 0.78);
  font-size: 11px;
}

.case-steps {
  display: grid;
  margin: 0;
  padding: 0;
  border-left: 1px solid var(--line-light);
  list-style: none;
}

.case-steps li {
  display: grid;
  padding: 35px clamp(28px, 4vw, 54px);
  align-content: center;
  border-bottom: 1px solid var(--line-light);
}

.case-steps li:last-child {
  border-bottom: 0;
}

.case-steps span {
  margin-bottom: 12px;
  color: #efb27d;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.case-steps strong {
  font-family: var(--serif);
  font-size: clamp(22px, 2vw, 29px);
  line-height: 1.55;
}

.case-result-bar {
  display: flex;
  padding: 30px 0 0;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.case-result-bar p {
  display: flex;
  margin: 0;
  align-items: baseline;
  gap: 18px;
}

.case-result-bar p span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
}

.case-result-bar p strong {
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: clamp(27px, 3.2vw, 43px);
  font-weight: 500;
}

.case-result-bar a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  font-weight: 700;
}

.split-heading {
  display: grid;
  margin-bottom: 60px;
  grid-template-columns: 1.15fr 0.65fr;
  align-items: end;
  gap: clamp(40px, 9vw, 130px);
}

.split-heading > p {
  margin: 0 0 4px;
  color: var(--ink-soft);
}

.partner-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.partner-card {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  background: var(--ink);
}

.partner-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
  transition:
    transform 500ms ease,
    opacity 300ms ease;
}

.partner-card:hover img {
  opacity: 1;
}

.partner-card::after {
  position: absolute;
  inset: 35% 0 0;
  background: linear-gradient(transparent, rgba(12, 22, 18, 0.88));
  content: "";
}

.partner-card div {
  position: absolute;
  z-index: 1;
  right: 22px;
  bottom: 22px;
  left: 22px;
  color: #fff;
}

.partner-card span {
  color: #efb27d;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.partner-card h3 {
  margin: 5px 0 0;
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.35;
}

.partner-names {
  display: flex;
  margin-top: 30px;
  flex-wrap: wrap;
  gap: 10px;
}

.partner-names span {
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.35);
  font-size: 12px;
}

.approach-section {
  background: var(--paper-dark);
}

.narrow-heading {
  max-width: 790px;
  margin-bottom: 70px;
}

.narrow-heading > p:last-child {
  max-width: 650px;
  margin: 25px 0 0;
  color: var(--ink-soft);
  font-size: 18px;
}

.approach-grid {
  display: grid;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  grid-template-columns: repeat(4, 1fr);
  list-style: none;
}

.approach-grid li {
  min-height: 280px;
  padding: 28px clamp(20px, 2.5vw, 34px);
  border-right: 1px solid var(--line);
}

.approach-grid li:first-child {
  padding-left: 0;
}

.approach-grid li:last-child {
  padding-right: 0;
  border-right: 0;
}

.approach-grid li > span {
  display: block;
  margin-bottom: 65px;
  color: var(--orange);
  font-family: Georgia, serif;
  font-size: 14px;
  font-style: italic;
}

.approach-grid strong {
  display: block;
  font-family: var(--serif);
  font-size: 22px;
}

.approach-grid p {
  margin: 10px 0 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.products-section {
  background: var(--paper-light);
}

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

.product-card {
  display: grid;
  min-height: 620px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
}

.product-visual {
  display: flex;
  height: 430px;
  padding: 34px 34px 0;
  align-items: flex-start;
  justify-content: center;
  gap: 16px;
  overflow: hidden;
}

.product-diner .product-visual {
  background: var(--forest);
}

.product-merchant .product-visual {
  background: #8d421f;
}

.product-shot {
  width: auto;
  height: 410px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 16px 16px 0 0;
  box-shadow: 0 20px 40px rgba(8, 21, 16, 0.24);
}

.product-shot-secondary {
  margin-top: 34px;
}

.product-copy {
  padding: 30px 38px 34px;
  color: var(--ink);
  background: #fff;
}

.product-copy > p {
  margin: 0 0 8px;
  color: var(--orange-dark);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.product-copy h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 35px;
}

.product-copy > span {
  display: block;
  margin: 6px 0 20px;
  color: var(--ink-soft);
}

.product-copy a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
}

.team-section {
  color: #fff;
  background: var(--forest);
}

.team-heading {
  display: grid;
  margin-bottom: 65px;
  grid-template-columns: 1fr 1.3fr;
  align-items: end;
  gap: 45px;
}

.team-heading .eyebrow {
  grid-column: 1 / 3;
  margin-bottom: 0;
}

.team-heading > p:last-child {
  margin: 0 0 6px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 17px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.team-card figure {
  position: relative;
  aspect-ratio: 1 / 1.06;
  margin: 0 0 25px;
  overflow: hidden;
  background: #d8d1c4;
}

.team-card figure::after {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.17);
  content: "";
}

.team-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.82) contrast(1.02);
}

.team-card > p {
  margin: 0 0 6px;
  color: #efb27d;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.17em;
}

.team-card h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 27px;
}

.team-card h3 span {
  color: rgba(255, 255, 255, 0.52);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
}

.team-card > div {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 14px;
}

.contact-section {
  padding: 130px 0;
  color: var(--ink);
  background: var(--gold);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: end;
  gap: clamp(60px, 10vw, 150px);
}

.contact-section .eyebrow {
  color: var(--orange-dark);
}

.contact-copy > p {
  margin: 0 0 28px;
  font-size: 18px;
}

.contact-email {
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  gap: 8px;
  font-family: Georgia, serif;
  font-size: clamp(20px, 2.4vw, 32px);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.contact-email span {
  color: var(--orange-dark);
}

.contact-links {
  display: flex;
  margin-top: 35px;
  flex-wrap: wrap;
  gap: 14px 24px;
  font-size: 13px;
  font-weight: 700;
}

.site-footer {
  padding: 42px 0;
  color: #fff;
  background: var(--ink);
}

.footer-inner {
  display: flex;
  width: var(--shell);
  margin-inline: auto;
  align-items: center;
  justify-content: space-between;
  gap: 35px;
}

.footer-inner > div:first-child {
  display: grid;
}

.footer-inner strong {
  font-family: var(--serif);
  font-size: 18px;
}

.footer-inner > div:first-child span {
  color: rgba(255, 255, 255, 0.5);
  font-size: 10px;
  letter-spacing: 0.12em;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 20px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 11px;
}

@media (max-width: 1080px) {
  :root {
    --shell: min(100% - 40px, 940px);
  }

  .main-nav {
    gap: 15px;
    font-size: 12px;
  }

  .hero {
    grid-template-columns: 0.95fr 1.05fr;
    gap: 45px;
  }

  .field-collage {
    min-height: 530px;
  }

  .partner-gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .partner-card {
    min-height: 440px;
  }
}

@media (max-width: 820px) {
  :root {
    --shell: min(100% - 34px, 720px);
  }

  html {
    scroll-padding-top: 80px;
  }

  .section {
    padding: 92px 0;
  }

  .header-inner {
    min-height: 77px;
  }

  .has-js .nav-toggle {
    display: grid;
    width: 44px;
    height: 44px;
    padding: 0;
    place-content: center;
    gap: 6px;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: inherit;
    background: transparent;
    cursor: pointer;
  }

  .nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: currentColor;
    transition: transform 160ms ease;
  }

  .nav-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(4px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-4px) rotate(-45deg);
  }

  .main-nav {
    position: absolute;
    top: 100%;
    right: auto;
    left: 50%;
    display: grid;
    width: 100vw;
    padding: 22px max(17px, calc((100vw - 720px) / 2));
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: var(--paper-light);
    font-size: 15px;
    gap: 0;
    transform: translateX(-50%);
  }

  .main-nav a {
    padding: 12px 0;
  }

  .main-nav .nav-product-link {
    margin-top: 8px;
    padding: 12px 16px;
    text-align: center;
  }

  .has-js .main-nav[hidden] {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 62px 0 84px;
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding: 0;
  }

  .hero h1 {
    font-size: clamp(47px, 11vw, 72px);
  }

  .field-collage {
    min-height: 610px;
  }

  .proof-heading,
  .case-result-bar,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .proof-heading h2 {
    text-align: left;
  }

  .proof-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .proof-grid > div {
    padding: 25px;
    border-bottom: 1px solid var(--line-light);
  }

  .proof-grid > div:nth-child(2) {
    border-right: 0;
  }

  .proof-grid > div:nth-child(3),
  .proof-grid > div:nth-child(4) {
    border-bottom: 0;
  }

  .proof-grid > div:first-child,
  .proof-grid > div:last-child {
    padding: 25px;
  }

  .story-grid,
  .case-intro,
  .split-heading,
  .team-heading,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .sticky-heading {
    position: static;
  }

  .case-board {
    grid-template-columns: 1fr;
  }

  .case-image {
    min-height: 470px;
  }

  .case-steps {
    border-top: 1px solid var(--line-light);
    border-left: 0;
  }

  .approach-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .approach-grid li {
    border-bottom: 1px solid var(--line);
  }

  .approach-grid li:nth-child(2) {
    border-right: 0;
  }

  .approach-grid li:nth-child(3),
  .approach-grid li:nth-child(4) {
    border-bottom: 0;
  }

  .approach-grid li:first-child,
  .approach-grid li:last-child {
    padding: 28px;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .team-heading .eyebrow {
    grid-column: auto;
  }

  .team-grid {
    gap: 17px;
  }

  .footer-meta {
    justify-content: flex-start;
  }
}

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

  .section {
    padding: 78px 0;
  }

  .company-name strong {
    font-size: 14px;
  }

  .company-name small {
    font-size: 8px;
  }

  .hero {
    padding-top: 47px;
    gap: 45px;
  }

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

  .hero-lead {
    margin-top: 25px;
    font-size: 16px;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
  }

  .field-collage {
    min-height: 510px;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1.22fr 0.78fr;
  }

  .field-photo-main {
    grid-column: 1 / 3;
    grid-row: 1;
  }

  .field-photo-top,
  .field-photo-bottom {
    grid-row: 2;
  }

  .collage-stamp {
    left: calc(50% - 42px);
    top: calc(66% - 42px);
    width: 84px;
    height: 84px;
    border-width: 4px;
  }

  .collage-stamp strong {
    font-size: 20px;
  }

  .proof-section {
    padding: 76px 0 55px;
  }

  .proof-heading {
    margin-bottom: 40px;
  }

  .proof-grid dd strong {
    font-size: clamp(36px, 11vw, 51px);
  }

  .proof-grid > div,
  .proof-grid > div:first-child,
  .proof-grid > div:last-child {
    padding: 21px 12px;
  }

  .proof-grid > div:nth-child(odd) {
    padding-left: 0;
  }

  .proof-grid > div:nth-child(even) {
    padding-right: 0;
  }

  .proof-grid dt {
    min-height: 42px;
    font-size: 11px;
  }

  .proof-grid p {
    display: none;
  }

  .proof-source {
    text-align: left;
  }

  .section-heading h2,
  .proof-heading h2,
  .case-intro h2,
  .team-heading h2,
  .contact-section h2 {
    font-size: clamp(34px, 10.5vw, 46px);
  }

  .story-copy .story-lead {
    font-size: 25px;
  }

  .story-copy blockquote {
    margin: 40px 0;
    padding: 25px;
    font-size: 24px;
  }

  .case-image {
    min-height: 360px;
  }

  .case-steps li {
    padding: 28px 22px;
  }

  .case-result-bar p {
    display: grid;
    gap: 2px;
  }

  .partner-gallery {
    grid-template-columns: 1fr 1fr;
    gap: 9px;
  }

  .partner-card {
    min-height: 290px;
  }

  .partner-card div {
    right: 14px;
    bottom: 14px;
    left: 14px;
  }

  .partner-card h3 {
    font-size: 17px;
  }

  .approach-grid {
    grid-template-columns: 1fr;
  }

  .approach-grid li,
  .approach-grid li:first-child,
  .approach-grid li:last-child {
    min-height: 0;
    padding: 27px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .approach-grid li:nth-child(3) {
    border-bottom: 1px solid var(--line);
  }

  .approach-grid li:last-child {
    border-bottom: 0;
  }

  .approach-grid li > span {
    margin-bottom: 25px;
  }

  .product-card {
    min-height: 0;
  }

  .product-visual {
    height: 360px;
    padding: 25px 18px 0;
    gap: 9px;
  }

  .product-shot {
    height: 338px;
    border-radius: 12px 12px 0 0;
  }

  .product-shot-secondary {
    margin-top: 28px;
  }

  .product-copy {
    padding: 25px 23px 28px;
  }

  .product-copy h3 {
    font-size: 29px;
  }

  .team-grid {
    grid-template-columns: 1fr;
    gap: 55px;
  }

  .team-card figure {
    aspect-ratio: 1 / 1;
  }

  .contact-section {
    padding: 90px 0;
  }

  .contact-links {
    align-items: flex-start;
    flex-direction: column;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
