:root {
  --ink: #101113;
  --charcoal: #191b1e;
  --steel: #6e7780;
  --mist: #eef0ee;
  --paper: #faf8f3;
  --warm: #c6a46a;
  --clay: #8b5f4d;
  --line: rgba(16, 17, 19, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, Arial, sans-serif;
  line-height: 1.55;
}

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

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px clamp(18px, 4vw, 56px);
  color: white;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  color: var(--ink);
  background: rgba(250, 248, 243, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.portfolio-page .site-header {
  color: var(--ink);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 208px;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: var(--ink);
  background: var(--warm);
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: currentColor;
  font-size: 11px;
  opacity: 0.72;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 36px);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.primary-nav a {
  position: relative;
}

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

.primary-nav a:hover::after,
.primary-nav a:focus-visible::after {
  transform: scaleX(1);
}

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

.nav-toggle {
  display: none;
}

.hero {
  position: relative;
  min-height: 92vh;
  overflow: hidden;
  color: white;
  background: var(--charcoal);
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% 55%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 11, 12, 0.92), rgba(10, 11, 12, 0.42) 48%, rgba(10, 11, 12, 0.12)),
    linear-gradient(0deg, rgba(10, 11, 12, 0.54), transparent 44%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  align-content: center;
  min-height: 92vh;
  width: min(760px, calc(100% - 36px));
  padding: 118px 0 112px clamp(18px, 6vw, 84px);
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--warm);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

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

h1,
h2 {
  font-family: "Playfair Display", Georgia, serif;
  line-height: 0.98;
}

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(48px, 8vw, 104px);
}

h2 {
  margin-bottom: 20px;
  font-size: clamp(36px, 5vw, 70px);
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
}

.hero-content p:not(.eyebrow) {
  max-width: 640px;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(17px, 2vw, 21px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid currentColor;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  color: var(--ink);
  border-color: var(--warm);
  background: var(--warm);
}

.button-ghost {
  color: white;
}

.hero-panel {
  position: absolute;
  right: clamp(18px, 4vw, 56px);
  bottom: 32px;
  z-index: 2;
  display: grid;
  width: min(410px, calc(100% - 36px));
  gap: 7px;
  padding: 20px;
  color: white;
  background: rgba(16, 17, 19, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(18px);
}

.hero-panel span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  text-transform: uppercase;
}

.hero-panel strong {
  font-size: 20px;
}

.section-pad {
  padding: clamp(72px, 10vw, 132px) clamp(18px, 5vw, 72px);
}

.intro,
.studio,
.contact {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, 0.88fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}

.section-heading h2,
.intro-copy p,
.studio-copy p {
  max-width: 760px;
}

.intro-copy {
  padding-top: 42px;
  color: #3d4145;
  font-size: 18px;
}

.text-link {
  display: inline-block;
  margin-top: 14px;
  color: var(--clay);
  font-weight: 800;
  border-bottom: 2px solid currentColor;
}

.portfolio {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(340px, 0.75fr);
  min-height: 720px;
  background: var(--mist);
}

.portfolio-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 66% 55%;
}

.portfolio-side {
  display: grid;
  align-content: center;
  padding: clamp(40px, 6vw, 82px);
  background: #17191b;
  color: white;
}

.portfolio-side p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.72);
}

.spec-grid {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 12px 18px;
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.spec-grid span {
  color: var(--warm);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 42px;
  background: var(--line);
  border: 1px solid var(--line);
}

.service-grid article {
  min-height: 260px;
  padding: 32px;
  background: var(--paper);
}

.service-grid span,
.process-list span {
  color: var(--clay);
  font-size: 12px;
  font-weight: 900;
}

.service-grid p,
.process-list p {
  color: #555b60;
}

.dark-band {
  padding: clamp(72px, 10vw, 132px) clamp(18px, 5vw, 72px);
  color: white;
  background:
    linear-gradient(120deg, rgba(198, 164, 106, 0.12), transparent 34%),
    #101113;
}

.dark-band .section-heading {
  max-width: 720px;
}

.process-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 44px;
  background: rgba(255, 255, 255, 0.18);
}

.process-list div {
  min-height: 248px;
  padding: 30px;
  background: #17191b;
}

.process-list p {
  color: rgba(255, 255, 255, 0.68);
}

.studio {
  background: var(--paper);
}

.capabilities {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 48px;
}

.capabilities span {
  padding: 12px 14px;
  color: var(--ink);
  background: #e6e3da;
  border-left: 4px solid var(--warm);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.quote-band {
  padding: clamp(54px, 8vw, 96px) clamp(18px, 8vw, 118px);
  background: var(--clay);
  color: white;
}

.quote-band p {
  max-width: 1120px;
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(30px, 4vw, 58px);
  line-height: 1.05;
}

.contact {
  padding: clamp(72px, 10vw, 132px) clamp(18px, 5vw, 72px);
  color: white;
  background: #17191b;
}

.contact address {
  display: grid;
  gap: 14px;
  align-content: start;
  color: rgba(255, 255, 255, 0.78);
  font-style: normal;
  font-weight: 700;
}

.contact address a:hover,
.contact address a:focus-visible {
  color: var(--warm);
}

.contact-form {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 10px;
}

.contact-form label {
  display: grid;
  gap: 8px;
}

.contact-form .full {
  grid-column: 1 / -1;
}

.contact-form span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

input,
select,
textarea {
  width: 100%;
  min-height: 52px;
  padding: 14px;
  color: white;
  background: #232629;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 0;
  font: inherit;
}

textarea {
  resize: vertical;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding: 28px clamp(18px, 5vw, 72px);
  color: rgba(255, 255, 255, 0.72);
  background: #101113;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.site-footer strong,
.site-footer a {
  color: white;
}

.portfolio-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: clamp(28px, 6vw, 96px);
  align-items: end;
  padding: 150px clamp(18px, 5vw, 72px) clamp(56px, 8vw, 96px);
  background:
    linear-gradient(135deg, rgba(198, 164, 106, 0.18), transparent 42%),
    var(--paper);
}

.portfolio-hero h1 {
  max-width: 980px;
  color: var(--ink);
  font-size: clamp(52px, 8vw, 112px);
}

.portfolio-hero > p {
  max-width: 520px;
  color: #4d5358;
  font-size: 18px;
}

.portfolio-shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  padding: 0 clamp(18px, 5vw, 72px) clamp(70px, 10vw, 130px);
}

.portfolio-menu {
  position: sticky;
  top: 102px;
  display: grid;
  align-self: start;
  gap: 20px;
  padding: 8px 0 24px;
  color: #777a7d;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.08;
  text-transform: uppercase;
}

.portfolio-menu a {
  width: fit-content;
  border-bottom: 2px solid transparent;
}

.portfolio-menu a:hover,
.portfolio-menu a:focus-visible,
.portfolio-menu a.is-active {
  color: var(--ink);
  border-color: currentColor;
}

.portfolio-gallery {
  display: grid;
  gap: clamp(56px, 8vw, 108px);
}

.portfolio-category {
  scroll-margin-top: 112px;
}

.category-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1.1fr);
  gap: 24px;
  align-items: end;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.category-heading h2 {
  margin-bottom: 0;
  font-size: clamp(30px, 4vw, 54px);
}

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

.project-card {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  background: var(--charcoal);
}

.project-card.large {
  min-height: 560px;
}

.project-card img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  transition: transform 500ms ease, filter 500ms ease;
}

.project-card::after {
  position: absolute;
  inset: auto 0 0;
  height: 48%;
  background: linear-gradient(0deg, rgba(10, 11, 12, 0.82), transparent);
  content: "";
}

.project-card:hover img {
  filter: saturate(1.06) contrast(1.04);
  transform: scale(1.035);
}

.project-card div {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  padding: 24px;
  color: white;
}

.project-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--warm);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.project-card h3 {
  max-width: 420px;
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1;
}

.portfolio-cta {
  display: grid;
  gap: 22px;
  justify-items: start;
  padding: clamp(64px, 8vw, 104px) clamp(18px, 8vw, 118px);
  color: white;
  background: #17191b;
}

.portfolio-cta h2 {
  max-width: 940px;
}

@media (max-width: 980px) {
  .nav-toggle {
    position: relative;
    z-index: 22;
    display: grid;
    width: 48px;
    height: 44px;
    place-items: center;
    color: currentColor;
    background: transparent;
    border: 1px solid currentColor;
  }

  .nav-toggle span {
    display: block;
    width: 21px;
    height: 2px;
    background: currentColor;
  }

  .primary-nav {
    position: fixed;
    inset: 0 0 auto;
    z-index: 21;
    display: grid;
    gap: 0;
    padding: 94px 22px 24px;
    color: var(--ink);
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    transform: translateY(-105%);
    transition: transform 200ms ease;
  }

  .primary-nav.is-open {
    transform: translateY(0);
  }

  .primary-nav a {
    padding: 18px 0;
    border-top: 1px solid var(--line);
    font-size: 16px;
  }

  .hero-panel {
    position: relative;
    right: auto;
    bottom: auto;
    margin: -120px 18px 32px;
  }

  .intro,
  .studio,
  .contact,
  .portfolio,
  .portfolio-hero,
  .portfolio-shell,
  .category-heading {
    grid-template-columns: 1fr;
  }

  .portfolio-menu {
    position: static;
    display: flex;
    overflow-x: auto;
    gap: 18px;
    padding-bottom: 18px;
    white-space: nowrap;
  }

  .portfolio-menu a {
    flex: 0 0 auto;
  }

  .portfolio-main {
    min-height: 560px;
  }

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

  .process-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .brand {
    min-width: 0;
  }

  .brand small {
    display: none;
  }

  h1 {
    font-size: 46px;
  }

  .hero-content {
    padding-top: 110px;
    padding-left: 18px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .portfolio-main {
    min-height: 420px;
  }

  .service-grid,
  .process-list,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-hero {
    padding-top: 122px;
  }

  .project-card,
  .project-card.large {
    min-height: 380px;
  }

  .service-grid article,
  .process-list div {
    min-height: auto;
  }
}
