:root {
  --page-bg: #ecebea;
  --page-bg-soft: #f3f2f1;
  --panel-bg: #f6f5f4;
  --panel-line: #d8d6d2;
  --text: #0f0f0f;
  --muted: #9b9b9b;
  --accent: #ff6f2f;
  --shadow: 0 28px 48px rgba(18, 18, 18, 0.08);
  --radius-lg: 30px;
  --radius-md: 22px;
  --radius-sm: 14px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background: var(--page-bg);
  overflow-x: hidden;
}

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

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

button,
input {
  font: inherit;
}

svg {
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cookie-slot:empty {
  display: none;
}

.editorial-page {
  max-width: 1440px;
  margin: 0 auto;
  background:
    linear-gradient(90deg, transparent calc(50% - 1px), rgba(216, 214, 210, 0.68) calc(50% - 1px), rgba(216, 214, 210, 0.68) calc(50% + 1px), transparent calc(50% + 1px)),
    linear-gradient(180deg, transparent 0, transparent 77.5%, rgba(216, 214, 210, 0.68) 77.5%, rgba(216, 214, 210, 0.68) 77.7%, transparent 77.7%);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.08fr 0.76fr 0.26fr;
  grid-template-rows: 108px auto;
  min-height: 1170px;
  background:
    linear-gradient(90deg, transparent calc(26.5% - 1px), rgba(216, 214, 210, 0.68) calc(26.5% - 1px), rgba(216, 214, 210, 0.68) calc(26.5% + 1px), transparent calc(26.5% + 1px)),
    linear-gradient(180deg, transparent calc(58.2% - 1px), rgba(216, 214, 210, 0.68) calc(58.2% - 1px), rgba(216, 214, 210, 0.68) calc(58.2% + 1px), transparent calc(58.2% + 1px)),
    var(--panel-bg);
  overflow: hidden;
}

.hero-grid__topbar {
  grid-column: 1;
  grid-row: 1;
  background: linear-gradient(180deg, #b8b7b7, #b1b1b1);
}

.hero-grid__topbar--light {
  grid-column: 2;
  background: #dedddb;
}

.hero-grid__topbar--lighter {
  grid-column: 3;
  background: #eceae8;
}

.editorial-header {
  position: absolute;
  inset: 108px 0 auto;
  z-index: 4;
  display: grid;
  grid-template-columns: 1.08fr 0.76fr 0.26fr;
  align-items: start;
  min-height: 110px;
  border-top: 1px solid rgba(216, 214, 210, 0.74);
}

.editorial-brand {
  grid-column: 1;
  padding: 26px 0 0 34px;
}

.editorial-brand__mark {
  display: inline-flex;
  align-items: baseline;
  font-size: 2rem;
  font-weight: 500;
  letter-spacing: -0.06em;
}

.editorial-brand__mark span {
  color: var(--accent);
}

.editorial-nav {
  grid-column: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 68px;
  margin: 48px 0 0;
}

.editorial-nav a,
.hero-note p {
  font-size: 1.05rem;
  font-weight: 500;
}

.hero-note {
  grid-column: 3;
  justify-self: start;
  align-self: start;
  display: flex;
  width: 138px;
  margin-top: 150px;
}

.hero-note p {
  margin: 0;
  text-align: left;
  line-height: 1.4;
}

.menu-toggle {
  position: absolute;
  top: 42px;
  right: 48px;
  z-index: 6;
  display: grid;
  gap: 6px;
  width: 40px;
  height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
}

.menu-toggle span {
  width: 34px;
  height: 2px;
  margin-left: auto;
  background: #161616;
}

.menu-toggle span:first-child {
  width: 22px;
  background: var(--accent);
}

.hero-copy,
.hero-visual {
  position: relative;
  z-index: 3;
}

.hero-copy {
  grid-column: 1 / 3;
  grid-row: 2;
  padding: 146px 0 62px 34px;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(7.2rem, 10.4vw, 9.8rem);
  font-weight: 400;
  letter-spacing: -0.09em;
  line-height: 0.86;
  position: relative;
  z-index: 5;
  max-width: 1220px;
}

.hero-copy h1 span {
  display: block;
  white-space: nowrap;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 40px;
}

.button-primary,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 62px;
  padding: 0 28px;
  border-radius: 999px;
  font-size: 1.05rem;
  font-weight: 600;
}

.button-primary {
  background: #080808;
  color: #fff;
}

.button-primary svg {
  color: var(--accent);
}

.button-secondary {
  border: 1.5px solid rgba(15, 15, 15, 0.36);
  background: rgba(255, 255, 255, 0.52);
}

.hero-description {
  margin: 42px 0 0;
  font-size: 1.05rem;
  line-height: 1.48;
}

.thumb-strip {
  display: flex;
  gap: 14px;
  margin-top: 44px;
}

.thumb-strip img {
  width: 148px;
  height: 148px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.hero-visual {
  grid-column: 2;
  grid-row: 2;
  align-self: start;
  justify-self: start;
  width: min(100%, 535px);
  margin-top: 122px;
  margin-left: -4px;
}

.hero-visual img {
  height: 732px;
  object-fit: cover;
}

.scroll-pill {
  position: absolute;
  right: 36px;
  bottom: 108px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 112px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 18px 32px rgba(255, 111, 47, 0.2);
}

.difference-grid {
  display: grid;
  grid-template-columns: 0.93fr 1.07fr;
  gap: 82px;
  padding: 72px 36px 54px;
  background:
    linear-gradient(90deg, rgba(216, 214, 210, 0.68) calc(29.7% - 1px), transparent calc(29.7% - 1px)),
    linear-gradient(180deg, rgba(216, 214, 210, 0.68) 0, rgba(216, 214, 210, 0.68) 1px, transparent 1px),
    var(--panel-bg);
}

.difference-grid__image {
  padding-top: 86px;
}

.difference-grid__image img {
  max-width: 480px;
  box-shadow: var(--shadow);
}

.difference-grid__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 82px;
}

.difference-grid__content h2 {
  margin: 0;
  font-size: clamp(3.4rem, 5vw, 5rem);
  font-weight: 400;
  letter-spacing: -0.06em;
  line-height: 1.18;
}

.difference-grid__content h2 span {
  display: inline;
}

.difference-grid__content .ink {
  color: #181818;
}

.difference-grid__content .muted {
  color: #9d9d9d;
}

.stats-row {
  display: flex;
  width: 100%;
  margin-top: 68px;
}

.stat-card {
  flex: 1 1 0;
  padding-right: 28px;
  border-right: 1px solid rgba(15, 15, 15, 0.18);
}

.stat-card + .stat-card {
  padding-left: 34px;
}

.stat-card--last {
  border-right: 0;
}

.stat-card strong {
  display: block;
  font-size: clamp(4rem, 6vw, 4.7rem);
  font-weight: 400;
  letter-spacing: -0.08em;
}

.stat-card strong span {
  color: var(--accent);
}

.stat-card p {
  margin: 10px 0 0;
  color: #777;
  font-size: 0.98rem;
}

.button-primary--about {
  margin-top: 72px;
  margin-left: auto;
}

.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.subpage-shell {
  min-height: 100vh;
  background: var(--panel-bg);
  color: var(--text);
}

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

.subpage-header,
.subpage-two-col,
.portfolio-grid,
.contact-strip {
  display: flex;
}

.subpage-header {
  align-items: center;
  justify-content: space-between;
  padding: 28px 0;
}

.brand.line-brand,
.brand-copy {
  display: flex;
}

.brand.line-brand {
  align-items: center;
}

.brand-copy {
  flex-direction: column;
  gap: 4px;
}

.brand-copy strong {
  font-size: 1.3rem;
  font-weight: 700;
}

.brand-copy small,
.subpage-copy p,
.portfolio-card p,
.contact-strip p,
.subpage-hero p,
.back-link {
  color: #666;
}

.back-link {
  font-weight: 600;
}

.subpage-hero,
.subpage-section {
  padding: 54px 0;
}

.section-label {
  margin: 0 0 14px;
  color: #8f8f8f;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 700;
}

.subpage-hero h1,
.subpage-title {
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  font-weight: 500;
  letter-spacing: -0.05em;
}

.subpage-hero p,
.subpage-copy p,
.portfolio-card p,
.contact-strip p {
  font-size: 1.02rem;
  line-height: 1.7;
}

.subpage-two-col {
  gap: 56px;
}

.subpage-two-col > * {
  flex: 1 1 0;
}

.portfolio-grid {
  flex-wrap: wrap;
  gap: 22px;
}

.portfolio-card {
  flex: 1 1 calc(33.333% - 16px);
  min-width: 280px;
  overflow: hidden;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 18px 36px rgba(18, 18, 18, 0.06);
}

.portfolio-card img {
  height: 300px;
  object-fit: cover;
}

.portfolio-card div {
  padding: 18px 18px 22px;
}

.portfolio-card h3 {
  margin: 0 0 8px;
  font-size: 1.3rem;
}

.contact-strip {
  gap: 18px;
  flex-wrap: wrap;
}

.outline-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 22px;
  border: 1px solid rgba(15, 15, 15, 0.18);
  border-radius: 999px;
  background: #fff;
  font-weight: 600;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    grid-template-rows: 88px auto;
    min-height: auto;
    background: var(--panel-bg);
  }

  .hero-grid__topbar,
  .hero-grid__topbar--light,
  .hero-grid__topbar--lighter {
    grid-column: 1;
    background: #dddcd9;
  }

  .editorial-header {
    position: relative;
    inset: auto;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 24px;
    min-height: auto;
    padding: 28px 26px 0;
    border-top: 0;
  }

  .editorial-nav {
    display: none;
    position: absolute;
    top: 92px;
    left: 26px;
    right: 26px;
    z-index: 6;
    flex-direction: column;
    gap: 18px;
    padding: 24px;
    border: 1px solid rgba(15, 15, 15, 0.08);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
  }

  .editorial-nav.is-open {
    display: flex;
  }

  .menu-toggle {
    position: static;
    order: 3;
  }

  .hero-note {
    position: static;
    justify-content: flex-start;
    width: auto;
    padding-right: 0;
  }

  .hero-copy,
  .hero-visual {
    grid-column: 1;
  }

  .hero-copy {
    padding: 42px 26px 34px;
  }

  .hero-copy h1 {
    font-size: clamp(4.8rem, 18vw, 7rem);
  }

  .hero-actions {
    flex-wrap: wrap;
  }

  .thumb-strip {
    flex-wrap: wrap;
  }

  .hero-visual {
    width: auto;
    margin: 0 26px 80px;
  }

  .hero-visual img {
    height: auto;
    max-height: 760px;
  }

  .scroll-pill {
    right: 26px;
    bottom: 26px;
  }

  .difference-grid {
    grid-template-columns: 1fr;
    gap: 26px;
    padding: 52px 26px 42px;
  }

  .difference-grid__image,
  .difference-grid__content {
    padding-top: 0;
  }

  .difference-grid__image img {
    max-width: none;
  }

  .button-primary--about {
    margin-left: 0;
  }
}

@media (max-width: 720px) {
  .editorial-page {
    background: var(--panel-bg);
  }

  .editorial-brand__mark {
    font-size: 1.7rem;
  }

  .hero-copy h1 {
    font-size: 4.1rem;
    line-height: 0.92;
  }

  .button-primary,
  .button-secondary {
    width: 100%;
  }

  .thumb-strip img {
    width: calc(33.333% - 10px);
    min-width: 88px;
    height: 112px;
  }

  .scroll-pill {
    width: 50px;
    height: 96px;
  }

  .difference-grid__content h2 {
    font-size: 2.4rem;
  }

  .stats-row {
    flex-direction: column;
    gap: 26px;
  }

  .stat-card,
  .stat-card + .stat-card {
    padding: 0;
    border-right: 0;
    border-top: 1px solid rgba(15, 15, 15, 0.12);
    padding-top: 22px;
  }

  .subpage-two-col {
    flex-direction: column;
  }

  .portfolio-card {
    min-width: 100%;
  }
}
