:root {
  --paper: #f6f5f1;
  --white: #ffffff;
  --ink: #242526;
  --ink-soft: #565b60;
  --muted: #7a7f84;
  --line: rgba(36, 37, 38, 0.16);
  --cyan: #18c5d8;
  --clay: #9a624d;
  --gold: #b99a4d;
  --gold-deep: #8e7337;
  --charcoal: #17191b;
  --shadow: 0 26px 90px rgba(31, 33, 34, 0.16);
  --radius: 8px;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(36, 37, 38, 0.045) 1px, transparent 1px),
    var(--paper);
  background-size: 72px 72px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

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

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

button,
input,
textarea {
  font: inherit;
}

.scroll-progress {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 90;
  width: 0;
  height: 3px;
  background: var(--cyan);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 80;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 24px;
  min-height: 76px;
  padding: 14px clamp(18px, 4vw, 54px);
  color: var(--ink);
  background: rgba(246, 245, 241, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

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

.brand-mark {
  width: 42px;
  height: 42px;
  background: var(--cyan);
  border-radius: 2px;
  box-shadow: inset 0 0 0 8px rgba(255, 255, 255, 0.26);
}

.brand-text {
  display: grid;
  gap: 2px;
}

.brand strong {
  font-size: 0.96rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand small {
  color: var(--muted);
  font-size: 0.75rem;
}

.site-nav {
  justify-self: end;
  display: flex;
  gap: clamp(14px, 2.8vw, 34px);
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 650;
}

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

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

.nav-toggle {
  display: none;
  justify-self: end;
  position: relative;
  width: 48px;
  height: 44px;
  padding: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(246, 245, 241, 0.72));
  border: 1px solid rgba(36, 37, 38, 0.14);
  border-radius: var(--radius);
  box-shadow: 0 12px 34px rgba(31, 33, 34, 0.1);
  cursor: pointer;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
  background: var(--white);
  border-color: rgba(24, 197, 216, 0.46);
  box-shadow: 0 14px 38px rgba(24, 197, 216, 0.16);
}

.nav-toggle span {
  position: absolute;
  left: 50%;
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
  transform: translateX(-50%);
  transform-origin: center;
  transition:
    top 220ms ease,
    opacity 160ms ease,
    transform 220ms ease;
}

.nav-toggle span:nth-child(1) {
  top: 14px;
}

.nav-toggle span:nth-child(2) {
  top: 21px;
}

.nav-toggle span:nth-child(3) {
  top: 28px;
}

.nav-toggle[aria-expanded="true"] {
  background: var(--charcoal);
  border-color: var(--charcoal);
  color: var(--white);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  top: 21px;
  transform: translateX(-50%) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  transform: translateX(-50%) scaleX(0.25);
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  top: 21px;
  transform: translateX(-50%) rotate(-45deg);
}

.hero {
  width: min(var(--max), calc(100% - 36px));
  min-height: 100svh;
  margin: 0 auto;
  padding: clamp(116px, 18vh, 172px) 0 58px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.78fr);
  gap: clamp(32px, 8vw, 92px);
  align-items: center;
}

.hero-copy {
  max-width: 680px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--gold-deep);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 24px;
  font-size: clamp(3.3rem, 8.5vw, 8rem);
  font-weight: 820;
  line-height: 0.92;
}

h2 {
  margin-bottom: 20px;
  font-size: clamp(2.2rem, 5.2vw, 5.2rem);
  font-weight: 780;
  line-height: 0.98;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.15rem;
  line-height: 1.12;
}

.hero-lead {
  max-width: 560px;
  color: var(--ink-soft);
  font-size: clamp(1.1rem, 2vw, 1.38rem);
}

.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 20px;
  color: var(--white);
  background: var(--charcoal);
  border: 1px solid var(--charcoal);
  border-radius: var(--radius);
  font-weight: 780;
  line-height: 1.1;
  text-align: center;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  background: #303337;
  border-color: #303337;
}

.button-secondary {
  color: var(--ink);
  background: transparent;
  border-color: var(--line);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: var(--white);
  border-color: var(--ink);
}

.button-dark {
  color: var(--white);
  background: var(--charcoal);
  border-color: var(--charcoal);
}

.pdf-button {
  position: relative;
  min-height: 58px;
  padding: 0 58px 0 24px;
  color: var(--charcoal);
  background: var(--cyan);
  border-color: var(--cyan);
  box-shadow: 0 18px 48px rgba(24, 197, 216, 0.24);
}

.pdf-button::after {
  content: "";
  position: absolute;
  right: 24px;
  width: 10px;
  height: 10px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 180ms ease;
}

.pdf-button:hover,
.pdf-button:focus-visible {
  color: var(--charcoal);
  background: #62e3ef;
  border-color: #62e3ef;
  box-shadow: 0 22px 58px rgba(24, 197, 216, 0.32);
}

.pdf-button:hover::after,
.pdf-button:focus-visible::after {
  transform: translateX(4px) rotate(45deg);
}

.identity-panel {
  position: relative;
  min-height: 420px;
  padding: clamp(20px, 4vw, 38px);
  display: grid;
  align-items: center;
  background:
    linear-gradient(145deg, rgba(24, 197, 216, 0.18), transparent 44%),
    var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.identity-panel::after {
  content: "";
  position: absolute;
  right: 34px;
  top: 34px;
  width: 74px;
  height: 74px;
  background: var(--cyan);
}

.identity-panel img {
  width: 100%;
  border: 1px solid rgba(36, 37, 38, 0.12);
}

.intro-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(24, 197, 216, 0.16), rgba(24, 197, 216, 0.04)),
    var(--white);
  border-block: 1px solid var(--line);
}

.intro-band span {
  min-height: 76px;
  display: grid;
  place-items: center;
  padding: 16px;
  border-right: 1px solid rgba(24, 197, 216, 0.24);
  font-size: 0.84rem;
  font-weight: 820;
  letter-spacing: 0.1em;
  text-align: center;
  text-transform: uppercase;
  position: relative;
}

.intro-band span::before {
  content: "";
  width: 12px;
  height: 12px;
  margin-bottom: 10px;
  background: var(--cyan);
  border-radius: 2px;
}

.intro-band span:last-child {
  border-right: 0;
}

.section {
  padding: clamp(74px, 10vw, 132px) clamp(18px, 4vw, 54px);
}

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

.split {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1fr);
  gap: clamp(32px, 8vw, 88px);
  align-items: start;
}

.split > * {
  width: auto;
  margin-inline: 0;
}

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

.service-grid article {
  min-height: 230px;
  padding: 26px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.service-grid span {
  display: inline-block;
  margin-bottom: 42px;
  color: var(--gold-deep);
  font-weight: 850;
}

.service-grid p,
.portfolio-copy p,
.contact-details address {
  color: var(--ink-soft);
}

.portfolio {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(280px, 0.66fr);
  gap: clamp(32px, 8vw, 86px);
  align-items: center;
  color: var(--white);
  background: var(--charcoal);
}

.portfolio > * {
  width: auto;
  margin-inline: 0;
}

.portfolio .eyebrow {
  color: var(--cyan);
}

.portfolio-copy p {
  max-width: 540px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.08rem;
}

.portfolio-copy .pdf-button {
  margin-top: 10px;
}

.portfolio-card {
  min-height: 420px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--ink);
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.28);
}

.portfolio-card strong {
  font-size: clamp(2.2rem, 5vw, 4.7rem);
  line-height: 0.94;
}

.portfolio-card small {
  color: var(--muted);
  font-weight: 850;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.card-line {
  width: 100%;
  height: 1px;
  background: var(--line);
}

.section-heading {
  margin-bottom: clamp(30px, 5vw, 56px);
}

.video-section {
  background: var(--white);
}

.video-frame {
  overflow: hidden;
  background: var(--charcoal);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.video-frame iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(360px, 1fr);
  gap: clamp(34px, 8vw, 90px);
  align-items: start;
}

.contact > * {
  width: auto;
  margin-inline: 0;
}

address {
  display: grid;
  gap: 11px;
  margin-top: 28px;
  font-style: normal;
  font-weight: 720;
}

address a:hover,
address a:focus-visible,
.email-link:hover,
.email-link:focus-visible {
  color: var(--gold);
}

.email-link {
  width: fit-content;
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  font: inherit;
  font-weight: inherit;
  text-align: left;
  cursor: pointer;
}

.contact-details address a,
.contact-details .email-link {
  position: relative;
  width: fit-content;
  padding: 3px 0 5px;
  color: var(--gold-deep);
  transition:
    color 180ms ease,
    transform 180ms ease;
}

.contact-details address a::after,
.contact-details .email-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
  opacity: 0;
  transform: scaleX(0.36);
  transform-origin: left;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.contact-details address a:hover,
.contact-details address a:focus-visible,
.contact-details .email-link:hover,
.contact-details .email-link:focus-visible {
  transform: translateX(3px);
}

.contact-details address a:hover::after,
.contact-details address a:focus-visible::after,
.contact-details .email-link:hover::after,
.contact-details .email-link:focus-visible::after {
  opacity: 0.72;
  transform: scaleX(1);
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: clamp(22px, 4vw, 34px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.bot-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 780;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 13px;
  color: var(--ink);
  background: #fbfaf7;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  outline: none;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(24, 197, 216, 0.18);
}

.contact-form .is-invalid {
  border-color: var(--clay);
}

.form-status {
  min-height: 22px;
  margin: 0;
  color: var(--clay);
  font-weight: 760;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 24px clamp(18px, 4vw, 54px);
  color: rgba(255, 255, 255, 0.72);
  background: var(--charcoal);
}

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

@media (max-width: 940px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    inset: 82px 14px auto;
    display: none;
    justify-self: stretch;
    gap: 8px;
    padding: 10px;
    color: var(--ink);
    background: var(--white);
    border: 1px solid rgba(36, 37, 38, 0.12);
    border-radius: var(--radius);
    box-shadow: 0 24px 70px rgba(31, 33, 34, 0.18);
    overflow: hidden;
  }

  .site-nav.is-open {
    display: grid;
    animation: menuPanelIn 210ms ease both;
  }

  .site-nav.is-open a {
    animation: menuItemIn 260ms ease both;
  }

  .site-nav.is-open a:nth-child(2) {
    animation-delay: 28ms;
  }

  .site-nav.is-open a:nth-child(3) {
    animation-delay: 56ms;
  }

  .site-nav.is-open a:nth-child(4) {
    animation-delay: 84ms;
  }

  .site-nav a {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 66px;
    padding: 0 22px;
    border-radius: 6px;
    color: var(--charcoal);
    background: #f6f5f1;
    font-size: clamp(1.28rem, 6vw, 1.62rem);
    font-weight: 850;
    line-height: 0.98;
    letter-spacing: 0;
    transition:
      background 180ms ease,
      color 180ms ease,
      transform 180ms ease;
  }

  .site-nav a::after {
    content: "";
    position: absolute;
    right: 22px;
    width: 9px;
    height: 9px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    opacity: 0.42;
    transform: rotate(45deg);
    transition:
      opacity 180ms ease,
      transform 180ms ease;
  }

  .site-nav a:hover,
  .site-nav a:focus-visible {
    color: var(--ink);
    background: #eafcff;
    transform: translateX(3px);
  }

  .site-nav a:hover::after,
  .site-nav a:focus-visible::after {
    opacity: 0.72;
    transform: translateX(2px) rotate(45deg);
  }

  .site-nav a + a {
    border-top: 0;
  }

  .hero,
  .split,
  .portfolio,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .identity-panel {
    min-height: 320px;
  }
}

@media (max-width: 680px) {
  .site-header {
    min-height: 68px;
    padding-inline: 14px;
  }

  .brand small {
    display: none;
  }

  .brand strong {
    font-size: 0.84rem;
  }

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

  .site-nav {
    top: 74px;
  }

  .site-nav a {
    min-height: 62px;
    padding-inline: 18px;
  }

  .site-nav a::after {
    right: 18px;
  }

  .hero {
    width: calc(100% - 28px);
    padding-top: 106px;
  }

  .hero-actions {
    display: grid;
  }

  .pdf-button {
    width: 100%;
    justify-content: flex-start;
    min-height: 60px;
  }

  .intro-band,
  .service-grid {
    grid-template-columns: 1fr;
  }

  .intro-band span {
    min-height: 58px;
    border-right: 0;
    border-bottom: 1px solid rgba(24, 197, 216, 0.2);
  }

  .intro-band span:last-child {
    border-bottom: 0;
  }

  .service-grid article {
    min-height: 190px;
  }

  .portfolio-card {
    min-height: 320px;
  }

  .site-footer {
    display: grid;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}

@keyframes menuPanelIn {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes menuItemIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}
