:root {
  --ink: #121212;
  --muted: #686b70;
  --paper: #f7f4ee;
  --card: #ffffff;
  --line: rgba(18, 18, 18, 0.12);
  --mint: #ffb05c;
  --coral: #ff7a66;
  --blue: #3667e8;
  --green: #1d7c61;
  --shadow: 0 20px 55px rgba(21, 24, 31, 0.15);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

a {
  color: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 52px);
  color: #fff;
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled,
.site-header.nav-open {
  color: var(--ink);
  background: rgba(247, 244, 238, 0.94);
  box-shadow: 0 1px 0 var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: inline-flex;
  width: 46px;
  height: 38px;
  align-items: center;
  justify-content: center;
  padding: 4px;
  background: #121212;
  border-radius: 7px;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
  font-weight: 700;
}

.site-nav a {
  text-decoration: none;
}

.nav-login {
  padding: 10px 14px;
  color: #121212;
  background: #fff;
  border-radius: 7px;
}

.site-header.is-scrolled .nav-login,
.site-header.nav-open .nav-login {
  background: var(--ink);
  color: #fff;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  background: transparent;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 6px auto;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #fff;
}

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

.hero-image {
  object-fit: cover;
  object-position: center;
  will-change: transform;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(9, 12, 17, 0.86), rgba(9, 12, 17, 0.42) 48%, rgba(9, 12, 17, 0.14)), linear-gradient(0deg, rgba(9, 12, 17, 0.75), rgba(9, 12, 17, 0));
}

.hero-content {
  position: relative;
  width: min(860px, 100%);
  padding: 150px clamp(20px, 5vw, 72px) 76px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--coral);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-kicker {
  width: min(640px, 100%);
  margin-bottom: 20px;
  color: var(--mint);
  font-size: clamp(24px, 3.4vw, 46px);
  line-height: 1.02;
  text-wrap: balance;
}

.hero h1 {
  margin: 0;
  font-size: clamp(56px, 11vw, 142px);
  line-height: 0.88;
  letter-spacing: 0;
}

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

.hero-logo {
  width: min(820px, 58vw);
  max-height: 46vh;
  object-fit: contain;
  object-position: right center;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.28));
}

.hero-logo-corner {
  position: absolute;
  top: clamp(92px, 13vh, 145px);
  right: clamp(20px, 5vw, 72px);
  z-index: 2;
}

.hero-copy {
  width: min(690px, 100%);
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(18px, 2vw, 24px);
}

.hero-actions,
.cta-band,
.site-footer {
  display: flex;
  align-items: center;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 18px;
  border: 0;
  border-radius: 7px;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.primary {
  color: #121212;
  background: var(--mint);
}

.secondary {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.dark {
  color: #fff;
  background: var(--ink);
}

.intro-band {
  position: relative;
  padding: 22px clamp(20px, 5vw, 72px);
  background: #fff;
  --section-bg: #fff;
}

.intro-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  max-width: 1180px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 8px;
  background: var(--line);
}

.intro-grid div {
  min-height: 112px;
  padding: 24px;
  background: #fff;
}

.intro-grid strong,
.intro-grid span {
  display: block;
}

.intro-grid strong {
  margin-bottom: 6px;
  font-size: 17px;
}

.intro-grid span,
.portfolio-card p,
.service-copy p,
.service-list p,
.process-list p,
.cta-band p,
.contact-copy p,
.site-footer {
  color: var(--muted);
}

.section,
.contact-section,
.service-band,
.cta-band {
  position: relative;
  padding: clamp(70px, 10vw, 130px) clamp(20px, 5vw, 72px);
}

.intro-band::before,
.section::before,
.service-band::before,
.testimonials-section::before,
.cta-band::before,
.contact-section::before,
.site-footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: calc(-1 * var(--divider-height, 64px));
  height: var(--divider-height, 64px);
  background: var(--section-bg, var(--paper));
  clip-path: polygon(
    0 72%,
    9% 36%,
    18% 66%,
    29% 20%,
    41% 58%,
    54% 8%,
    67% 50%,
    79% 16%,
    90% 46%,
    100% 0,
    100% 100%,
    0 100%
  );
  z-index: 0;
}

.intro-band > *,
.section > *,
.service-band > *,
.testimonials-section > *,
.cta-band > *,
.contact-section > *,
.site-footer > * {
  position: relative;
  z-index: 1;
}

.section-heading {
  width: min(720px, 100%);
  margin-bottom: 34px;
}

h2 {
  margin: 0;
  font-size: clamp(34px, 5vw, 68px);
  line-height: 0.98;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.12;
  letter-spacing: 0;
}

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

.portfolio-card {
  display: block;
  overflow: hidden;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 0 var(--line);
  color: inherit;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.portfolio-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.portfolio-thumb {
  position: relative;
  display: block;
  background: #151515;
}

.portfolio-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.play-badge {
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 52px;
  height: 38px;
  border-radius: 8px;
  background: var(--coral);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

.play-badge::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 52%;
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 13px solid #fff;
  transform: translate(-50%, -50%);
}

.portfolio-content {
  display: block;
  padding: 18px;
}

.portfolio-category {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.portfolio-title {
  display: block;
  margin: 0;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: 0;
}

.portfolio-description {
  display: block;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.portfolio-footer {
  display: flex;
  justify-content: center;
  margin-top: 34px;
}

.portfolio-action {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  margin-top: 14px;
  padding: 8px 12px;
  color: #fff;
  background: var(--ink);
  border-radius: 7px;
  font-size: 13px;
  font-weight: 800;
}

.service-band {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: clamp(32px, 6vw, 86px);
  background: #151515;
  color: #fff;
  --section-bg: #151515;
}

.service-copy p {
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 18px;
}

.service-list {
  display: grid;
  gap: 14px;
}

.service-list div {
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
}

.service-list p {
  color: rgba(255, 255, 255, 0.7);
}

.process-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.process-list li {
  min-height: 255px;
  padding: 24px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 0 var(--line);
}

.process-list span {
  display: inline-block;
  margin-bottom: 36px;
  color: var(--blue);
  font-weight: 800;
}

.testimonials-section {
  position: relative;
  padding: clamp(70px, 10vw, 130px) clamp(20px, 5vw, 72px);
  background: #fff;
  --section-bg: #fff;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.testimonial-card {
  display: flex;
  min-height: 245px;
  flex-direction: column;
  justify-content: space-between;
  margin: 0;
  padding: 18px;
  background: var(--paper);
  border-radius: 8px;
  box-shadow: 0 1px 0 var(--line);
}

.testimonial-card blockquote {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.36;
}

.testimonial-card figcaption {
  display: grid;
  gap: 3px;
  margin-top: 20px;
  font-size: 14px;
}

.testimonial-card figcaption span {
  color: var(--muted);
}

.cta-band {
  justify-content: space-between;
  gap: 28px;
  background: var(--mint);
  --section-bg: var(--mint);
}

.cta-band div {
  width: min(750px, 100%);
}

.cta-band .eyebrow {
  color: var(--green);
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(320px, 0.86fr);
  gap: clamp(30px, 6vw, 90px);
  background: #fff;
  --section-bg: #fff;
}

.contact-copy p {
  font-size: 18px;
}

.contact-note {
  display: grid;
  justify-items: start;
  gap: 12px;
  margin-top: 30px;
}

.messenger-button {
  color: #fff;
  background: var(--blue);
}

.contact-form {
  display: grid;
  gap: 16px;
}

.hidden-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 50px;
  padding: 13px 14px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  font: inherit;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(54, 103, 232, 0.18);
  border-color: var(--blue);
}

.form-button {
  justify-self: start;
}

.site-footer {
  position: relative;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(20px, 5vw, 72px);
  background: #121212;
  --section-bg: #121212;
}

.footer-brand {
  display: grid;
  gap: 4px;
}

.footer-brand span:first-child {
  color: #fff;
  font-weight: 800;
}

.footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-socials a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 9px 12px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 7px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
}

.footer-socials a:hover {
  background: rgba(255, 255, 255, 0.1);
}

.portal-body {
  min-height: 100vh;
  background: #f7f4ee;
}

.portal-shell {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
  padding: 44px 0;
}

.portal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 30px;
}

.portal-panel,
.login-panel {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 0 var(--line), var(--shadow);
}

.login-panel {
  width: min(440px, calc(100% - 40px));
  margin: 12vh auto 0;
  padding: 30px;
}

.login-panel h1,
.portal-panel h1 {
  margin: 0 0 10px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1;
}

.login-panel p,
.portal-panel p {
  color: var(--muted);
}

.login-panel form,
.admin-form {
  display: grid;
  gap: 15px;
  margin-top: 24px;
}

.portal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.portal-panel {
  padding: 28px;
}

.portal-panel.full {
  grid-column: 1 / -1;
}

.portal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.pill {
  display: inline-flex;
  padding: 7px 10px;
  border-radius: 7px;
  color: var(--ink);
  background: var(--mint);
  font-weight: 800;
  font-size: 13px;
}

.portal-link-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
}

.portal-link-list a {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 7px;
  text-decoration: none;
  font-weight: 800;
}

.error-message,
.success-message {
  padding: 12px;
  border-radius: 7px;
  font-weight: 700;
}

.error-message {
  color: #8d1d12;
  background: #ffe2df;
}

.success-message {
  color: #155c45;
  background: #dff6eb;
}

@media (max-width: 900px) {
  .process-list,
  .intro-grid,
  .testimonial-grid,
  .service-band,
  .contact-section,
  .portal-grid {
    grid-template-columns: 1fr;
  }

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

  .process-list li {
    min-height: auto;
  }
}

@media (max-width: 720px) {
  .site-header {
    align-items: flex-start;
  }

  .nav-toggle {
    display: block;
    color: inherit;
  }

  .site-nav {
    position: absolute;
    top: 70px;
    left: 20px;
    right: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    color: var(--ink);
    background: #fff;
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 13px 12px;
  }

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

  .hero {
    min-height: 88vh;
  }

  .hero-overlay {
    background: linear-gradient(0deg, rgba(9, 12, 17, 0.88), rgba(9, 12, 17, 0.24));
  }

  .hero-content {
    padding-bottom: 42px;
  }

  .hero-logo {
    width: min(330px, 72vw);
    max-height: 26vh;
  }

  .hero-logo-corner {
    top: 92px;
    right: 18px;
  }

  .intro-band,
  .section,
  .service-band,
  .testimonials-section,
  .cta-band,
  .contact-section,
  .site-footer {
    --divider-height: 44px;
  }

  .cta-band,
  .site-footer,
  .portal-top {
    align-items: flex-start;
    flex-direction: column;
  }
}
