:root {
  --bg: #f4f6f8;
  --bg-elevated: #ffffff;
  --bg-soft: #e8eef3;
  --ink: #1a222c;
  --muted: #5c6b7a;
  --line: rgba(26, 34, 44, 0.12);
  --accent: #2f5b8a;
  --accent-deep: #244a70;
  --accent-soft: rgba(47, 91, 138, 0.12);
  --success: #2f7a4f;
  --danger: #b4453a;
  --font: "Outfit", sans-serif;
  --space: clamp(1.25rem, 3vw, 2.5rem);
  --max: 72rem;
  --header-h: 4.75rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(1000px 520px at 8% -8%, rgba(47, 91, 138, 0.08), transparent 55%),
    radial-gradient(800px 480px at 100% 12%, rgba(180, 200, 214, 0.35), transparent 50%),
    var(--bg);
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  font-family: var(--font);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
  font-weight: 600;
}

h1 {
  font-size: clamp(2rem, 4.8vw, 3.35rem);
  font-weight: 600;
  max-width: 16ch;
}

h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.45rem);
}

h3 {
  font-size: clamp(1.3rem, 2.2vw, 1.65rem);
}

p {
  margin: 0 0 1rem;
}

.eyebrow {
  margin: 0 0 0.65rem;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.7rem 1.35rem;
  border-radius: 0.35rem;
  border: 1px solid transparent;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s ease, border-color 0.25s ease,
    color 0.25s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.btn:disabled:not(.is-waiting) {
  cursor: wait;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-deep);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(26, 34, 44, 0.18);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: #fff;
}

.text-link {
  display: inline-flex;
  margin-top: 0.5rem;
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.text-link:hover {
  border-bottom-color: var(--accent);
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
  height: var(--header-h);
  padding: 0.35rem var(--space);
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled,
.site-header.nav-open {
  background: rgba(244, 246, 248, 0.92);
  border-bottom-color: var(--line);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  max-width: min(11rem, 50vw);
  min-width: 6.5rem;
  min-height: 2.5rem;
  text-decoration: none;
  line-height: 0;
}

.brand-logo,
.brand img {
  width: auto !important;
  max-width: 100% !important;
  height: 2.5rem !important;
  max-height: 2.5rem !important;
  border-radius: 0.25rem;
  display: block;
  object-fit: contain;
  object-position: left center;
  opacity: 0;
  transform: translateY(0.65rem) scale(1.12);
  transform-origin: left center;
  transition:
    opacity 0.35s var(--ease),
    transform 0.45s var(--ease);
  pointer-events: none;
}

.site-header.is-scrolled .brand-logo,
.site-header.is-scrolled .brand img,
.site-header.nav-open .brand-logo,
.site-header.nav-open .brand img,
body.logo-docked .brand-logo,
body.logo-docked .brand img {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.site-nav a {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  opacity: 0.8;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.site-nav a:hover {
  color: var(--accent);
  opacity: 1;
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 0.3rem;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 1.1rem;
  height: 2px;
  margin: 0.28rem auto;
  background: var(--ink);
  transition: transform 0.25s var(--ease), opacity 0.2s ease;
}

.site-header.nav-open .nav-toggle span:first-child {
  transform: translateY(5px) rotate(45deg);
}

.site-header.nav-open .nav-toggle span:last-child {
  transform: translateY(-5px) rotate(-45deg);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("../img/hero-studio.jpg") center / cover no-repeat;
  transform: scale(1.04);
  animation: hero-zoom 14s var(--ease) both;
}

.hero-veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(
      180deg,
      rgba(244, 246, 248, 0.18) 0%,
      rgba(244, 246, 248, 0.42) 48%,
      rgba(244, 246, 248, 0.9) 100%
    ),
    linear-gradient(
      90deg,
      rgba(244, 246, 248, 0.78) 0%,
      rgba(244, 246, 248, 0.28) 52%,
      rgba(244, 246, 248, 0.08) 100%
    );
}

.hero-content {
  width: min(100% - 2 * var(--space), var(--max));
  margin: 0 auto;
  padding: calc(var(--header-h) + 3rem) 0 4.5rem;
  animation: hero-rise 0.85s var(--ease) both;
}

.hero-logo-wrap {
  margin: 0 0 1.1rem;
  line-height: 0;
}

.hero-logo {
  width: auto !important;
  max-width: min(22rem, 78vw) !important;
  height: clamp(4.75rem, 15vw, 6.75rem) !important;
  border-radius: 0.35rem;
  display: block;
  object-fit: contain;
  object-position: left center;
  transform-origin: left top;
  transition:
    opacity 0.35s var(--ease),
    transform 0.45s var(--ease);
}

body.logo-docked .hero-logo {
  opacity: 0;
  transform: translate3d(-0.5rem, -2.75rem, 0) scale(0.38);
  pointer-events: none;
}

.hero-lead {
  max-width: 34rem;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.8vw, 1.15rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.75rem;
}

@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(1.1rem);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes hero-zoom {
  from {
    transform: scale(1.08);
  }
  to {
    transform: scale(1.02);
  }
}

/* Sections */
.services,
.about,
.contact {
  width: min(100% - 2 * var(--space), var(--max));
  margin: 0 auto;
  padding: clamp(4rem, 10vw, 6.5rem) 0;
}

.section-intro {
  max-width: 36rem;
  margin-bottom: clamp(2rem, 5vw, 3.25rem);
}

.section-intro p:last-child {
  color: var(--muted);
  margin-bottom: 0;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.75rem, 4vw, 3rem);
}

@media (max-width: 1100px) {
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.service {
  display: grid;
  gap: 0.85rem;
  align-content: start;
}

.service-media {
  overflow: hidden;
  border-radius: 0.4rem;
  background: var(--bg-soft);
  aspect-ratio: 4 / 3;
}

.service-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-index {
  margin: 0.35rem 0 0;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.service > p {
  color: var(--muted);
}

.service ul {
  margin: 0 0 0.5rem;
  padding: 0;
  list-style: none;
}

.service li {
  position: relative;
  padding: 0.3rem 0 0.3rem 1.15rem;
  color: var(--ink);
}

.service li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.9rem;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--accent);
}

.about {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(1.75rem, 5vw, 3.5rem);
  align-items: center;
}

.about-visual {
  overflow: hidden;
  border-radius: 0.4rem;
  min-height: 22rem;
  background: var(--bg-soft);
}

.about-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 22rem;
}

.about-copy p {
  color: var(--muted);
}

.about-copy p:last-child {
  margin-bottom: 0;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(14rem, 0.85fr) 1.35fr;
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: start;
}

.contact-channels {
  display: grid;
  gap: 0.85rem;
}

.channel {
  display: grid;
  gap: 0.2rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
  transition: color 0.2s ease;
}

.channel:last-of-type,
.contact-location {
  border-bottom: 1px solid var(--line);
}

.contact-location {
  display: grid;
  gap: 0.2rem;
  margin: 0;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
  font-style: normal;
}

.channel:hover .channel-value {
  color: var(--accent);
}

.channel-label {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}

.channel-value {
  font-size: 1.12rem;
  font-weight: 600;
}

.contact-form {
  display: grid;
  gap: 1rem;
  padding: 1.35rem;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 0.45rem;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field label {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 0.3rem;
  background: #fbfcfd;
  color: var(--ink);
  font: inherit;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--accent-soft);
  border-color: var(--accent);
}

.field textarea {
  resize: vertical;
  min-height: 8rem;
}

.field-file input[type="file"] {
  padding: 0.65rem 0.75rem;
  font-size: 0.92rem;
}

.label-optional {
  font-weight: 500;
  color: var(--muted);
}

.field-hint {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.4;
}

.field-error {
  margin: 0;
  font-size: 0.78rem;
  color: #b42318;
  line-height: 1.35;
}

.phone-field {
  display: flex;
  align-items: stretch;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0.3rem;
  background: #fbfcfd;
  overflow: hidden;
}

.phone-field:focus-within {
  outline: 2px solid var(--accent-soft);
  border-color: var(--accent);
}

.phone-field.is-invalid {
  border-color: #d92d20;
}

.phone-field.is-invalid:focus-within {
  outline-color: rgba(217, 45, 32, 0.25);
}

.phone-prefix {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0 0.75rem;
  background: #eef2f5;
  color: var(--muted);
  border-right: 1px solid var(--line);
  font-weight: 600;
  letter-spacing: 0.02em;
  user-select: none;
  pointer-events: none;
}

.phone-flag {
  display: block;
  flex: 0 0 auto;
  border-radius: 1px;
  box-shadow: 0 0 0 1px rgba(15, 23, 32, 0.12);
}

.phone-field input {
  border: 0;
  border-radius: 0;
  background: transparent;
  min-width: 0;
}

.phone-field input:focus {
  outline: none;
  border-color: transparent;
}

.phone-field input.is-invalid {
  border-color: transparent;
}

.field input.is-invalid,
.field select.is-invalid,
.field textarea.is-invalid {
  border-color: #d92d20;
}

.field input.is-invalid:focus,
.field select.is-invalid:focus,
.field textarea.is-invalid:focus {
  outline-color: rgba(217, 45, 32, 0.25);
}

.hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  min-height: 1.4em;
  margin: 0;
  font-size: 0.95rem;
}

.form-status.is-success {
  color: var(--success);
}

.form-status.is-error {
  color: var(--danger);
}

.site-footer {
  width: min(100% - 2 * var(--space), var(--max));
  margin: 0 auto;
  padding: 1.5rem 0 2.5rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-brand img {
  width: auto !important;
  max-width: 10rem !important;
  height: 2.25rem !important;
  max-height: 2.25rem !important;
  border-radius: 0.25rem;
  display: block;
  object-fit: contain;
}

.footer-brand p {
  margin: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(1rem);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 900px) {
  .service-grid {
    grid-template-columns: 1fr;
  }

  .about,
  .contact-layout,
  .field-row {
    grid-template-columns: 1fr;
  }

  .about-visual,
  .about-visual img {
    min-height: 16rem;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: inline-block;
  }

  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0.5rem var(--space) 1.25rem;
    background: rgba(244, 246, 248, 0.98);
    border-bottom: 1px solid var(--line);
  }

  .site-header.nav-open .site-nav {
    display: flex;
  }

  .site-nav a {
    width: 100%;
    padding: 0.85rem 0;
    border-top: 1px solid var(--line);
  }

  .hero-content {
    padding-bottom: 3.25rem;
  }

  .brand-logo,
  .brand img {
    height: 2.15rem !important;
    max-height: 2.15rem !important;
  }

  .hero-logo {
    height: clamp(4.25rem, 18vw, 5.5rem) !important;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-media,
  .hero-content,
  .reveal {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
