:root {
  --paper: #f5f1e8;
  --paper-deep: #e7decf;
  --ink: #191816;
  --muted: #666057;
  --line: #d7cdbc;
  --white: #ffffff;
  --ochre: #a9782c;
  --red: #b94734;
  --green: #4f6c48;
  --blue: #2f6688;
  --shadow: 0 24px 70px rgba(25, 24, 22, 0.16);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    linear-gradient(rgba(245, 241, 232, 0.92), rgba(245, 241, 232, 0.98)),
    url("assets/parabole-bg.jpg") center / cover fixed;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
}

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 20;
  transform: translateY(-160%);
  background: var(--ink);
  color: var(--white);
  padding: 10px 14px;
  text-decoration: none;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 78px;
  padding: 16px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(25, 24, 22, 0.12);
  background: rgba(245, 241, 232, 0.88);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  width: clamp(136px, 18vw, 190px);
}

.brand img {
  width: 100%;
  height: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 38px);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.main-nav a {
  position: relative;
  text-decoration: none;
  color: var(--muted);
}

.main-nav a::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  background: var(--red);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.main-nav a:hover,
.main-nav a:focus,
.main-nav a[aria-current="page"] {
  color: var(--ink);
}

.main-nav a:hover::after,
.main-nav a:focus::after,
.main-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  padding: 9px 12px;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-band {
  width: 100%;
}

.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: min(760px, 78svh);
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(25, 24, 22, 0.72), rgba(25, 24, 22, 0.42), rgba(25, 24, 22, 0.06)),
    url("assets/parabole-bg.jpg") center / cover;
  color: var(--white);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(720px, calc(100% - 36px));
  margin-left: clamp(18px, 8vw, 110px);
  padding: clamp(54px, 8vw, 94px) 0;
}

.eyebrow,
.section-kicker,
.project-type {
  margin: 0 0 12px;
  color: var(--ochre);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #eac783;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 0.98;
  letter-spacing: 0;
}

h1 {
  max-width: 12ch;
  font-size: clamp(3.2rem, 10vw, 9.5rem);
  font-weight: 900;
}

h2 {
  font-size: clamp(2.2rem, 6vw, 5.4rem);
  font-weight: 900;
}

h3 {
  font-size: clamp(1.35rem, 2.6vw, 2.15rem);
  font-weight: 900;
}

.hero-copy {
  max-width: 620px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.12rem, 2vw, 1.45rem);
}

.hero-actions,
.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  margin-top: 32px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border-bottom: 2px solid currentColor;
  color: currentColor;
  font-weight: 800;
  text-decoration: none;
}

.text-link::after {
  margin-left: 10px;
  content: ">";
  transition: transform 160ms ease;
}

.text-link:hover::after,
.text-link:focus::after {
  transform: translateX(4px);
}

.text-link.strong {
  color: #ffd081;
}

.hero-media {
  position: absolute;
  right: clamp(10px, 6vw, 86px);
  bottom: clamp(24px, 6vw, 72px);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.15fr);
  grid-template-rows: clamp(170px, 15vw, 230px) clamp(190px, 17vw, 260px);
  gap: 16px;
  width: min(52vw, 620px);
  opacity: 0.95;
  transform: rotate(-2deg);
}

.hero-media img {
  width: 100%;
  height: 100%;
  border: 8px solid rgba(255, 255, 255, 0.92);
  background: var(--white);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.3);
  object-fit: cover;
}

.hero-media img:nth-child(1) {
  grid-column: 1 / 3;
  transform: rotate(1.5deg);
}

.hero-media img:nth-child(2) {
  transform: translate(10px, 20px) rotate(-4.5deg);
}

.hero-media img:nth-child(3) {
  transform: translate(-6px, -12px) rotate(4deg);
}

.intro,
.references-page,
.contact-page,
.detail-page,
.not-found {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(56px, 8vw, 112px) clamp(18px, 4vw, 42px);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1.2fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}

.intro-copy {
  font-size: clamp(1.35rem, 3vw, 2.55rem);
  font-weight: 800;
  line-height: 1.08;
}

.intro-copy p {
  margin: 0;
}

.service-list {
  display: grid;
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--line);
  background: var(--line);
}

.service-list li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 16px;
  align-items: start;
  padding: 20px;
  background: rgba(255, 255, 255, 0.56);
}

.service-list span {
  color: var(--red);
  font-weight: 900;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(280px, 0.42fr);
  gap: clamp(24px, 5vw, 66px);
  align-items: end;
  margin-bottom: clamp(30px, 6vw, 64px);
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

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

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

.reference-card {
  position: relative;
  display: grid;
  min-height: 100%;
  overflow: hidden;
  border: 1px solid rgba(25, 24, 22, 0.12);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 10px 34px rgba(25, 24, 22, 0.08);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.reference-card:hover,
.reference-card:focus {
  border-color: rgba(185, 71, 52, 0.52);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.reference-card figure {
  margin: 0;
}

.reference-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.reference-card-body {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.reference-card h3 {
  font-size: clamp(1.22rem, 2vw, 1.6rem);
  line-height: 1.08;
}

.reference-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.card-meta span {
  border: 1px solid var(--line);
  padding: 4px 8px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.page-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(300px, 0.48fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  margin-bottom: clamp(34px, 7vw, 84px);
}

.page-hero > div {
  min-width: 0;
}

.page-hero h1 {
  max-width: 13ch;
  font-size: clamp(2.45rem, 5vw, 4.9rem);
  line-height: 1.02;
}

.page-hero p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: clamp(1.06rem, 2vw, 1.28rem);
}

.page-hero img,
.detail-image img {
  width: 100%;
  border-radius: 8px;
  box-shadow: var(--shadow);
  object-fit: cover;
}

.page-hero img {
  aspect-ratio: 1 / 1;
  max-height: 460px;
}

.contact-layout {
  width: 100%;
}

.prose {
  color: var(--ink);
  font-size: 1.05rem;
}

.prose p {
  margin: 0 0 1em;
}

.prose strong {
  font-weight: 900;
}

.prose em {
  color: var(--ochre);
}

.prose ul {
  margin: 0.5rem 0 1.2rem;
  padding-left: 1.15rem;
}

.contact-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 32px;
  border: 1px solid var(--line);
  background: var(--line);
}

.contact-item {
  min-height: 118px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.62);
}

.contact-item b {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact-item a {
  font-weight: 800;
}

.quote {
  margin: 34px 0 0;
  padding: 0 0 0 22px;
  border-left: 4px solid var(--red);
  color: var(--ochre);
  font-size: clamp(1.18rem, 2.5vw, 1.7rem);
  font-weight: 800;
  line-height: 1.16;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 300px);
  gap: clamp(30px, 5vw, 76px);
  align-items: start;
}

.detail-main {
  display: grid;
  gap: clamp(26px, 5vw, 54px);
}

.detail-image {
  background: var(--white);
}

.detail-image img {
  max-height: 760px;
  object-fit: contain;
  background: var(--white);
}

.detail-copy {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(18px, 3vw, 32px);
  max-width: 880px;
}

.detail-copy h1 {
  max-width: 14ch;
  color: var(--ink);
  font-size: clamp(2rem, 4.1vw, 3.9rem);
  line-height: 1.05;
}

.detail-copy .prose {
  max-width: 680px;
  padding-top: 0;
  font-size: 0.98rem;
  line-height: 1.55;
}

.detail-copy .pager {
  font-size: 0.95rem;
}

.project-nav {
  position: sticky;
  top: 108px;
  padding: 18px 0 0;
}

.project-nav h2 {
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.project-nav a {
  display: block;
  border-top: 1px solid var(--line);
  padding: 11px 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
}

.project-nav a:hover,
.project-nav a:focus,
.project-nav a[aria-current="page"] {
  color: var(--red);
}

.pager {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.pager a:last-child {
  margin-left: auto;
}

.not-found {
  min-height: 62svh;
}

.not-found p {
  color: var(--muted);
  font-size: 1.15rem;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 26px clamp(18px, 4vw, 56px);
  border-top: 1px solid rgba(25, 24, 22, 0.12);
  background: rgba(255, 255, 255, 0.48);
  color: var(--muted);
  font-size: 0.88rem;
}

.site-footer div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.site-footer strong {
  color: var(--ink);
}

.site-footer a {
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

@media (max-width: 980px) {
  .hero {
    min-height: 74svh;
  }

  .hero-media {
    right: -42px;
    bottom: 24px;
    width: 340px;
    opacity: 0.42;
  }

  .intro-grid,
  .section-head,
  .page-hero,
  .contact-layout,
  .detail-layout,
  .detail-copy {
    grid-template-columns: 1fr;
  }

  .reference-grid,
  .references-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-nav {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 18px;
  }

  .project-nav h2 {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  body.menu-open .main-nav {
    transform: translateY(0);
  }

  .site-header {
    min-height: 68px;
  }

  .menu-toggle {
    display: inline-flex;
    position: relative;
    z-index: 12;
  }

  .main-nav {
    position: fixed;
    inset: 0;
    z-index: 11;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 28px;
    background: rgba(245, 241, 232, 0.96);
    font-size: clamp(1.8rem, 9vw, 3.6rem);
    transform: translateY(-105%);
    transition: transform 220ms ease;
  }

  .main-nav a::after {
    bottom: -4px;
  }

  .hero {
    min-height: 72svh;
  }

  .hero-content {
    margin-left: 18px;
  }

  .hero-media {
    display: none;
  }

  h1 {
    max-width: 10ch;
  }

  .reference-grid,
  .references-strip,
  .contact-panel,
  .project-nav {
    grid-template-columns: 1fr;
  }

  .reference-card img {
    aspect-ratio: 16 / 11;
  }

  .pager {
    display: grid;
  }

  .pager a:last-child {
    margin-left: 0;
  }

  .site-footer {
    display: grid;
  }
}

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