:root {
  --bg: #fbfaf7;
  --panel: #ffffff;
  --text: #171717;
  --muted: #646464;
  --line: #e6e1d8;
  --accent: #171717;
  --soft: #f1eee8;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

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

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1120px;
  margin: 0 auto;
  padding: 26px 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.12em;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--text);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
}

.footer-brand {
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.12em;
}

.nav {
  display: flex;
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
}

.hero {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}

.pattern {
  position: absolute;
  pointer-events: none;
  opacity: 0.58;
}

.pattern-a {
  top: 34px;
  right: max(22px, calc((100vw - 1120px) / 2));
  width: 184px;
  height: 184px;
  background:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 23px 23px;
  mask-image: radial-gradient(circle, #000 42%, transparent 70%);
}

.pattern-b {
  left: max(22px, calc((100vw - 1120px) / 2));
  bottom: 28px;
  width: 132px;
  height: 132px;
  border: 1px solid var(--line);
  background:
    repeating-linear-gradient(
      135deg,
      transparent 0,
      transparent 10px,
      var(--soft) 10px,
      var(--soft) 12px
    );
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  padding: 118px 24px 128px;
}

.hero-mark {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
}

.hero-mark span {
  display: block;
  width: 34px;
  height: 34px;
  border: 1px solid var(--text);
  border-radius: 50%;
}

.hero-mark span:nth-child(2) {
  transform: translateX(-18px);
  background: var(--soft);
}

.hero-mark span:nth-child(3) {
  transform: translateX(-36px);
  background: var(--text);
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 860px;
  margin-bottom: 22px;
  font-size: clamp(48px, 8vw, 96px);
  line-height: 0.95;
  letter-spacing: -0.06em;
  font-weight: 760;
}

.lead {
  max-width: 720px;
  margin-bottom: 0;
  color: #2b2b2b;
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: 1.22;
  letter-spacing: -0.02em;
}

.section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 72px 24px;
  border-bottom: 1px solid var(--line);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 28px;
}

h2 {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1;
  letter-spacing: -0.04em;
}

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

.work-grid article {
  min-height: 220px;
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--panel);
}

h3 {
  max-width: 260px;
  margin-bottom: 54px;
  font-size: 22px;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.work-grid p,
.split p,
.policy p {
  color: var(--muted);
  font-size: 17px;
}

.split {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 48px;
}

.split p {
  max-width: 620px;
  margin-bottom: 0;
  font-size: 22px;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.contact-section a {
  font-weight: 700;
}

.page {
  max-width: 820px;
  margin: 0 auto;
  padding: 82px 24px 96px;
}

.page h1 {
  font-size: clamp(46px, 7vw, 76px);
}

.policy {
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.policy h2 {
  margin-top: 34px;
  margin-bottom: 10px;
  font-size: 22px;
  letter-spacing: -0.02em;
}

.site-footer {
  max-width: 1120px;
  margin: 0 auto;
  padding: 36px 24px 44px;
  color: var(--muted);
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 36px;
}

.site-footer p {
  margin: 4px 0;
}

.footer-brand {
  margin-bottom: 14px;
  color: var(--text);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 18px;
}

.cookie-banner {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 10;
  display: none;
  gap: 14px;
  width: min(430px, calc(100vw - 36px));
  padding: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

.cookie-banner.is-visible {
  display: grid;
}

.cookie-banner p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.cookie-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.button {
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  padding: 10px 14px;
  border-radius: 999px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.button.secondary {
  background: #fff;
  color: var(--text);
  border-color: var(--line);
}

@media (max-width: 760px) {
  .site-header {
    align-items: flex-start;
    padding: 20px 18px;
  }

  .nav {
    gap: 14px;
    font-size: 13px;
  }

  .hero-inner {
    padding: 82px 18px 90px;
  }

  .section,
  .page,
  .site-footer {
    padding-left: 18px;
    padding-right: 18px;
  }

  .work-grid,
  .split,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .work-grid article {
    min-height: 0;
  }

  h3 {
    margin-bottom: 28px;
  }

  .split {
    gap: 18px;
  }

  .split p {
    font-size: 19px;
  }

  .cookie-actions {
    justify-content: stretch;
  }

  .button {
    flex: 1;
  }
}
