:root {
  --paper: #f2f5f7;
  --paper-soft: rgba(242, 245, 247, 0.82);
  --paper-strong: rgba(255, 255, 255, 0.72);
  --shadow: #c8d0d6;
  --ink: #1b2430;
  --surface: #2d3a48;
  --primary: #7fa9c4;
  --accent: #3e5c50;
  --line: #aeb8bf;
  --deep: #0e0e0e;
  --white: #ffffff;
  --texture: url("assets/noemara-winter-ridge-texture.jpg");
  --max: 1180px;
  --font-brand: "STIX Two Text", Georgia, serif;
  --font-mono: "JetBrains Mono", Menlo, Consolas, monospace;
  --shadow-paper: 0 22px 80px rgba(27, 36, 48, 0.14);
  --shadow-panel: 0 24px 90px rgba(27, 36, 48, 0.24);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(242, 245, 247, 0.16), rgba(242, 245, 247, 0.78)),
    var(--texture) center top / 1536px auto repeat-y,
    var(--paper);
  color: var(--ink);
  font-family: var(--font-brand);
  text-rendering: geometricPrecision;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 12% 8%, rgba(127, 169, 196, 0.2), transparent 28%),
    radial-gradient(circle at 88% 16%, rgba(62, 92, 80, 0.16), transparent 26%),
    linear-gradient(90deg, rgba(242, 245, 247, 0.18), rgba(242, 245, 247, 0.64) 48%, rgba(242, 245, 247, 0.24));
  content: "";
  pointer-events: none;
}

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

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

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(242, 245, 247, 0.78);
  border-bottom: 1px solid rgba(27, 36, 48, 0.14);
  backdrop-filter: blur(16px);
}

.header-inner,
.page-grid,
.proof-strip,
.work-section,
.ai-agent-section,
.highlight-grid,
.gallery,
.services-section,
.contact,
.site-footer {
  width: min(var(--max), calc(100% - 40px));
  margin-right: auto;
  margin-left: auto;
}

.header-inner {
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 700;
}

.brand img {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(27, 36, 48, 0.18);
  border-radius: 999px;
  object-fit: cover;
}

.nav {
  display: flex;
  gap: 24px;
  color: rgba(27, 36, 48, 0.68);
  font-size: 15px;
  font-weight: 600;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--ink);
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  padding: 10px 18px;
  font-weight: 650;
}

.button-primary {
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 12px 30px rgba(27, 36, 48, 0.2);
}

.button-quiet {
  background: rgba(242, 245, 247, 0.64);
  border: 1px solid rgba(27, 36, 48, 0.18);
  color: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 56px;
  align-items: center;
  padding: 104px 0 74px;
}

.hero-copy h1 {
  margin: 22px 0 0;
  font-size: clamp(58px, 8vw, 118px);
  font-weight: 500;
  line-height: 0.92;
  letter-spacing: -0.03em;
}

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

.label {
  margin: 0;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.label-light {
  color: var(--primary);
}

.lead {
  max-width: 640px;
  margin: 30px 0 0;
  color: rgba(27, 36, 48, 0.78);
  font-size: 22px;
  line-height: 1.55;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.portrait-panel,
.proof-strip,
.ai-agent-panel,
.highlight-grid article,
.service-card,
.work-row,
.contact,
.gallery-item img {
  box-shadow: var(--shadow-paper);
}

.portrait-panel {
  display: grid;
  gap: 18px;
  padding: 28px;
  background: var(--paper-soft);
  border: 1px solid rgba(27, 36, 48, 0.16);
  border-radius: 36px;
  backdrop-filter: blur(2px);
}

.portrait-frame {
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--shadow);
  border: 1px solid rgba(27, 36, 48, 0.18);
  border-radius: 28px;
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.04);
}

.portrait-note {
  display: grid;
  gap: 8px;
  padding-top: 18px;
  border-top: 1px solid rgba(27, 36, 48, 0.14);
}

.portrait-note p {
  margin: 0;
  color: rgba(27, 36, 48, 0.72);
  font-size: 17px;
  line-height: 1.5;
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(27, 36, 48, 0.16);
  border-radius: 26px;
  backdrop-filter: blur(2px);
}

.proof-strip div {
  min-height: 142px;
  padding: 22px;
  border-right: 1px solid rgba(27, 36, 48, 0.12);
}

.proof-strip div:last-child {
  border-right: 0;
}

.proof-strip strong,
.proof-strip span {
  display: block;
}

.proof-strip strong {
  color: var(--ink);
  font-size: 38px;
  font-weight: 500;
  line-height: 1;
}

.proof-strip span {
  margin-top: 18px;
  color: rgba(27, 36, 48, 0.7);
  font-size: 15px;
  line-height: 1.4;
}

.section {
  padding: 96px 0 0;
}

.page-grid {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 56px;
}

.section-aside {
  padding-top: 10px;
}

.section-main h2,
.section-head h2,
.archive-copy h2,
.contact h2 {
  margin: 0;
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
}

.body-large {
  max-width: 820px;
  margin: 26px 0 0;
  color: rgba(27, 36, 48, 0.76);
  font-size: 21px;
  line-height: 1.68;
}

.section-head {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 56px;
  align-items: end;
  margin-bottom: 28px;
}

.ai-agent-panel {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 28px;
  padding: 28px;
  background: rgba(242, 245, 247, 0.76);
  border: 1px solid rgba(27, 36, 48, 0.16);
  border-radius: 36px;
  backdrop-filter: blur(2px);
}

.ai-agent-slot {
  min-height: 520px;
  background:
    linear-gradient(rgba(242, 245, 247, 0.16), rgba(242, 245, 247, 0.34)),
    var(--texture) center / cover;
  border: 1px solid rgba(27, 36, 48, 0.16);
  border-radius: 28px;
}

.ai-agent-slot img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  border-radius: 26px;
  object-fit: cover;
  object-position: center center;
  filter: saturate(0.88) contrast(1.04);
}

.ai-agent-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 18px 10px;
}

.ai-agent-copy h3 {
  max-width: 720px;
  margin: 18px 0 0;
  font-size: clamp(34px, 4vw, 56px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.ai-agent-copy > p:not(.label) {
  max-width: 760px;
  margin: 24px 0 0;
  color: rgba(27, 36, 48, 0.74);
  font-size: 19px;
  line-height: 1.62;
}

.ai-proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 28px;
}

.ai-proof-grid article {
  min-height: 210px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(27, 36, 48, 0.14);
  border-radius: 22px;
}

.ai-proof-grid span,
.highlight-grid span,
.service-card span {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ai-proof-grid strong {
  display: block;
  margin-top: 24px;
  color: var(--ink);
  font-size: 25px;
  font-weight: 500;
}

.ai-proof-grid p {
  margin: 12px 0 0;
  color: rgba(27, 36, 48, 0.72);
  font-size: 16px;
  line-height: 1.52;
}

.archive-band {
  position: relative;
  margin-top: 96px;
  padding: 78px 0;
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
}

.archive-band::before {
  position: absolute;
  inset: 0;
  background: var(--texture) center / cover;
  content: "";
  opacity: 0.22;
  mix-blend-mode: screen;
}

.archive-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 0.88fr;
  gap: 34px;
  align-items: center;
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.archive-copy p:not(.label) {
  max-width: 580px;
  margin: 22px 0 0;
  color: rgba(242, 245, 247, 0.78);
  font-size: 19px;
  line-height: 1.55;
}

.proof-card {
  overflow-x: auto;
  margin: 0;
  padding: 24px;
  background: rgba(14, 14, 14, 0.5);
  border: 1px solid rgba(127, 169, 196, 0.42);
  border-radius: 24px;
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.8;
  box-shadow: var(--shadow-panel);
}

.highlight-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding: 76px 0 0;
}

.highlight-grid article,
.service-card,
.work-row,
.contact {
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(27, 36, 48, 0.14);
  border-radius: 24px;
  backdrop-filter: blur(2px);
}

.highlight-grid article {
  min-height: 230px;
  padding: 24px;
}

.highlight-grid h3,
.service-card h3 {
  margin: 28px 0 12px;
  font-size: 30px;
  font-weight: 500;
  line-height: 1.08;
}

.highlight-grid p,
.service-card p {
  margin: 0;
  color: rgba(27, 36, 48, 0.72);
  font-size: 17px;
  line-height: 1.52;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  padding: 28px 0 0;
}

.gallery-item {
  display: block;
  width: 100%;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 18px;
  cursor: zoom-in;
}

.gallery-item:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 4px;
}

.gallery img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border: 1px solid rgba(27, 36, 48, 0.14);
  border-radius: 18px;
  filter: saturate(0.82) contrast(1.03);
}

.lightbox {
  width: min(94vw, 1180px);
  max-width: 1180px;
  padding: 18px;
  background: rgba(27, 36, 48, 0.96);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.55);
}

.lightbox::backdrop {
  background: rgba(14, 14, 14, 0.72);
}

.lightbox img {
  width: 100%;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 16px;
}

.lightbox-close {
  display: block;
  margin: 0 0 12px auto;
  padding: 10px 14px;
  background: var(--primary);
  border: 0;
  border-radius: 12px;
  color: var(--ink);
  cursor: pointer;
  font-weight: 700;
}

.services-intro {
  max-width: 760px;
  margin: 0 0 24px 316px;
  color: rgba(27, 36, 48, 0.74);
  font-size: 19px;
  line-height: 1.6;
}

.service-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.service-card {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 20px;
  min-height: 230px;
  padding: 18px;
}

.service-card-wide {
  grid-column: 1 / -1;
}

.service-card img {
  width: 100%;
  height: 100%;
  min-height: 194px;
  object-fit: cover;
  border-radius: 18px;
  filter: saturate(0.82) contrast(1.03);
}

.work-list {
  display: grid;
  gap: 16px;
}

.work-row {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 56px;
  padding: 30px;
}

.work-date {
  color: rgba(27, 36, 48, 0.64);
  font-family: var(--font-mono);
  font-size: 13px;
}

.work-body h3 {
  margin: 0;
  font-size: 34px;
  font-weight: 500;
}

.role {
  margin: 7px 0 18px;
  color: var(--accent);
  font-size: 18px;
  font-weight: 600;
}

.work-body ul {
  max-width: 760px;
  margin: 0;
  padding-left: 18px;
  color: rgba(27, 36, 48, 0.72);
  font-size: 17px;
  line-height: 1.64;
}

.contact {
  margin-top: 98px;
  padding: 48px;
}

.contact h2 {
  margin-top: 18px;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.contact-links a {
  padding: 12px 16px;
  background: var(--ink);
  border-radius: 14px;
  color: var(--paper);
  font-weight: 700;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 54px 0 48px;
  color: rgba(27, 36, 48, 0.62);
  font-family: var(--font-mono);
  font-size: 13px;
}

@media (max-width: 980px) {
  .header-inner,
  .hero,
  .page-grid,
  .section-head,
  .archive-inner,
  .ai-agent-panel,
  .work-row {
    grid-template-columns: 1fr;
  }

  .header-inner {
    align-items: flex-start;
    padding: 16px 0;
  }

  .nav {
    display: none;
  }

  .hero {
    padding-top: 74px;
  }

  .proof-strip,
  .highlight-grid,
  .service-list {
    grid-template-columns: 1fr;
  }

  .proof-strip div {
    border-right: 0;
    border-bottom: 1px solid rgba(27, 36, 48, 0.12);
  }

  .proof-strip div:last-child {
    border-bottom: 0;
  }

  .services-intro {
    margin-left: 0;
  }

  .service-card,
  .gallery {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 620px) {
  .header-inner,
  .page-grid,
  .proof-strip,
  .work-section,
  .ai-agent-section,
  .highlight-grid,
  .gallery,
  .services-section,
  .contact,
  .site-footer {
    width: min(100% - 28px, var(--max));
  }

  .hero-copy h1 {
    font-size: clamp(56px, 18vw, 78px);
  }

  .lead,
  .body-large {
    font-size: 18px;
  }

  .portrait-panel,
  .ai-agent-panel,
  .contact {
    padding: 18px;
    border-radius: 26px;
  }

  .ai-proof-grid,
  .gallery,
  .service-card {
    grid-template-columns: 1fr;
  }

  .gallery img {
    height: 240px;
  }

  .site-footer {
    flex-direction: column;
  }
}
