:root {
  --ink: #171512;
  --ink-soft: #504b43;
  --paper: #f3efe7;
  --paper-deep: #e8e0d4;
  --white: #fffdf9;
  --night: #12110f;
  --night-soft: #201e1a;
  --line: rgba(23, 21, 18, 0.16);
  --line-dark: rgba(255, 253, 249, 0.16);
  --accent: #a64b2a;
  --accent-bright: #cf6840;
  --accent-pale: #e8c9b9;
  --green: #5c7664;
  --display: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --shadow: 0 24px 70px rgba(35, 25, 17, 0.13);
  --shell: min(1180px, calc(100% - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { max-width: 100%; overflow-x: clip; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
p, h1, h2, h3, blockquote, figure { margin-top: 0; }
button, a { -webkit-tap-highlight-color: transparent; }
main, section, .shell, .hero-grid, .hero-grid > *, .contact-grid, .contact-grid > *, .contact-copy, .contact-actions, .footer-inner, .footer-brand { min-width: 0; }

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--white);
  color: var(--night);
  transform: translateY(-160%);
  transition: transform 160ms ease;
}
.skip-link:focus { transform: translateY(0); }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(18, 17, 15, 0.96);
  color: var(--white);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(16px);
}
.header-inner {
  min-height: 72px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}
.header-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  text-decoration: none;
}
.header-mark img { width: 34px; height: 34px; }
.site-nav {
  justify-self: start;
  display: flex;
  align-items: center;
  gap: clamp(15px, 2.4vw, 30px);
}
.site-nav a, .header-cta {
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}
.site-nav a { color: rgba(255,253,249,0.72); }
.site-nav a:hover, .site-nav a:focus-visible { color: var(--white); }
.header-cta {
  padding: 10px 15px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 999px;
}
.header-cta:hover, .header-cta:focus-visible { background: var(--white); color: var(--night); }

.hero {
  position: relative;
  overflow: hidden;
  padding: 30px 0 clamp(70px, 8vw, 112px);
  background:
    radial-gradient(circle at 82% 18%, rgba(166,75,42,0.12), transparent 26%),
    linear-gradient(135deg, var(--paper) 0%, #f8f4ed 52%, #eee5d8 100%);
}
.hero::before {
  content: "";
  position: absolute;
  width: 540px;
  height: 540px;
  right: -240px;
  bottom: -350px;
  border: 1px solid rgba(166,75,42,0.2);
  border-radius: 50%;
  box-shadow: 0 0 0 52px rgba(166,75,42,0.04), 0 0 0 108px rgba(166,75,42,0.03);
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-areas:
    "intro card"
    "details details";
  column-gap: clamp(28px, 4vw, 52px);
  row-gap: clamp(32px, 4vw, 50px);
  align-items: stretch;
}
.hero-intro {
  grid-area: intro;
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 3.6vw, 44px);
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(255,255,255,0.28);
  box-shadow: var(--shadow);
}
.eyebrow {
  margin-bottom: 18px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.5;
  text-transform: uppercase;
}
.hero-banner {
  display: flex;
  justify-content: center;
  margin: 4px 0 clamp(22px, 3vw, 32px);
}
.hero-banner img {
  display: block;
  width: 425px;
  max-width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border: 1px solid rgba(23,21,18,0.12);
  border-radius: 6px;
}
h1, h2, h3 { line-height: 1.04; }
h1 {
  max-width: 620px;
  margin: auto 0 0;
  font-family: var(--display);
  font-size: clamp(2.15rem, 4.2vw, 4.35rem);
  font-weight: 500;
  letter-spacing: -0.05em;
}
h1 em { color: var(--accent); font-weight: 400; }
.hero-details {
  grid-area: details;
  max-width: 930px;
}
.hero-lede {
  max-width: 850px;
  margin-bottom: 12px;
  color: var(--ink-soft);
  font-size: clamp(1.15rem, 1.8vw, 1.38rem);
}
.hero-lede strong { color: var(--ink); }
.hero-support {
  max-width: 820px;
  margin-bottom: 30px;
  color: var(--ink-soft);
  font-size: 1rem;
}
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease, border-color 160ms ease;
}
.button:hover, .button:focus-visible { transform: translateY(-2px); }
.button-primary { background: var(--night); color: var(--white); }
.button-primary:hover, .button-primary:focus-visible { background: var(--accent); }
.button-secondary { border-color: var(--line); background: rgba(255,255,255,0.35); }
.button-secondary:hover, .button-secondary:focus-visible { border-color: var(--ink); background: var(--white); }

.publishing-card {
  grid-area: card;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 3.6vw, 44px);
  background: var(--night);
  color: var(--white);
  border-radius: 4px;
  box-shadow: var(--shadow);
}
.publishing-card::after {
  content: "";
  position: absolute;
  inset: 11px;
  pointer-events: none;
  border: 1px solid rgba(255,255,255,0.08);
}
.publishing-quote {
  position: relative;
  z-index: 1;
  margin-bottom: 26px;
  font-family: var(--display);
  font-size: clamp(1.4rem, 2.3vw, 2rem);
  line-height: 1.25;
}
.publishing-graphic {
  position: relative;
  z-index: 1;
  margin: 0 0 22px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 5px;
  overflow: hidden;
}
.publishing-graphic img {
  width: 100%;
  height: 132px;
  object-fit: cover;
}
.focus-list {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0;
  margin: auto 0 0;
  padding: 0;
  list-style: none;
}
.focus-list li {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 12px;
  padding: 13px 0;
  border-top: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.76);
  font-size: 0.88rem;
}
.focus-list span { color: var(--accent-bright); font-family: var(--mono); font-size: 0.72rem; }

.proof { background: var(--paper-deep); border-block: 1px solid var(--line); }
.proof-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.proof-item { padding: 28px clamp(16px, 2.6vw, 32px); border-left: 1px solid var(--line); }
.proof-item:last-child { border-right: 1px solid var(--line); }
.proof-item strong { display: block; margin-bottom: 6px; font-family: var(--display); font-size: 1.18rem; line-height: 1.25; }
.proof-item span { color: var(--ink-soft); font-size: 0.78rem; line-height: 1.45; }

.section { padding: clamp(74px, 9vw, 130px) 0; }
.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.55fr);
  gap: clamp(36px, 7vw, 90px);
  align-items: end;
  margin-bottom: clamp(46px, 6vw, 76px);
}
.section-heading h2, .about-title h2, .author-grid h2, .imprint-copy h2, .contact-section h2 {
  margin-bottom: 0;
  font-family: var(--display);
  font-size: clamp(2.45rem, 5vw, 4.8rem);
  font-weight: 500;
  letter-spacing: -0.045em;
}
.section-heading > p { margin: 0; color: var(--ink-soft); font-size: 1.03rem; }
.compact-heading { margin-bottom: 42px; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.service-card {
  min-height: 340px;
  padding: clamp(28px, 3.8vw, 48px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.18);
}
.service-card.featured { background: var(--white); }
.card-banner {
  display: grid;
  grid-template-columns: auto minmax(140px, 230px);
  align-items: center;
  gap: 18px;
  margin-bottom: 42px;
}
.card-number {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.card-banner img {
  width: 100%;
  height: 46px;
  object-fit: cover;
  border: 1px solid rgba(23,21,18,0.12);
  border-radius: 5px;
}
.service-card h3 {
  margin-bottom: 18px;
  font-family: var(--display);
  font-size: clamp(1.7rem, 2.8vw, 2.4rem);
  font-weight: 500;
  letter-spacing: -0.025em;
}
.service-card > p { max-width: 580px; color: var(--ink-soft); }
.tag-list, .project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}
.tag-list li, .project-tech li {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.68rem;
}

.process-section { background: #ede6dc; border-block: 1px solid var(--line); }
.process-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.process-list li {
  min-height: 250px;
  padding: 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.process-number {
  display: block;
  margin-bottom: 48px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.process-list h3 { margin-bottom: 10px; font-family: var(--display); font-size: 1.65rem; font-weight: 500; }
.process-list p { margin-bottom: 0; color: var(--ink-soft); font-size: 0.92rem; }

.section-dark { position: relative; overflow: hidden; background: var(--night); color: var(--white); }
.section-dark::before {
  content: "";
  position: absolute;
  top: -210px;
  left: -200px;
  width: 560px;
  height: 560px;
  border: 1px solid rgba(207,104,64,0.17);
  border-radius: 50%;
  box-shadow: 0 0 0 60px rgba(207,104,64,0.025), 0 0 0 120px rgba(207,104,64,0.018);
}
.section-dark .shell { position: relative; }
.section-heading-light > p { color: rgba(255,255,255,0.65); }
.project-card {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 34px;
  padding: clamp(38px, 6vw, 70px) 0;
  border-block: 1px solid var(--line-dark);
}
.project-index { color: var(--accent-bright); font-family: var(--display); font-size: 4rem; line-height: 0.8; opacity: 0.85; }
.project-title-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 30px; align-items: start; }
.project-type { margin-bottom: 8px; color: var(--accent-bright); font-family: var(--mono); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.project-card h3 { margin-bottom: 24px; font-family: var(--display); font-size: clamp(2.5rem, 5vw, 5rem); font-weight: 500; letter-spacing: -0.045em; }
.project-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 22px; }
.project-link { padding: 10px 0; color: var(--white); text-underline-offset: 6px; font-size: 0.84rem; font-weight: 800; white-space: nowrap; }
.project-link span, .text-link span { color: var(--accent-bright); }
.project-description { max-width: 820px; margin-bottom: 0; color: rgba(255,255,255,0.68); font-size: clamp(1rem, 1.5vw, 1.13rem); }
.project-tech li { border-color: var(--line-dark); color: rgba(255,255,255,0.72); }
.why-technical {
  display: grid;
  grid-template-columns: minmax(220px, 0.5fr) minmax(0, 1.5fr);
  gap: clamp(34px, 6vw, 76px);
  margin-top: 54px;
  padding: clamp(28px, 4vw, 42px);
  border: 1px solid var(--line-dark);
  background: rgba(255,255,255,0.025);
}
.card-kicker { margin: 0; color: var(--accent-bright); font-family: var(--mono); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.why-technical h3 { margin-bottom: 16px; font-family: var(--display); font-size: clamp(1.7rem, 3vw, 2.7rem); font-weight: 500; }
.why-technical p:not(.card-kicker) { color: rgba(255,255,255,0.68); }
.why-technical p:last-child { margin-bottom: 0; }

.author-section { background: var(--paper); }
.author-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(48px, 9vw, 120px);
  align-items: start;
}
.author-copy { padding-top: 10px; }
.author-copy > p { color: var(--ink-soft); font-size: 1.05rem; }
.author-copy .author-lede { color: var(--ink); font-family: var(--display); font-size: clamp(1.45rem, 2.5vw, 2.05rem); line-height: 1.35; }
.dark-link { display: inline-block; margin-top: 10px; color: var(--ink); text-underline-offset: 6px; }

.imprint-section { background: #ded2c1; border-block: 1px solid var(--line); }
.imprint-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.65fr) minmax(0, 1.35fr);
  gap: clamp(42px, 8vw, 100px);
  align-items: center;
}
.imprint-mark { display: grid; place-items: center; }
.imprint-mark img { width: min(390px, 100%); height: auto; filter: drop-shadow(0 12px 28px rgba(35,25,17,0.12)); }
.imprint-copy > p:not(.eyebrow) { max-width: 760px; color: var(--ink-soft); font-size: 1.06rem; }
.imprint-copy .imprint-status { margin-top: 26px; color: var(--ink); font-family: var(--mono); font-size: 0.77rem; font-weight: 700; }

.about-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(50px, 10vw, 140px); }
.about-title { position: sticky; top: 125px; align-self: start; }
.about-copy { padding-top: 36px; }
.about-copy > p { color: var(--ink-soft); font-size: 1.05rem; }
.about-copy .about-lede { color: var(--ink); font-family: var(--display); font-size: clamp(1.45rem, 2.5vw, 2.05rem); line-height: 1.35; }
.about-copy blockquote { margin: 44px 0 0; padding: 28px 0 0 30px; border-top: 1px solid var(--line); border-left: 4px solid var(--accent); }
.about-copy blockquote p { margin: 0; font-family: var(--display); font-size: clamp(1.25rem, 2.1vw, 1.75rem); line-height: 1.4; }

.contact-section { padding: clamp(76px, 9vw, 124px) 0; background: var(--accent); color: var(--white); }
.contact-section .eyebrow { color: #f3d3c4; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.65fr); gap: clamp(40px, 8vw, 100px); align-items: end; }
.contact-copy > p { color: rgba(255,255,255,0.82); font-size: 1.04rem; overflow-wrap: anywhere; }
.contact-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; width: 100%; }
.contact-actions > p { margin: 0; max-width: 100%; }
.button-light { background: var(--white); color: var(--night); }
.button-light:hover, .button-light:focus-visible { background: var(--night); color: var(--white); }
.text-link { color: var(--white); font-weight: 800; text-underline-offset: 6px; }
.location { margin: 24px 0 0; font-family: var(--mono); font-size: 0.72rem !important; letter-spacing: 0.04em; }

.site-footer { padding: 28px 0; background: var(--night); color: rgba(255,255,255,0.62); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 30px; }
.footer-brand { display: flex; align-items: center; gap: 16px; }
.footer-brand img { width: 34px; opacity: 0.9; }
.footer-brand p, .footer-inner > p { margin: 0; font-size: 0.72rem; overflow-wrap: anywhere; }

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

@media (max-width: 1050px) {
  .site-nav { gap: 16px; }
  .site-nav a, .header-cta { font-size: 0.72rem; }
  .process-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .header-inner { grid-template-columns: auto minmax(0, 1fr) auto; }
  .hero-grid, .section-heading, .about-grid, .author-grid, .imprint-grid, .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-grid {
    grid-template-areas:
      "intro"
      "details"
      "card";
    gap: 34px;
  }
  .hero-intro, .publishing-card { max-width: 700px; }
  .hero-details { max-width: 780px; }
  .proof-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proof-item:nth-child(3), .proof-item:nth-child(4) { border-top: 1px solid var(--line); }
  .about-title { position: static; }
  .about-copy { padding-top: 0; }
  .imprint-mark { justify-items: start; }
  .imprint-mark img { width: min(360px, 72vw); }
  .contact-grid { align-items: start; }
  .why-technical { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .contact-actions { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .contact-actions > p { flex: 0 1 auto; min-width: 0; }
}

@media (max-width: 700px) {
  :root { --shell: min(100% - 28px, 1180px); }
  .site-header { position: static; }
  .header-inner { grid-template-columns: auto minmax(0, 1fr); min-height: 64px; gap: 12px; }
  .header-mark { width: 42px; height: 42px; }
  .header-mark img { width: 28px; height: 28px; }
  .site-nav { gap: 16px; overflow-x: auto; padding: 4px 0; scrollbar-width: none; }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav a { font-size: 0.65rem; white-space: nowrap; }
  .header-cta { display: none; }

  .hero { padding-top: 28px; }
  .hero-intro { padding: 24px; }
  .hero-banner img { width: min(425px, 100%); }
  h1 { font-size: clamp(2.25rem, 11vw, 3.3rem); }
  .hero-actions .button { width: 100%; }
  .publishing-graphic img { height: auto; aspect-ratio: 3 / 1; }

  .proof-grid { grid-template-columns: minmax(0, 1fr); }
  .proof-item, .proof-item:last-child { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .proof-item:not(:first-child) { border-top: 0; }

  .section-heading h2, .about-title h2, .author-grid h2, .imprint-copy h2, .contact-section h2 {
    font-size: clamp(2.05rem, 10vw, 3rem);
    line-height: 1.05;
    overflow-wrap: anywhere;
  }
  .services-grid { grid-template-columns: minmax(0, 1fr); }
  .service-card { min-height: 0; }
  .card-banner { grid-template-columns: auto minmax(88px, 1fr); margin-bottom: 30px; }
  .card-banner img { height: 40px; }

  .process-list { grid-template-columns: minmax(0, 1fr); }
  .process-list li { min-height: 0; }
  .process-number { margin-bottom: 28px; }

  .project-card { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .project-index { font-size: 2.8rem; }
  .project-title-row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .project-card h3 { margin-bottom: 10px; }
  .project-links { justify-content: flex-start; margin-bottom: 18px; }
  .project-link { white-space: normal; }
  .why-technical { padding: 24px; }

  .contact-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    gap: 12px 16px;
    width: 100%;
    overflow: visible;
  }
  .contact-actions > p { min-width: 0; max-width: 100%; }
  .contact-actions > p:first-child { grid-column: 1 / -1; }
  .contact-actions .button {
    width: 100%;
    max-width: 100%;
    padding-inline: 14px;
    overflow-wrap: anywhere;
  }
  .contact-actions .text-link {
    display: inline-block;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-brand { align-items: flex-start; }
}

@media (max-width: 380px) {
  .contact-actions { grid-template-columns: minmax(0, 1fr); }
  .contact-actions > p:first-child { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}
