:root {
  color-scheme: dark;
  --bg: #071014;
  --bg-deep: #03080b;
  --surface: #0d1a20;
  --surface-soft: rgba(255, 255, 255, 0.065);
  --line: rgba(255, 255, 255, 0.16);
  --text: #f5fbff;
  --muted: #a9bac2;
  --muted-strong: #cbd8dd;
  --accent: #18d7ee;
  --accent-strong: #77f4ff;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
  --header-height: 76px;
  --max: 1160px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 78% 18%, rgba(24, 215, 238, 0.16), transparent 26rem),
    linear-gradient(180deg, var(--bg), var(--bg-deep) 72%);
  color: var(--text);
  letter-spacing: 0;
}

body.nav-open {
  overflow: hidden;
}

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

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

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

button {
  cursor: pointer;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--text);
  color: var(--bg);
  transform: translateY(-140%);
  transition: transform 180ms ease;
}

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

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(18px, 4vw, 56px);
  color: var(--text);
  background: linear-gradient(180deg, rgba(3, 8, 11, 0.8), rgba(3, 8, 11, 0.18));
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 220ms ease, border-color 220ms ease;
}

.site-header.is-scrolled {
  background: rgba(3, 8, 11, 0.9);
  border-color: rgba(255, 255, 255, 0.14);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(119, 244, 255, 0.55);
  background: rgba(24, 215, 238, 0.12);
  color: var(--accent-strong);
  box-shadow: 0 0 32px rgba(24, 215, 238, 0.24);
}

.brand-text {
  font-size: 1.02rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 34px);
  color: var(--muted-strong);
  font-size: 0.94rem;
}

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

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 220ms var(--ease);
}

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

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
  transition: transform 180ms ease;
}

.nav-open .nav-toggle span:nth-child(2) {
  transform: translateY(3.5px) rotate(45deg);
}

.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-3.5px) rotate(-45deg);
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding: calc(var(--header-height) + 44px) clamp(18px, 5vw, 72px) 72px;
  overflow: hidden;
  isolation: isolate;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 80% center;
  filter: saturate(1.04) contrast(1.08) brightness(1.08);
  transform: scale(1.03);
}

.hero-overlay {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(3, 8, 11, 0.92) 0%, rgba(3, 8, 11, 0.7) 34%, rgba(3, 8, 11, 0.04) 68%, rgba(3, 8, 11, 0.08) 100%),
    linear-gradient(180deg, rgba(3, 8, 11, 0.06), rgba(3, 8, 11, 0.36));
}

.hero-content {
  max-width: 760px;
  padding-top: 5vh;
}

.business-name {
  margin: 0 0 18px;
  color: var(--accent-strong);
  font-size: 0.86rem;
  font-weight: 700;
  text-transform: uppercase;
}

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

h1 {
  max-width: min(720px, 100%);
  margin-bottom: 24px;
  color: var(--text);
  font-size: clamp(2.7rem, 6.1vw, 5.65rem);
  line-height: 1;
  font-weight: 850;
  overflow-wrap: break-word;
}

h1 span {
  display: block;
}

.hero-copy {
  max-width: 610px;
  color: var(--muted-strong);
  font-size: clamp(1.06rem, 2vw, 1.34rem);
  line-height: 1.55;
}

.hero-actions,
.form-submit {
  margin-top: 34px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid transparent;
  font-weight: 760;
  transition: transform 200ms var(--ease), border-color 200ms ease, background 200ms ease, color 200ms ease;
}

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

.button-primary {
  background: var(--accent);
  color: #031014;
  box-shadow: 0 18px 48px rgba(24, 215, 238, 0.22);
}

.button-secondary {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.06);
}

.email-link {
  display: inline-block;
  margin-top: 26px;
  color: var(--muted-strong);
  border-bottom: 1px solid rgba(119, 244, 255, 0.42);
}

.section-inner {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
}

.intro-section {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.035);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 7vw, 96px);
  padding: 34px 0;
  color: var(--muted-strong);
  font-size: 1.04rem;
  line-height: 1.65;
}

.section-kicker {
  color: var(--text);
  font-size: clamp(1.32rem, 2.2vw, 2.04rem);
  line-height: 1.14;
  font-weight: 780;
}

.section-block {
  padding: clamp(84px, 12vw, 150px) 0;
}

.section-heading {
  max-width: 780px;
  margin-bottom: clamp(44px, 7vw, 84px);
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2.4rem, 6vw, 5.1rem);
  line-height: 0.98;
  font-weight: 840;
}

.section-heading p,
.projects-copy p,
.contact-copy p {
  color: var(--muted-strong);
  font-size: clamp(1.02rem, 1.8vw, 1.2rem);
  line-height: 1.65;
}

.direction-list {
  display: grid;
  gap: clamp(34px, 6vw, 72px);
}

.direction-row {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(280px, 1.12fr);
  align-items: center;
  gap: clamp(32px, 6vw, 76px);
  padding-bottom: clamp(38px, 6vw, 70px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.direction-row-alt {
  direction: rtl;
}

.direction-row-alt > * {
  direction: ltr;
}

.direction-index,
.project-item span {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--accent-strong);
  font-size: 0.82rem;
  font-weight: 800;
}

h3 {
  margin-bottom: 16px;
  font-size: clamp(1.7rem, 3vw, 3rem);
  line-height: 1.04;
}

.direction-copy p {
  color: var(--muted-strong);
  line-height: 1.65;
  font-size: 1.04rem;
}

.direction-copy ul {
  display: grid;
  gap: 12px;
  margin: 28px 0;
  padding: 0;
  list-style: none;
}

.direction-copy li {
  position: relative;
  padding-left: 24px;
  color: var(--muted-strong);
}

.direction-copy li::before {
  content: "";
  position: absolute;
  top: 0.68em;
  left: 0;
  width: 8px;
  height: 8px;
  background: var(--accent);
  box-shadow: 0 0 18px rgba(24, 215, 238, 0.56);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 800;
}

.text-link::after {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--accent);
  transition: width 200ms var(--ease);
}

.text-link:hover::after,
.text-link:focus-visible::after {
  width: 54px;
}

.direction-image,
.project-stack {
  margin: 0;
}

.direction-image {
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
  aspect-ratio: 1.22 / 1;
}

.direction-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms var(--ease);
}

.direction-row:hover .direction-image img {
  transform: scale(1.04);
}

.projects {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0)),
    var(--bg-deep);
}

.projects-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(38px, 7vw, 92px);
  align-items: start;
}

.projects-copy {
  position: sticky;
  top: calc(var(--header-height) + 34px);
}

.project-stack {
  display: grid;
  gap: 18px;
}

.project-visual {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.project-item {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 18px;
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.project-item h3 {
  margin-bottom: 8px;
  font-size: clamp(1.22rem, 2vw, 1.72rem);
}

.project-item p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.58;
}

.contact {
  background:
    radial-gradient(circle at 18% 28%, rgba(24, 215, 238, 0.12), transparent 24rem),
    linear-gradient(180deg, var(--bg-deep), #050b0e);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.86fr);
  gap: clamp(38px, 8vw, 110px);
  align-items: start;
}

.contact-details {
  display: grid;
  gap: 18px;
  margin: 42px 0 0;
}

.contact-details div {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 18px;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
}

.contact-details dt {
  color: var(--muted);
  font-size: 0.88rem;
}

.contact-details dd {
  margin: 0;
  color: var(--text);
  font-weight: 720;
  overflow-wrap: anywhere;
}

.contact-details a {
  color: var(--accent-strong);
}

.contact-form {
  padding: clamp(22px, 4vw, 38px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.065);
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  gap: 9px;
  margin-bottom: 18px;
}

label {
  color: var(--muted-strong);
  font-size: 0.86rem;
  font-weight: 760;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(3, 8, 11, 0.66);
  color: var(--text);
  padding: 14px 15px;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

textarea {
  resize: vertical;
  min-height: 132px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(119, 244, 255, 0.72);
  box-shadow: 0 0 0 4px rgba(24, 215, 238, 0.12);
  background: rgba(3, 8, 11, 0.86);
}

.is-invalid {
  border-color: #ff8b8b;
}

.form-submit {
  width: 100%;
  border: 0;
}

.form-status {
  min-height: 1.4em;
  margin: 16px 0 0;
  color: var(--accent-strong);
  line-height: 1.45;
}

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

.site-footer p {
  margin: 0;
}

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

:focus-visible {
  outline: 3px solid rgba(119, 244, 255, 0.82);
  outline-offset: 4px;
}

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

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

@media (max-width: 920px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-height) 14px auto;
    display: grid;
    gap: 2px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(3, 8, 11, 0.96);
    box-shadow: var(--shadow);
    transform: translateY(-18px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .nav-open .site-nav {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav a {
    padding: 14px 6px;
  }

  .hero {
    min-height: 92svh;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(3, 8, 11, 0.78), rgba(3, 8, 11, 0.64) 42%, rgba(3, 8, 11, 0.92)),
      linear-gradient(90deg, rgba(3, 8, 11, 0.9), rgba(3, 8, 11, 0.34));
  }

  .intro-grid,
  .direction-row,
  .projects-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .direction-row-alt {
    direction: ltr;
  }

  .projects-copy {
    position: static;
  }
}

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

  body {
    overflow-x: hidden;
  }

  .site-header {
    padding-inline: 16px;
  }

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

  .hero {
    min-height: auto;
    padding: calc(var(--header-height) + 62px) 18px 78px;
  }

  .hero-media img {
    object-position: 72% center;
  }

  h1 {
    font-size: clamp(1.96rem, 8.7vw, 2.18rem);
    line-height: 1.02;
  }

  .hero-content,
  .hero-copy,
  .section-kicker,
  .intro-grid p {
    max-width: min(100%, 320px);
    overflow-wrap: anywhere;
  }

  .hero-copy,
  .intro-grid p {
    font-size: 0.98rem;
  }

  .section-kicker {
    font-size: 1.18rem;
    line-height: 1.25;
  }

  .business-name {
    font-size: 0.78rem;
    line-height: 1.45;
  }

  .hero-actions,
  .site-footer {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .section-inner {
    width: min(100% - 32px, var(--max));
  }

  .section-block {
    padding: 72px 0;
  }

  .direction-image {
    aspect-ratio: 1 / 0.82;
  }

  .project-item,
  .contact-details div {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .project-item span {
    margin-bottom: 0;
  }

  .contact-form {
    padding: 20px;
  }
}

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

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