:root {
  --color-yellow: #f5b400;
  --color-yellow-soft: #fff3cd;
  --color-charcoal: #1f2329;
  --color-white: #ffffff;
  --color-light: #f5f5f5;
  --color-text: #666666;
  --color-line: rgba(31, 35, 41, 0.1);
  --shadow-soft: 0 18px 60px rgba(31, 35, 41, 0.1);
  --shadow-hover: 0 24px 70px rgba(31, 35, 41, 0.14);
  --radius-sm: 8px;
  --radius-xs: 6px;
  --container: 1160px;
  --header-height: 76px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--color-text);
  background: var(--color-white);
  font-family: "Inter", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

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

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

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

:focus-visible {
  outline: 3px solid rgba(245, 180, 0, 0.62);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 10px 14px;
  color: var(--color-charcoal);
  background: var(--color-yellow);
  border-radius: var(--radius-xs);
  transform: translateY(-140%);
  transition: transform 180ms ease;
}

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

.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

.section {
  padding-block: 92px;
  scroll-margin-top: calc(var(--header-height) + 24px);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid transparent;
  backdrop-filter: saturate(180%) blur(18px);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled {
  border-color: var(--color-line);
  box-shadow: 0 8px 30px rgba(31, 35, 41, 0.05);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 62px;
  color: var(--color-charcoal);
  font-weight: 800;
}

.brand-logo {
  width: auto;
  height: 64px;
  object-fit: contain;
}

.brand-fallback {
  display: none;
  align-items: center;
  min-height: 40px;
  color: var(--color-charcoal);
  font-size: 18px;
  font-weight: 800;
}

body.logo-missing .brand-logo {
  display: none;
}

body.logo-missing .brand-fallback {
  display: inline-flex;
}

.nav-panel {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 13px;
  color: rgba(31, 35, 41, 0.76);
  border-radius: var(--radius-xs);
  font-size: 14px;
  font-weight: 600;
  transition: color 180ms ease, background 180ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--color-charcoal);
  background: rgba(31, 35, 41, 0.05);
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--color-charcoal);
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-xs);
  cursor: pointer;
}

.menu-toggle span {
  position: absolute;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-toggle span:nth-child(1) {
  transform: translateY(-6px);
}

.menu-toggle span:nth-child(3) {
  transform: translateY(6px);
}

.menu-open .menu-toggle span:nth-child(1) {
  transform: rotate(45deg);
}

.menu-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}

.menu-open .menu-toggle span:nth-child(3) {
  transform: rotate(-45deg);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: var(--color-charcoal);
  background: var(--color-yellow);
  box-shadow: 0 10px 24px rgba(245, 180, 0, 0.24);
}

.btn-primary:hover {
  box-shadow: 0 16px 32px rgba(245, 180, 0, 0.28);
}

.btn-secondary {
  color: var(--color-charcoal);
  background: var(--color-white);
  border-color: var(--color-line);
}

.btn-secondary:hover {
  border-color: rgba(31, 35, 41, 0.18);
  box-shadow: 0 12px 30px rgba(31, 35, 41, 0.08);
}

.hero {
  position: relative;
  padding-block: 44px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(245, 245, 245, 0.55), rgba(255, 255, 255, 0) 48%),
    var(--color-white);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.86fr);
  align-items: center;
  gap: 54px;
}

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

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

h1,
h2,
h3,
blockquote {
  margin: 0;
  color: var(--color-charcoal);
  line-height: 1.06;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  font-size: clamp(46px, 6.5vw, 76px);
  font-weight: 800;
}

h2 {
  max-width: 760px;
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 800;
}

h3 {
  font-size: 22px;
  font-weight: 800;
}

.hero-subtitle {
  max-width: 650px;
  margin: 22px 0 0;
  color: rgba(31, 35, 41, 0.68);
  font-size: clamp(18px, 2vw, 20px);
  line-height: 1.55;
}

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

.hero-visual {
  position: relative;
  justify-self: center;
  width: min(100%, 500px);
}

.hero-visual img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 34px 56px rgba(31, 35, 41, 0.14));
}

.hero-logo {
  width: min(100%, 430px);
}

.hero-logo img {
  filter: drop-shadow(0 28px 48px rgba(31, 35, 41, 0.12));
}

.section-heading {
  max-width: 780px;
  margin-bottom: 36px;
}

.section-heading p:not(.eyebrow) {
  max-width: 660px;
  margin: 22px 0 0;
  font-size: 18px;
}

.card-grid {
  display: grid;
  gap: 20px;
}

.services {
  background: var(--color-white);
}

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

.service-card,
.project-card,
.quote-card,
.contact-panel {
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  background: var(--color-white);
}

.service-card {
  padding: 30px;
  min-height: 260px;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: rgba(31, 35, 41, 0.16);
  box-shadow: var(--shadow-hover);
}

.service-icon {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 26px;
  color: var(--color-charcoal);
  background: var(--color-yellow);
  border-radius: var(--radius-sm);
}

.service-icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.service-card p {
  margin: 16px 0 0;
}

.work {
  background: var(--color-light);
}

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

.project-card {
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

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

.project-card img {
  width: 100%;
  aspect-ratio: 1.52 / 1;
  object-fit: cover;
  background: #e9eaec;
}

.project-content {
  padding: 24px;
}

.project-category {
  display: inline-flex;
  margin-bottom: 12px;
  color: rgba(31, 35, 41, 0.62);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.project-content p {
  margin: 12px 0 20px;
}

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

.text-link::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-left: 8px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 180ms ease;
}

.text-link:hover::after {
  transform: translateX(3px) rotate(45deg);
}

.philosophy {
  background: var(--color-white);
}

.philosophy-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 0.78fr);
  align-items: center;
  gap: 48px;
}

.quote-card {
  position: relative;
  padding: 42px;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(245, 180, 0, 0.12), rgba(255, 255, 255, 0) 54%),
    var(--color-white);
  box-shadow: var(--shadow-soft);
}

.quote-card::before {
  content: "“";
  position: absolute;
  top: -32px;
  right: 26px;
  color: rgba(245, 180, 0, 0.28);
  font-size: 136px;
  font-weight: 800;
  line-height: 1;
}

.quote-card blockquote {
  position: relative;
  font-size: clamp(24px, 3.2vw, 36px);
  font-weight: 800;
}

.quote-card figcaption {
  margin-top: 24px;
  color: var(--color-charcoal);
  font-weight: 800;
}

.stats {
  padding-block: 42px;
  background: var(--color-charcoal);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.1);
}

.stat-card {
  min-height: 160px;
  padding: 30px 22px;
  background: var(--color-charcoal);
}

.stat-card strong,
.stat-card span {
  display: block;
}

.stat-card strong {
  color: var(--color-white);
  font-size: clamp(38px, 5vw, 58px);
  font-weight: 800;
  line-height: 1;
}

.stat-card span:last-child {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.68);
  font-weight: 600;
}

.contact {
  background: var(--color-light);
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 34px;
  padding: clamp(34px, 6vw, 68px);
  background:
    linear-gradient(135deg, rgba(245, 180, 0, 0.16), rgba(255, 255, 255, 0) 44%),
    var(--color-white);
  box-shadow: var(--shadow-soft);
}

.contact-panel h2 {
  max-width: 680px;
}

.contact-panel p:not(.eyebrow) {
  max-width: 660px;
  margin: 18px 0 0;
  font-size: 18px;
}

.site-footer {
  padding-block: 34px;
  color: rgba(255, 255, 255, 0.7);
  background: var(--color-charcoal);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 28px;
}

.footer-brand {
  display: inline-flex;
  color: var(--color-white);
  font-size: 18px;
  font-weight: 800;
}

.site-footer p {
  margin: 8px 0 0;
  font-size: 14px;
}

.footer-links,
.social-links {
  display: flex;
  align-items: center;
}

.footer-links {
  flex-wrap: wrap;
  gap: 16px;
  font-size: 14px;
  font-weight: 600;
}

.footer-links a,
.social-links a {
  transition: color 180ms ease, background 180ms ease;
}

.footer-links a:hover {
  color: var(--color-white);
}

.social-links {
  gap: 8px;
}

.social-links a {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xs);
}

.social-links a:hover {
  background: rgba(245, 180, 0, 0.22);
}

.social-links svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 620ms ease, transform 620ms ease;
}

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

@media (max-width: 980px) {
  .section {
    padding-block: 76px;
  }

  .hero {
    min-height: auto;
    padding-block: 64px;
  }

  .hero-grid,
  .philosophy-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    max-width: 560px;
  }

  .services-grid,
  .work-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    justify-items: start;
  }
}

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

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

  body.menu-open .site-header {
    background: var(--color-white);
  }

  .menu-toggle {
    display: inline-flex;
  }

  .nav-panel {
    position: fixed;
    inset: var(--header-height) 0 auto 0;
    display: grid;
    gap: 18px;
    width: 100%;
    padding: 18px 16px 22px;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--color-line);
    box-shadow: 0 24px 60px rgba(31, 35, 41, 0.12);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

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

  .nav-links {
    display: grid;
    gap: 4px;
  }

  .nav-links a,
  .nav-cta {
    width: 100%;
    justify-content: center;
  }

  h1 {
    font-size: clamp(40px, 12vw, 58px);
  }

  .hero-actions .btn {
    flex: 1 1 160px;
  }

  .services-grid,
  .work-grid,
  .stats-grid,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: auto;
  }

  .stat-card {
    min-height: 130px;
  }

  .contact-panel .btn {
    width: 100%;
  }
}

@media (max-width: 440px) {
  .container {
    width: min(100% - 24px, var(--container));
  }

  .section {
    padding-block: 64px;
  }

  .hero {
    padding-block: 58px 52px;
  }

  .btn {
    width: 100%;
  }

  .quote-card,
  .project-content,
  .service-card {
    padding: 24px;
  }

  .footer-links {
    display: grid;
  }
}

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

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