:root {
  --paper: #fffdf8;
  --cream: #f5f0e6;
  --warm-white: #fbf8f1;
  --ink: #1c2d28;
  --forest: #173f34;
  --forest-deep: #0f3128;
  --sage: #dce6dd;
  --sage-deep: #8da79a;
  --gold: #c39852;
  --gold-light: #ead5aa;
  --rust: #a95f43;
  --line: rgba(28, 45, 40, 0.14);
  --serif: Iowan Old Style, Baskerville, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --shadow: 0 30px 80px rgba(29, 53, 45, 0.13);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

p:last-child {
  margin-bottom: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 4px;
  background: var(--paper);
  color: var(--forest);
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

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

.shell {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(28, 45, 40, 0.09);
  background: rgba(255, 253, 248, 0.92);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  min-height: 82px;
  gap: 32px;
}

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

.brand > span:last-child {
  display: grid;
  line-height: 1.02;
}

.brand strong {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.brand small {
  margin-top: 3px;
  color: #66746f;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.brand-mark {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 50% 50% 8px 8px;
  background: var(--forest);
}

.brand-cross,
.brand-cross::after {
  position: absolute;
  display: block;
  background: var(--gold-light);
  content: "";
}

.brand-cross {
  top: 9px;
  left: 18px;
  width: 2px;
  height: 14px;
}

.brand-cross::after {
  top: 4px;
  left: -4px;
  width: 10px;
  height: 2px;
}

.brand-window {
  position: absolute;
  right: 9px;
  bottom: 6px;
  left: 9px;
  height: 8px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
}

nav {
  display: flex;
  justify-content: center;
  gap: clamp(18px, 3vw, 36px);
}

nav a {
  position: relative;
  color: #41514b;
  font-size: 13px;
  font-weight: 650;
}

nav a::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 1px;
  background: var(--gold);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid var(--forest);
  border-radius: 4px;
  background: var(--forest);
  color: #fff;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.02em;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.button:hover,
.button:focus-visible {
  background: var(--forest-deep);
  box-shadow: 0 12px 32px rgba(15, 49, 40, 0.2);
  transform: translateY(-2px);
}

.button-small {
  min-height: 42px;
  padding: 0 18px;
  font-size: 12px;
}

.button-light {
  border-color: var(--paper);
  background: var(--paper);
  color: var(--forest);
}

.button-light:hover,
.button-light:focus-visible {
  background: #fff;
  color: var(--forest-deep);
}

.arrow {
  display: inline-block;
  font-size: 18px;
  line-height: 1;
  transition: transform 180ms ease;
}

a:hover .arrow,
a:focus-visible .arrow {
  transform: translateX(4px);
}

.hero {
  position: relative;
  isolation: isolate;
  padding: clamp(76px, 9vw, 132px) 0 0;
  background: var(--cream);
}

.hero-wash {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    radial-gradient(circle at 76% 28%, rgba(195, 152, 82, 0.18), transparent 26%),
    linear-gradient(120deg, rgba(255,255,255,0.58), transparent 52%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(430px, 0.97fr);
  align-items: center;
  gap: clamp(54px, 7vw, 96px);
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding-bottom: 56px;
  animation: hero-rise 680ms ease-out both;
}

.eyebrow {
  margin-bottom: 20px;
  color: var(--rust);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

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

h1,
h2 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.04;
}

h1 {
  max-width: 700px;
  margin-bottom: 27px;
  font-size: clamp(48px, 5.5vw, 78px);
}

h2 {
  margin-bottom: 22px;
  font-size: clamp(38px, 4vw, 58px);
}

h3 {
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 600;
  line-height: 1.15;
}

.hero-lead {
  max-width: 630px;
  margin-bottom: 32px;
  color: #46564f;
  font-size: clamp(18px, 1.7vw, 22px);
  line-height: 1.55;
}

.button-row {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-bottom: 26px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 0 7px;
  border-bottom: 1px solid rgba(28, 45, 40, 0.45);
  color: var(--forest);
  font-size: 13px;
  font-weight: 750;
}

.hero-note {
  color: #6f7a76;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.hero-composition {
  position: relative;
  min-height: 535px;
  animation: hero-rise 760ms 100ms ease-out both;
}

.halo {
  position: absolute;
  border: 1px solid rgba(23, 63, 52, 0.13);
  border-radius: 50%;
}

.halo-one {
  top: -30px;
  left: 7%;
  width: 430px;
  height: 430px;
}

.halo-two {
  top: 22px;
  left: 14%;
  width: 350px;
  height: 350px;
}

.hero-browser {
  position: absolute;
  top: 28px;
  right: 0;
  width: min(520px, 96%);
  overflow: hidden;
  border: 9px solid #fdfbf5;
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow);
  transform: rotate(1.5deg);
}

.browser-bar,
.preview-browser {
  display: flex;
  align-items: center;
  height: 30px;
  padding: 0 12px;
  background: #eef0ec;
  color: #7a8782;
  font-size: 8px;
}

.browser-bar > span {
  display: flex;
  gap: 4px;
}

.browser-bar i,
.preview-browser i {
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #b7c1bc;
}

.browser-bar small {
  margin: auto;
  transform: translateX(-14px);
}

.browser-nav {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 58px;
  padding: 0 22px;
}

.browser-nav b {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: auto;
  font-family: var(--serif);
  font-size: 13px;
}

.browser-nav .brand-mark {
  width: 20px;
  height: 20px;
  flex-basis: 20px;
}

.browser-nav .brand-cross {
  top: 4px;
  left: 9px;
  height: 9px;
}

.browser-nav .brand-window {
  right: 5px;
  bottom: 3px;
  left: 5px;
  height: 5px;
}

.browser-nav > span {
  width: 38px;
  height: 4px;
  border-radius: 10px;
  background: #d7deda;
}

.browser-hero {
  display: flex;
  min-height: 252px;
  flex-direction: column;
  justify-content: flex-end;
  padding: 34px;
  background:
    linear-gradient(90deg, rgba(14, 46, 37, 0.93), rgba(23, 63, 52, 0.54)),
    radial-gradient(circle at 75% 35%, #97ad9f, transparent 22%),
    linear-gradient(145deg, #386658, #789283);
  color: #fff;
}

.browser-hero p {
  margin-bottom: 8px;
  color: var(--gold-light);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.browser-hero strong {
  max-width: 300px;
  margin-bottom: 18px;
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 500;
  line-height: 1.05;
}

.browser-hero > span {
  font-size: 9px;
  letter-spacing: 0.04em;
}

.browser-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 19px;
}

.browser-cards i {
  height: 46px;
  border-radius: 4px;
  background: #edf1ed;
}

.hero-phone {
  position: absolute;
  right: -20px;
  bottom: 22px;
  z-index: 3;
  display: flex;
  width: 152px;
  height: 286px;
  flex-direction: column;
  align-items: center;
  padding: 26px 17px;
  border: 7px solid #fdfbf5;
  border-radius: 28px;
  background: var(--forest);
  box-shadow: 0 24px 60px rgba(20, 45, 37, 0.24);
  color: #fff;
  transform: rotate(-4deg);
}

.phone-speaker {
  position: absolute;
  top: 8px;
  width: 32px;
  height: 3px;
  border-radius: 10px;
  background: rgba(255,255,255,0.35);
}

.hero-phone .brand-mark {
  width: 32px;
  height: 32px;
  margin: 20px 0 36px;
  flex-basis: 32px;
  background: rgba(255,255,255,0.12);
}

.hero-phone .brand-cross {
  top: 7px;
  left: 15px;
  height: 12px;
}

.hero-phone .brand-window {
  right: 7px;
  bottom: 5px;
  left: 7px;
  height: 7px;
}

.hero-phone strong {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 500;
}

.hero-phone > span {
  margin-top: 8px;
  color: #d3dfd8;
  font-size: 9px;
}

.hero-phone > i {
  width: 88px;
  height: 33px;
  margin-top: 24px;
  border-radius: 3px;
  background: var(--gold-light);
}

.hero-seal {
  position: absolute;
  bottom: 5px;
  left: 0;
  z-index: 4;
  display: grid;
  width: 142px;
  height: 142px;
  place-content: center;
  border: 1px solid rgba(23, 63, 52, 0.23);
  border-radius: 50%;
  background: rgba(255,253,248,0.92);
  text-align: center;
  box-shadow: 0 15px 40px rgba(29, 53, 45, 0.1);
}

.hero-seal span {
  font-family: var(--serif);
  font-size: 50px;
  line-height: 0.9;
}

.hero-seal small {
  display: block;
  max-width: 90px;
  margin: 8px auto 0;
  color: #596862;
  font-size: 8px;
  font-weight: 750;
  letter-spacing: 0.08em;
  line-height: 1.35;
  text-transform: uppercase;
}

.hero-principle {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 28px;
  min-height: 104px;
  border-top: 1px solid rgba(28, 45, 40, 0.13);
}

.principle-rule {
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.hero-principle p {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(21px, 2.3vw, 31px);
  font-style: italic;
}

.hero-principle strong {
  color: var(--forest);
  font-weight: 600;
}

.section {
  padding: clamp(88px, 10vw, 144px) 0;
}

.section-heading {
  margin-bottom: 60px;
}

.split-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.7fr);
  align-items: end;
  gap: clamp(48px, 8vw, 120px);
}

.split-heading h2 {
  max-width: 700px;
  margin-bottom: 0;
}

.split-heading > p,
.centered-heading > p:last-child {
  color: #5d6b65;
  font-size: 17px;
}

.centered-heading {
  max-width: 770px;
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}

.service-card {
  min-height: 300px;
  padding: 34px 38px 28px 0;
  border-right: 1px solid var(--line);
}

.service-card + .service-card {
  padding-left: 38px;
}

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

.service-card > span,
.benefit-card > span {
  display: block;
  margin-bottom: 74px;
  color: var(--rust);
  font-family: var(--serif);
  font-size: 16px;
  font-style: italic;
}

.service-card h3 {
  max-width: 240px;
  margin-bottom: 18px;
}

.service-card p,
.benefit-card p,
.process-grid p {
  color: #617069;
  font-size: 14px;
}

.matter-section {
  position: relative;
  background: var(--forest);
  color: #fff;
}

.matter-section::before {
  position: absolute;
  top: 0;
  right: 9%;
  width: 240px;
  height: 100%;
  border-right: 1px solid rgba(255,255,255,0.06);
  border-left: 1px solid rgba(255,255,255,0.06);
  content: "";
  transform: skewX(-9deg);
}

.matter-grid {
  position: relative;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(70px, 9vw, 140px);
}

.matter-statement p:last-child {
  max-width: 520px;
  color: #cfdbd5;
  font-size: 18px;
}

.matter-list article {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 20px;
  padding: 24px 0;
  border-top: 1px solid rgba(255,255,255,0.16);
}

.matter-list article:last-child {
  border-bottom: 1px solid rgba(255,255,255,0.16);
}

.matter-list article > span {
  color: var(--gold-light);
  font-family: var(--serif);
  font-style: italic;
}

.matter-list h3 {
  margin-bottom: 5px;
  font-size: 21px;
}

.matter-list p {
  margin: 0;
  color: #c2d0c9;
  font-size: 14px;
}

.why-section {
  background: var(--warm-white);
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}

.benefit-card {
  min-height: 288px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--paper);
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.benefit-card:nth-child(1),
.benefit-card:nth-child(2),
.benefit-card:nth-child(3) {
  grid-column: span 2;
}

.benefit-card:nth-child(4),
.benefit-card:nth-child(5) {
  grid-column: span 3;
  min-height: 250px;
}

.benefit-card:hover {
  border-color: rgba(23,63,52,0.32);
  box-shadow: 0 22px 50px rgba(29, 53, 45, 0.08);
  transform: translateY(-4px);
}

.benefit-card > span {
  margin-bottom: 52px;
}

.benefit-card h3 {
  margin-bottom: 14px;
  font-size: 23px;
}

.experience-section {
  padding: clamp(82px, 9vw, 128px) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.experience-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 0.9fr;
  gap: 0;
}

.experience-intro {
  padding-right: clamp(48px, 7vw, 96px);
}

.experience-intro h2 {
  font-size: clamp(36px, 3.5vw, 50px);
}

.experience-intro > p:last-child {
  color: #5d6b65;
}

.experience-stat {
  display: flex;
  min-height: 300px;
  flex-direction: column;
  justify-content: flex-end;
  padding: 38px;
  border-left: 1px solid var(--line);
}

.experience-stat strong {
  font-family: var(--serif);
  font-size: clamp(88px, 9vw, 124px);
  font-weight: 400;
  letter-spacing: -0.07em;
  line-height: 0.72;
}

.experience-stat span {
  max-width: 220px;
  margin-top: 36px;
  color: #56655f;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.04em;
  line-height: 1.45;
  text-transform: uppercase;
}

.experience-stat-alt {
  background: var(--sage);
}

.work-section {
  background: var(--cream);
}

.work-heading {
  align-items: center;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
}

.work-card {
  overflow: hidden;
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 22px 65px rgba(29, 53, 45, 0.08);
}

.site-preview {
  min-height: 380px;
  padding: 42px 42px 0;
}

.site-preview-martyrs {
  background: #e5b85c;
}

.site-preview-king {
  background: #7e9d8f;
}

.preview-browser {
  gap: 4px;
  border-radius: 7px 7px 0 0;
}

.preview-browser span {
  margin: 0 auto;
  transform: translateX(-10px);
}

.preview-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 56px;
  padding: 0 22px;
  background: #fff;
}

.preview-nav b {
  margin-right: auto;
  color: var(--forest);
  font-family: var(--serif);
  font-size: 17px;
}

.preview-nav span {
  width: 34px;
  height: 4px;
  border-radius: 10px;
  background: #dce2de;
}

.preview-scene {
  position: relative;
  display: grid;
  min-height: 250px;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  overflow: hidden;
  padding: 34px;
  background: var(--forest);
  color: #fff;
}

.site-preview-king .preview-scene {
  background: #f0eadf;
  color: var(--ink);
}

.preview-copy {
  position: relative;
  z-index: 2;
  display: grid;
}

.preview-copy small {
  margin-bottom: 11px;
  color: var(--gold-light);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-preview-king .preview-copy small {
  color: var(--rust);
}

.preview-copy strong {
  max-width: 250px;
  font-family: var(--serif);
  font-size: 29px;
  font-weight: 500;
  line-height: 1.02;
}

.preview-copy em {
  width: max-content;
  margin-top: 24px;
  padding: 9px 12px;
  border-radius: 2px;
  background: var(--gold-light);
  color: var(--forest);
  font-family: var(--sans);
  font-size: 8px;
  font-style: normal;
  font-weight: 800;
  text-transform: uppercase;
}

.site-preview-king .preview-copy em {
  background: var(--forest);
  color: #fff;
}

.preview-architecture {
  position: relative;
  align-self: stretch;
  opacity: 0.58;
}

.preview-roof {
  position: absolute;
  right: -28px;
  bottom: 64px;
  width: 180px;
  height: 120px;
  border: 1px solid currentColor;
  transform: rotate(45deg);
}

.preview-steeple {
  position: absolute;
  right: 54px;
  bottom: 34px;
  width: 2px;
  height: 180px;
  background: currentColor;
}

.preview-steeple::after {
  position: absolute;
  top: 18px;
  left: -14px;
  width: 30px;
  height: 2px;
  background: currentColor;
  content: "";
}

.preview-door {
  position: absolute;
  right: 30px;
  bottom: -1px;
  width: 50px;
  height: 74px;
  border: 1px solid currentColor;
  border-bottom: 0;
  border-radius: 50px 50px 0 0;
}

.work-card-copy {
  display: grid;
  grid-template-columns: 0.8fr 1.3fr;
  gap: 22px 32px;
  padding: 34px 38px 38px;
}

.work-card-copy > div p {
  margin-bottom: 5px;
  color: var(--rust);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.work-card-copy h3 {
  margin: 0;
  font-size: 27px;
}

.work-card-copy > p {
  margin: 0;
  color: #617069;
  font-size: 13px;
}

.work-card-copy > a {
  grid-column: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  color: var(--forest);
  font-size: 12px;
  font-weight: 800;
}

.concept-note {
  margin: 24px 0 0;
  color: #75807b;
  font-size: 11px;
  text-align: center;
}

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

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

.process-grid article {
  position: relative;
  padding: 40px 42px 10px 0;
}

.process-grid article + article {
  padding-left: 42px;
  border-left: 1px solid var(--line);
}

.process-grid article > span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  margin-bottom: 54px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--rust);
  font-family: var(--serif);
  font-style: italic;
}

.process-grid article:not(:last-child)::after {
  position: absolute;
  top: 61px;
  right: 22px;
  width: 38px;
  height: 1px;
  background: var(--gold);
  content: "";
}

.contact-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(84px, 10vw, 140px) 0;
  background: var(--forest-deep);
  color: #fff;
}

.contact-glow {
  position: absolute;
  z-index: -1;
  top: 50%;
  right: 2%;
  width: 600px;
  height: 600px;
  border: 1px solid rgba(234, 213, 170, 0.15);
  border-radius: 50%;
  transform: translateY(-50%);
}

.contact-glow::before,
.contact-glow::after {
  position: absolute;
  border: 1px solid rgba(234, 213, 170, 0.11);
  border-radius: inherit;
  content: "";
}

.contact-glow::before {
  inset: 70px;
}

.contact-glow::after {
  inset: 150px;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.7fr);
  align-items: end;
  gap: clamp(60px, 10vw, 150px);
}

.contact-grid h2 {
  max-width: 730px;
  margin: 0;
}

.contact-copy > p {
  margin-bottom: 28px;
  color: #c7d3cd;
  font-size: 17px;
}

.contact-email {
  display: block;
  width: max-content;
  margin-top: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.35);
  color: #d7e0db;
  font-size: 13px;
}

footer {
  padding: 44px 0;
  background: #0b261f;
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  gap: 36px;
}

.brand-footer .brand-mark {
  background: rgba(255,255,255,0.1);
}

.brand-footer small {
  color: #9fafaa;
}

.footer-grid > p {
  margin: 0;
  color: #aebdb7;
  font-family: var(--serif);
  font-size: 15px;
  font-style: italic;
  text-align: center;
}

.footer-grid > div {
  display: flex;
  justify-content: flex-end;
  gap: 24px;
  color: #aebdb7;
  font-size: 11px;
}

.footer-grid > div a {
  color: #fff;
}

@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  nav {
    display: none;
  }

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

  .hero-copy {
    max-width: 760px;
    padding-bottom: 10px;
  }

  .hero-composition {
    width: min(700px, 100%);
    margin: 0 auto;
  }

  .split-heading,
  .matter-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .split-heading > p {
    max-width: 720px;
  }

  .experience-grid {
    grid-template-columns: 1.15fr 0.85fr;
  }

  .experience-intro {
    grid-column: 1 / -1;
    padding: 0 0 54px;
  }

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

  .work-card-copy > a {
    grid-column: 1;
  }
}

@media (max-width: 760px) {
  .shell {
    width: min(100% - 32px, 1180px);
  }

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

  .brand strong {
    font-size: 17px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }

  .brand-cross {
    top: 8px;
    left: 16px;
    height: 13px;
  }

  .hero {
    padding-top: 62px;
  }

  h1 {
    font-size: clamp(43px, 12vw, 62px);
  }

  .hero-composition {
    min-height: 440px;
  }

  .hero-browser {
    width: 94%;
  }

  .hero-phone {
    right: -4px;
    width: 126px;
    height: 240px;
  }

  .hero-seal {
    width: 116px;
    height: 116px;
  }

  .hero-seal span {
    font-size: 41px;
  }

  .hero-principle {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 26px 0 32px;
  }

  .service-grid,
  .process-grid,
  .work-grid {
    grid-template-columns: 1fr;
  }

  .service-card,
  .service-card + .service-card {
    min-height: 0;
    padding: 30px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .service-card > span {
    margin-bottom: 30px;
  }

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

  .benefit-card:nth-child(n) {
    grid-column: auto;
    min-height: 230px;
  }

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

  .experience-stat {
    min-height: 230px;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .site-preview {
    min-height: 330px;
    padding: 26px 18px 0;
  }

  .preview-scene {
    min-height: 220px;
    padding: 25px;
  }

  .process-grid article,
  .process-grid article + article {
    padding: 32px 0;
    border-bottom: 1px solid var(--line);
    border-left: 0;
  }

  .process-grid article > span {
    margin-bottom: 26px;
  }

  .process-grid article::after {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .footer-grid > p {
    text-align: left;
  }

  .footer-grid > div {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

@media (max-width: 520px) {
  .button-small {
    min-height: 40px;
    padding: 0 13px;
    font-size: 10px;
  }

  .brand small {
    display: none;
  }

  .button-row {
    align-items: stretch;
    flex-direction: column;
  }

  .button-row .text-link {
    width: max-content;
  }

  .hero-composition {
    min-height: 365px;
  }

  .hero-browser {
    top: 16px;
    border-width: 6px;
  }

  .browser-nav {
    height: 45px;
    padding: 0 14px;
  }

  .browser-nav > span {
    width: 22px;
  }

  .browser-hero {
    min-height: 180px;
    padding: 24px;
  }

  .browser-hero strong {
    font-size: 22px;
  }

  .browser-cards {
    padding: 12px;
  }

  .hero-phone {
    bottom: 14px;
    width: 100px;
    height: 192px;
    padding: 18px 8px;
    border-width: 5px;
    border-radius: 21px;
  }

  .hero-phone .brand-mark {
    margin: 14px 0 20px;
  }

  .hero-phone strong {
    font-size: 13px;
  }

  .hero-phone > span {
    font-size: 7px;
  }

  .hero-phone > i {
    width: 64px;
    height: 25px;
    margin-top: 16px;
  }

  .hero-seal {
    bottom: 2px;
    left: -4px;
    width: 94px;
    height: 94px;
  }

  .hero-seal small {
    max-width: 70px;
    font-size: 6px;
  }

  .hero-seal span {
    font-size: 35px;
  }

  .site-preview {
    min-height: 270px;
  }

  .preview-nav {
    height: 45px;
  }

  .preview-nav span {
    width: 20px;
  }

  .preview-scene {
    min-height: 180px;
    grid-template-columns: 1fr 0.4fr;
  }

  .preview-copy strong {
    font-size: 22px;
  }

  .work-card-copy {
    padding: 28px;
  }
}

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

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