:root {
  --black: #050505;
  --black-soft: #111111;
  --white: #ffffff;
  --pearl: #f6f4ef;
  --silver: #c8c8c8;
  --muted: #8d8d8d;
  --line: rgba(255, 255, 255, 0.16);
  --dark-line: rgba(5, 5, 5, 0.12);
  --max-width: 1180px;
  --header-height: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  margin: 0;
  color: var(--white);
  background: var(--black);
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  line-height: 1.8;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

::selection {
  color: var(--black);
  background: var(--pearl);
}

.skip-link,
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.skip-link:focus {
  z-index: 100;
  width: auto;
  height: auto;
  inset: 14px auto auto 14px;
  padding: 10px 14px;
  clip: auto;
  color: var(--black);
  background: var(--white);
  border-radius: 8px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  padding: 16px clamp(18px, 5vw, 64px);
  background: rgba(5, 5, 5, 0.62);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px);
  transition: background 240ms ease, border-color 240ms ease;
}

.site-header.scrolled {
  background: rgba(5, 5, 5, 0.92);
  border-color: var(--line);
}

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

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--black);
  background: var(--white);
  border: 1px solid var(--white);
  border-radius: 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0;
}

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

.brand-text strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  letter-spacing: 0;
}

.brand-text small {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 34px);
  color: var(--silver);
  font-size: 0.92rem;
}

.site-nav a {
  position: relative;
  padding: 8px 0;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  content: "";
  background: var(--white);
  transition: width 220ms ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--white);
}

.site-nav a:hover::after,
.site-nav a.active::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.menu-toggle span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 1px;
  margin: 5px auto;
  background: var(--white);
}

.hero {
  position: relative;
  display: grid;
  min-height: 86svh;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
  padding: 130px clamp(18px, 5vw, 64px) 64px;
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  z-index: -2;
  object-fit: cover;
}

.hero-overlay {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(5, 5, 5, 0.12), rgba(5, 5, 5, 0.8) 48%, rgba(5, 5, 5, 0.96)),
    linear-gradient(0deg, rgba(5, 5, 5, 0.96), rgba(5, 5, 5, 0.1) 55%, rgba(5, 5, 5, 0.72));
}

.hero-content {
  width: min(720px, 100%);
  margin-inline-start: auto;
}

.eyebrow,
.section-label,
.portfolio-item span,
.service-card span {
  color: var(--silver);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1,
.section h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 780px;
  margin-top: 10px;
  font-size: 8.2rem;
  line-height: 0.95;
}

.hero-lead {
  max-width: 620px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.16rem;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 8px;
  font-weight: 700;
  transition: transform 220ms var(--ease), background 220ms ease, color 220ms ease, border-color 220ms ease;
}

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

.button-light {
  color: var(--black);
  background: var(--white);
  border: 1px solid var(--white);
}

.button-outline {
  color: var(--white);
  background: transparent;
  border: 1px solid var(--line);
}

.button-outline:hover {
  border-color: var(--white);
}

.button-dark {
  width: 100%;
  color: var(--white);
  background: var(--black);
  border: 1px solid var(--black);
}

.hero-stat {
  position: absolute;
  left: clamp(18px, 5vw, 64px);
  bottom: 52px;
  display: grid;
  gap: 2px;
  min-width: 170px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(5, 5, 5, 0.34);
  backdrop-filter: blur(12px);
}

.hero-stat span {
  color: var(--muted);
  font-size: 0.78rem;
}

.hero-stat strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  line-height: 1;
}

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

.section > * {
  max-width: var(--max-width);
  margin-inline: auto;
}

.about,
.portfolio {
  background: var(--pearl);
  color: var(--black);
}

.about .section-label,
.portfolio .section-label,
.portfolio-item span {
  color: #606060;
}

.about-grid,
.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
  gap: clamp(32px, 6vw, 86px);
  align-items: center;
}

.about-copy h2,
.section-heading h2,
.portfolio-head h2,
.contact-copy h2 {
  max-width: 860px;
  margin-top: 14px;
  font-size: 4rem;
  line-height: 1.12;
}

.about-copy p,
.contact-copy p {
  max-width: 690px;
  color: #4b4b4b;
  font-size: 1rem;
}

.about-panel {
  overflow: hidden;
  border: 1px solid var(--dark-line);
  border-radius: 8px;
  background: var(--white);
}

.about-panel img {
  width: 100%;
  aspect-ratio: 1.1;
  object-fit: cover;
}

.about-panel dl {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin: 0;
  border-top: 1px solid var(--dark-line);
}

.about-panel div {
  padding: 18px;
}

.about-panel div + div {
  border-right: 1px solid var(--dark-line);
}

.about-panel dt {
  color: #6a6a6a;
  font-size: 0.78rem;
}

.about-panel dd {
  margin: 3px 0 0;
  font-weight: 700;
}

.services {
  background: var(--black);
}

.section-heading {
  display: grid;
  gap: 18px;
}

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

.service-card {
  min-height: 300px;
  padding: 28px;
  background: var(--black-soft);
}

.service-card h3 {
  margin: 60px 0 12px;
  font-size: 1.18rem;
}

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

.portfolio-head {
  display: grid;
  gap: 14px;
}

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

.portfolio-item {
  position: relative;
  overflow: hidden;
  min-height: 460px;
  border-radius: 8px;
  background: #dddddd;
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  min-height: 460px;
  object-fit: cover;
  filter: grayscale(1);
  transition: transform 700ms var(--ease), filter 700ms ease;
}

.portfolio-item::after {
  position: absolute;
  inset: auto 0 0;
  height: 58%;
  content: "";
  background: linear-gradient(0deg, rgba(5, 5, 5, 0.84), transparent);
}

.portfolio-item div {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  padding: 24px;
  color: var(--white);
}

.portfolio-item span {
  color: var(--silver);
}

.portfolio-item h3 {
  margin: 8px 0 0;
  font-size: 1.26rem;
}

.portfolio-item:hover img {
  transform: scale(1.05);
  filter: grayscale(0.3);
}

.contact {
  max-width: none;
  background: var(--black);
}

.contact > * {
  max-width: none;
}

.contact-copy,
.contact-form {
  max-width: 620px;
}

.contact-copy {
  justify-self: end;
}

.contact-copy p {
  color: var(--muted);
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  color: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: background 220ms ease, color 220ms ease;
}

.social-links a:hover {
  color: var(--black);
  background: var(--white);
}

.contact-form {
  display: grid;
  gap: 16px;
  justify-self: start;
  width: 100%;
  padding: 24px;
  color: var(--black);
  background: var(--pearl);
  border-radius: 8px;
}

.contact-form label {
  display: grid;
  gap: 7px;
  color: #333333;
  font-size: 0.9rem;
  font-weight: 700;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  color: var(--black);
  background: var(--white);
  border: 1px solid var(--dark-line);
  border-radius: 8px;
  outline: 0;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.contact-form input {
  height: 48px;
  padding: 0 14px;
}

.contact-form textarea {
  resize: vertical;
  min-height: 132px;
  padding: 12px 14px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--black);
  box-shadow: 0 0 0 3px rgba(5, 5, 5, 0.08);
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: #4d4d4d;
  font-size: 0.88rem;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px clamp(18px, 5vw, 64px);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--white);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 800ms var(--ease), transform 800ms var(--ease);
}

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

@media (max-width: 1020px) {
  .hero h1 {
    font-size: 5.8rem;
  }

  .about-copy h2,
  .section-heading h2,
  .portfolio-head h2,
  .contact-copy h2 {
    font-size: 3.2rem;
  }

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

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

  .contact-copy,
  .contact-form {
    justify-self: stretch;
    max-width: none;
  }
}

@media (max-width: 760px) {
  :root {
    --header-height: 68px;
  }

  .site-header {
    min-height: var(--header-height);
    padding: 12px 16px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand-text small {
    display: none;
  }

  .menu-toggle {
    position: relative;
    z-index: 60;
    display: block;
  }

  .site-nav {
    position: fixed;
    inset: 0;
    z-index: 55;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 24px;
    padding: 84px 24px 32px;
    background: rgba(5, 5, 5, 0.98);
    transform: translateY(-100%);
    transition: transform 320ms var(--ease);
  }

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

  .site-nav a {
    font-size: 1.3rem;
  }

  .hero {
    min-height: 84svh;
    padding: 112px 16px 42px;
  }

  .hero-overlay {
    background:
      linear-gradient(0deg, rgba(5, 5, 5, 0.98), rgba(5, 5, 5, 0.2) 52%, rgba(5, 5, 5, 0.72)),
      linear-gradient(90deg, rgba(5, 5, 5, 0.2), rgba(5, 5, 5, 0.82));
  }

  .hero-content {
    margin-inline-start: 0;
  }

  .hero h1 {
    font-size: 3.55rem;
  }

  .hero-lead {
    font-size: 1rem;
  }

  .about-copy h2,
  .section-heading h2,
  .portfolio-head h2,
  .contact-copy h2 {
    font-size: 2.2rem;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .hero-stat {
    position: static;
    width: 100%;
    margin-top: 32px;
  }

  .section {
    padding: 68px 16px;
  }

  .service-grid,
  .portfolio-grid,
  .about-panel dl {
    grid-template-columns: 1fr;
  }

  .about-panel div + div {
    border-top: 1px solid var(--dark-line);
    border-right: 0;
  }

  .service-card {
    min-height: 230px;
  }

  .service-card h3 {
    margin-top: 42px;
  }

  .portfolio-item,
  .portfolio-item img {
    min-height: 360px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    padding-inline: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
