:root {
  --ink: #071f37;
  --ink-2: #0c3155;
  --gold: #d69b28;
  --gold-2: #f0c76b;
  --paper: #f7f6f2;
  --white: #ffffff;
  --muted: #66727f;
  --line: rgba(7, 31, 55, 0.14);
  --shadow: 0 24px 70px rgba(7, 31, 55, 0.16);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    "Outfit",
    "Aptos",
    "Segoe UI",
    system-ui,
    -apple-system,
    sans-serif;
  background: var(--paper);
  color: var(--ink);
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

::selection {
  background: var(--gold);
  color: var(--ink);
}

.site-header {
  position: fixed;
  top: 20px;
  right: max(18px, calc((100vw - 1180px) / 2));
  z-index: 20;
  width: min(780px, calc(100% - 36px));
  min-height: 68px;
  display: grid;
  grid-template-columns: auto minmax(280px, 1fr);
  align-items: center;
  gap: 24px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 60px rgba(7, 31, 55, 0.18);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transform: translateX(0);
  transition:
    transform 360ms ease,
    opacity 240ms ease,
    box-shadow 240ms ease;
}

.site-header.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateX(calc(100% + 42px));
}

.site-header.is-compact {
  box-shadow: 0 12px 38px rgba(7, 31, 55, 0.14);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  flex: 0 1 286px;
  min-width: 0;
}

.brand-logo {
  width: auto;
  height: 48px;
  max-width: min(260px, 38vw);
  object-fit: contain;
}

.site-nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 999px;
  color: rgba(7, 31, 55, 0.8);
  font-size: 0.88rem;
  font-weight: 750;
  transition:
    background 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: rgba(214, 155, 40, 0.16);
  color: var(--ink);
}

.site-nav a:active,
.btn:active,
.social-links a:active {
  transform: translateY(1px);
}

.btn svg,
.contact-list svg {
  width: 18px;
  height: 18px;
  stroke-width: 2;
}

.nav-toggle {
  display: none;
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  cursor: pointer;
}

.hero {
  position: relative;
  min-height: 100dvh;
  display: grid;
  align-items: center;
  padding: 148px 24px 82px;
  isolation: isolate;
  background:
    linear-gradient(90deg, rgba(7, 31, 55, 0.92), rgba(7, 31, 55, 0.7) 42%, rgba(7, 31, 55, 0.16)),
    url("https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=2200&q=85") center / cover;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.22)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.055) 0 1px, transparent 1px 120px);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  right: clamp(16px, 7vw, 110px);
  bottom: 0;
  width: min(360px, 42vw);
  height: 38%;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.18) 0 1px, transparent 1px 18px);
  clip-path: polygon(22% 0, 100% 0, 82% 100%, 0 100%);
  opacity: 0.72;
}

.hero-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
  color: var(--white);
}

.hero-kicker,
.section-kicker {
  margin: 0 0 18px;
  color: var(--gold-2);
  font-size: 0.84rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 980px;
  margin: 0;
  font-size: clamp(2.6rem, 5vw, 4.6rem);
  line-height: 0.98;
  letter-spacing: 0;
  text-wrap: balance;
}

.hero-copy {
  max-width: 610px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  line-height: 1.6;
}

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

.btn {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.btn-primary {
  background: var(--gold);
  color: var(--ink);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--gold-2);
}

.btn-secondary {
  border-color: rgba(255, 255, 255, 0.46);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: rgba(255, 255, 255, 0.18);
}

.section {
  padding: clamp(86px, 11vw, 150px) 24px;
}

.section-grid,
.contact-layout {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1fr);
  gap: clamp(36px, 7vw, 96px);
  align-items: start;
}

.section-copy h2,
.section-heading h2,
.contact-copy h2 {
  max-width: 850px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: 0;
  text-wrap: balance;
}

.section-copy p,
.section-heading p,
.contact-copy p {
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.72;
}

.section-copy h2 + p,
.section-heading h2 + p,
.contact-copy h2 + p {
  margin-top: 26px;
}

.service-rail {
  display: grid;
  border-top: 1px solid var(--line);
}

.service-item {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 22px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.service-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(214, 155, 40, 0.55);
  border-radius: var(--radius);
  background: rgba(214, 155, 40, 0.1);
  color: var(--ink);
}

.service-icon svg {
  width: 28px;
  height: 28px;
  stroke-width: 1.8;
}

.service-item h3 {
  margin: 0;
  font-size: clamp(1.15rem, 1.7vw, 1.4rem);
  line-height: 1.15;
}

.service-item p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.62;
}

.values-section {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.52), rgba(255, 255, 255, 0)),
    var(--paper);
}

.values-container {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.values-header {
  max-width: 720px;
  margin-bottom: clamp(36px, 5vw, 56px);
}

.values-header h2 {
  margin-top: 18px;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: clamp(16px, 2.5vw, 28px);
}

.value-card {
  padding: clamp(22px, 2.6vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(247, 246, 242, 0.92)),
    var(--white);
  box-shadow: 0 12px 38px rgba(7, 31, 55, 0.08);
  transition:
    transform 240ms ease,
    box-shadow 240ms ease;
}

.value-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 56px rgba(7, 31, 55, 0.12);
}

.value-number {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.06em;
}

.value-card h3 {
  margin: 0 0 10px;
  font-size: clamp(1.15rem, 1.7vw, 1.4rem);
  line-height: 1.15;
}

.value-card p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(0.95rem, 1.2vw, 1.06rem);
  line-height: 1.62;
}

.projects-section {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.52), rgba(255, 255, 255, 0)),
    var(--paper);
}

.section-heading {
  width: min(1180px, 100%);
  margin: 0 auto 42px;
}

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

.projects-grid {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: 16px;
}

.project-card {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--ink);
  box-shadow: var(--shadow);
  isolation: isolate;
}

.project-large {
  grid-column: span 2;
  grid-row: span 2;
  min-height: 620px;
}

.project-wide {
  grid-column: span 2;
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.86) contrast(1.06);
  transform: scale(1);
  transition: transform 700ms ease;
}

.project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(7, 31, 55, 0.03), rgba(7, 31, 55, 0.88)),
    linear-gradient(90deg, rgba(7, 31, 55, 0.68), transparent 62%);
}

.project-card:hover img {
  transform: scale(1.06);
}

.project-info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: clamp(22px, 3vw, 34px);
  color: var(--white);
}

.project-info span {
  display: inline-block;
  margin-bottom: 11px;
  color: var(--gold-2);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-info h3 {
  max-width: 470px;
  margin: 0;
  font-size: clamp(1.35rem, 2.4vw, 2.2rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.project-info p {
  max-width: 440px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.55;
}

.gallery-section {
  background:
    linear-gradient(180deg, var(--paper), rgba(255, 255, 255, 0.52));
}

.gallery-heading {
  width: min(1180px, 100%);
  margin: 0 auto 42px;
}

.gallery-heading p {
  max-width: 720px;
}

.gallery-grid {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: 14px;
}

.gallery-item {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--ink);
  isolation: isolate;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.04);
  transform: scale(1);
  transition: transform 600ms ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(7, 31, 55, 0.02), rgba(7, 31, 55, 0.38));
  opacity: 0;
  transition: opacity 400ms ease;
}

.gallery-item:hover::after {
  opacity: 1;
}

.gallery-large {
  grid-column: span 2;
  grid-row: span 2;
  min-height: 540px;
}

.gallery-wide {
  grid-column: span 2;
}

.cta-section {
  background:
    linear-gradient(180deg, var(--paper), rgba(255, 255, 255, 0.52));
  text-align: center;
}

.cta-inner {
  width: min(720px, 100%);
  margin: 0 auto;
}

.cta-inner h2 {
  max-width: 560px;
  margin: 18px auto 0;
}

.cta-inner p {
  max-width: 520px;
  margin: 16px auto 0;
  color: rgba(7, 31, 55, 0.72);
}

.projects-cta {
  width: min(1180px, 100%);
  margin: 32px auto 0;
  text-align: center;
}

.project-card video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.contact-section {
  padding-top: clamp(80px, 10vw, 130px);
  background:
    linear-gradient(90deg, rgba(7, 31, 55, 0.05) 0 1px, transparent 1px 80px),
    linear-gradient(180deg, var(--white), var(--paper));
}

.contact-layout {
  align-items: stretch;
}

.contact-copy {
  padding-top: 8px;
}

.contact-list {
  display: grid;
  gap: 12px;
  margin-top: 32px;
}

.contact-list a,
.contact-list p {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: var(--ink);
  font-weight: 850;
}

.contact-list i,
.contact-list svg {
  flex: 0 0 auto;
  color: var(--gold);
}

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

.social-links a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.56);
  color: var(--ink);
  font-weight: 850;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.social-links a:hover,
.social-links a:focus-visible {
  border-color: rgba(214, 155, 40, 0.55);
  background: rgba(214, 155, 40, 0.16);
}

.contact-form {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: clamp(24px, 4vw, 38px);
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--white);
  box-shadow: var(--shadow);
}

.contact-form label {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.88rem;
  font-weight: 850;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  outline: 0;
  padding: 12px 14px;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.contact-form textarea {
  resize: vertical;
  min-height: 138px;
}

.contact-form select option {
  color: var(--ink);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--gold-2);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 4px rgba(214, 155, 40, 0.18);
}

.form-submit {
  width: 100%;
  margin-top: 16px;
  border: 0;
}

.form-status {
  min-height: 22px;
  margin: 2px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.92rem;
  line-height: 1.4;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px max(24px, calc((100vw - 1180px) / 2));
  border-top: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
}

.site-footer p {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 850;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 700ms ease,
    transform 700ms ease;
}

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

:focus-visible {
  outline: 3px solid rgba(214, 155, 40, 0.74);
  outline-offset: 3px;
}

@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;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: auto 1fr;
    right: 16px;
    width: calc(100% - 32px);
  }

  .brand-logo {
    max-width: min(220px, 38vw);
  }

  .site-nav {
    justify-content: flex-end;
  }

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

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

  .project-large,
  .project-wide,
  .gallery-large,
  .gallery-wide {
    grid-column: span 2;
  }
}

@media (max-width: 1120px) and (min-width: 981px) {
  .site-header {
    gap: 14px;
  }

  .brand-logo {
    max-width: 238px;
  }

  .site-nav a {
    padding-inline: 12px;
    font-size: 0.88rem;
  }
}

@media (max-width: 720px) {
  [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: none;
    min-height: 64px;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-width: 0 0 1px;
    border-radius: 0;
    transform: none;
    opacity: 1;
    pointer-events: auto;
    box-shadow: 0 4px 20px rgba(7, 31, 55, 0.1);
  }

  .site-header.is-hidden {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
  }

  .site-header.is-compact {
    box-shadow: 0 4px 20px rgba(7, 31, 55, 0.1);
  }

  .brand-mark {
    width: fit-content;
    flex-basis: auto;
  }

  .brand-logo {
    height: 40px;
    max-width: min(200px, 58vw);
  }

  .nav-toggle {
    display: grid;
    width: 44px;
    height: 44px;
  }

  .site-nav {
    position: fixed;
    top: 65px;
    left: 16px;
    right: 16px;
    z-index: 19;
    display: none;
    grid-template-columns: 1fr;
    gap: 2px;
    padding: 10px;
    border: 1px solid rgba(7, 31, 55, 0.1);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 18px 60px rgba(7, 31, 55, 0.18);
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  body.nav-open .site-nav {
    display: grid;
  }

  .site-nav a {
    min-height: 44px;
    justify-content: flex-start;
    padding: 0 14px;
    background: transparent;
    font-size: 0.92rem;
    font-weight: 750;
    text-align: left;
    white-space: nowrap;
  }

  .site-nav a:hover,
  .site-nav a:focus-visible {
    background: rgba(214, 155, 40, 0.12);
  }

  .hero {
    min-height: 92dvh;
    padding: 120px 18px 64px;
    background:
      linear-gradient(90deg, rgba(7, 31, 55, 0.96), rgba(7, 31, 55, 0.72)),
      url("https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=1200&q=82") center / cover;
  }

  .hero h1 {
    font-size: clamp(2.3rem, 8.5vw, 3.2rem);
  }

  .hero-kicker {
    max-width: 32ch;
    font-size: 0.74rem;
    line-height: 1.35;
   }

  .hero-copy {
    max-width: 34ch;
    font-size: 1rem;
  }

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

  .btn,
  .social-links a {
    width: 100%;
  }

  .values-grid {
    grid-template-columns: 1fr;
  }

  .value-card {
    padding: 22px;
  }

  .section {
    padding-inline: 18px;
  }

  .service-item {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 16px;
  }

  .service-icon {
    width: 48px;
    height: 48px;
  }

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

  .project-card,
  .project-large,
  .project-wide,
  .gallery-item,
  .gallery-large,
  .gallery-wide {
    grid-column: auto;
    grid-row: auto;
    min-height: 320px;
  }

  .gallery-item {
    min-height: 280px;
  }

  .contact-form {
    padding: 22px;
  }

  .site-footer {
    display: grid;
    padding-inline: 18px;
  }
}

@media (max-width: 430px) {
  .brand-mark {
    flex-basis: auto;
  }

  .brand-logo {
    height: 38px;
    max-width: min(180px, 56vw);
  }

  .nav-toggle {
    width: 40px;
    height: 40px;
  }

  .site-nav {
    left: 12px;
    right: 12px;
    padding: 8px;
  }

  .site-nav a {
    min-height: 40px;
    padding: 0 12px;
    font-size: 0.88rem;
  }

  .hero h1,
  .section-copy h2,
  .section-heading h2,
  .contact-copy h2 {
    text-wrap: wrap;
  }
}
