:root {
  --ink: #172019;
  --muted: #667068;
  --paper: #f6f4ed;
  --paper-deep: #ebe8dd;
  --yellow: #f5c84c;
  --yellow-light: #ffe795;
  --green: #24473c;
  --line: rgba(23, 32, 25, 0.16);
  --max-width: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 20;
  padding: 0.65rem 1rem;
  background: var(--ink);
  color: white;
  transform: translateY(-150%);
}

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

.site-header,
.hero,
.section,
footer {
  width: min(calc(100% - 3rem), var(--max-width));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 7.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-weight: 760;
  line-height: 0.92;
  letter-spacing: -0.035em;
}

.brand img {
  display: block;
}

.brand-name {
  font-size: 1.02rem;
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 3vw, 3rem);
  color: #3e4841;
  font-size: 0.9rem;
}

nav a {
  position: relative;
}

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

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

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  min-height: min(720px, calc(100vh - 7.5rem));
  padding: 4rem 0 7rem;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 1.65rem;
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero .eyebrow {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.hero .eyebrow span {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 5px rgba(245, 200, 76, 0.2);
}

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

h1 {
  max-width: 760px;
  margin-bottom: 1.8rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4rem, 7.9vw, 7.3rem);
  font-weight: 400;
  line-height: 0.83;
  letter-spacing: -0.07em;
}

h1 em {
  color: var(--green);
  font-weight: 400;
}

.hero-intro {
  max-width: 570px;
  margin-bottom: 2.3rem;
  color: #465048;
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.button {
  display: inline-flex;
  min-height: 3.2rem;
  align-items: center;
  justify-content: center;
  padding: 0 1.4rem;
  border: 1px solid var(--ink);
  font-size: 0.86rem;
  font-weight: 700;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

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

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

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--green);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: var(--yellow-light);
}

.hero-visual {
  position: relative;
  width: min(100%, 500px);
  aspect-ratio: 1;
  margin-left: auto;
  overflow: hidden;
  background: var(--yellow);
}

.sun-disc {
  position: absolute;
  top: 14%;
  right: 14%;
  display: grid;
  width: 30%;
  aspect-ratio: 1;
  place-content: center;
  border: 1px solid rgba(23, 32, 25, 0.3);
  border-radius: 50%;
  background: var(--yellow-light);
  text-align: center;
}

.sun-disc span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  letter-spacing: -0.08em;
}

.sun-disc small {
  margin-top: 0.25rem;
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.orbit {
  position: absolute;
  border: 1px solid rgba(23, 32, 25, 0.22);
  border-radius: 50%;
}

.orbit-one {
  top: -18%;
  left: -20%;
  width: 82%;
  aspect-ratio: 1;
}

.orbit-two {
  right: -35%;
  bottom: -32%;
  width: 100%;
  aspect-ratio: 1;
}

.code-card {
  position: absolute;
  right: 9%;
  bottom: 10%;
  width: 72%;
  padding: 1rem;
  background: var(--green);
  box-shadow: -1rem 1rem 0 rgba(23, 32, 25, 0.12);
  color: white;
  transform: rotate(-3deg);
}

.code-card-top {
  display: flex;
  align-items: center;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.code-card-top i {
  width: 0.38rem;
  height: 0.38rem;
  margin-right: 0.28rem;
  border-radius: 50%;
  background: var(--yellow);
}

.code-card-top span {
  margin-left: auto;
  color: rgba(255, 255, 255, 0.6);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.55rem;
}

.code-lines {
  display: grid;
  gap: 0.62rem;
  padding: 1.25rem 0.3rem 0.4rem;
}

.line {
  display: block;
  height: 0.38rem;
  background: rgba(255, 255, 255, 0.32);
}

.line-1 { width: 82%; }
.line-2 { width: 55%; margin-left: 12%; background: var(--yellow); }
.line-3 { width: 68%; margin-left: 12%; }
.line-4 { width: 42%; }

.visual-note {
  position: absolute;
  bottom: 8%;
  left: 6%;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(0.75rem, 1.4vw, 1rem);
  line-height: 1.15;
  transform: rotate(-90deg) translateY(100%);
  transform-origin: bottom left;
}

.section {
  padding: clamp(6rem, 10vw, 10rem) 0;
  border-bottom: 1px solid var(--line);
}

.section-heading {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  column-gap: 4rem;
  margin-bottom: 4.5rem;
}

.section-heading .eyebrow {
  grid-column: 1 / -1;
}

h2 {
  margin-bottom: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.8rem, 5vw, 5.2rem);
  font-weight: 400;
  line-height: 0.96;
  letter-spacing: -0.055em;
}

.section-heading > p:last-child,
.company-copy > p:last-child {
  align-self: end;
  margin-bottom: 0.25rem;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.65;
}

.service-grid {
  border-top: 1px solid var(--ink);
}

.service-card {
  display: grid;
  grid-template-columns: 4rem 1fr auto;
  gap: 1rem;
  align-items: start;
  padding: 2.2rem 0;
  border-bottom: 1px solid var(--line);
}

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

.service-number {
  padding-top: 0.35rem;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.72rem;
}

.service-card h3 {
  margin-bottom: 0.7rem;
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  letter-spacing: -0.035em;
}

.service-card p {
  max-width: 700px;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.6;
}

.service-arrow {
  display: grid;
  width: 2.7rem;
  height: 2.7rem;
  place-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 1.2rem;
  transition: background 180ms ease, transform 180ms ease;
}

.service-card:hover .service-arrow {
  background: var(--yellow);
  transform: rotate(8deg);
}

.approach {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: clamp(4rem, 10vw, 9rem);
}

blockquote {
  max-width: 620px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.6rem, 4.5vw, 4.6rem);
  line-height: 1.03;
  letter-spacing: -0.05em;
}

.approach-list {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--ink);
  list-style: none;
}

.approach-list li {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1rem;
  padding: 1.8rem 0;
  border-bottom: 1px solid var(--line);
}

.approach-list > li > span {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.7rem;
}

.approach-list h3 {
  margin-bottom: 0.5rem;
  font-size: 1.15rem;
}

.approach-list p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.company {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: clamp(4rem, 10vw, 9rem);
}

.company-copy h2 {
  margin-bottom: 2rem;
}

.company-details {
  align-self: end;
  margin: 0;
  border-top: 1px solid var(--ink);
}

.company-details div {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
}

.company-details dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.company-details dd {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.4;
}

footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  padding: 4rem 0 2rem;
}

.footer-brand {
  justify-self: start;
}

footer > p {
  justify-self: end;
  margin: 0;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.3rem;
}

.footer-meta {
  display: flex;
  grid-column: 1 / -1;
  justify-content: space-between;
  margin-top: 4rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.72rem;
}

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 4px;
}

@media (max-width: 850px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 4rem;
    padding-top: 3rem;
  }

  .hero-copy {
    max-width: 700px;
  }

  .hero-visual {
    width: min(100%, 620px);
    margin-inline: auto;
  }

  .section-heading,
  .approach,
  .company {
    grid-template-columns: 1fr;
  }

  .section-heading {
    gap: 2rem;
  }

  .approach,
  .company {
    gap: 4.5rem;
  }
}

@media (max-width: 560px) {
  .site-header,
  .hero,
  .section,
  footer {
    width: min(calc(100% - 2rem), var(--max-width));
  }

  .site-header {
    min-height: 6.5rem;
  }

  .brand-name {
    font-size: 0.9rem;
  }

  nav {
    gap: 1rem;
    font-size: 0.76rem;
  }

  nav a:nth-child(2) {
    display: none;
  }

  .hero {
    padding: 3rem 0 5rem;
  }

  h1 {
    font-size: clamp(3.5rem, 17vw, 5rem);
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-visual {
    width: 100%;
  }

  .code-card {
    width: 74%;
  }

  .section {
    padding: 5.5rem 0;
  }

  .service-card {
    grid-template-columns: 2.5rem 1fr;
  }

  .service-arrow {
    display: none;
  }

  .company-details div {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }

  footer {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  footer > p {
    justify-self: start;
  }

  .footer-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
  }
}

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

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