:root {
  color-scheme: light dark;
  --bg: #fff7f1;
  --bg-alt: #fff1e6;
  --surface: rgba(249, 115, 22, 0.08);
  --accent: #f97316;
  --accent-strong: #ea580c;
  --accent-soft: rgba(249, 115, 22, 0.18);
  --text: #1f2933;
  --text-muted: rgba(51, 65, 85, 0.76);
  --border: rgba(249, 119, 22, 0.26);
  --card-bg: rgba(255, 255, 255, 0.96);
  --product-bg: rgba(255, 247, 237, 0.98);
  --service-bg: rgba(250, 204, 21, 0.14);
  --process-bg: rgba(255, 255, 255, 0.95);
  --hero-card-bg: linear-gradient(145deg, rgba(255, 239, 226, 0.96), rgba(255, 225, 205, 0.82));
  --hero-overlay-start: rgba(255, 247, 240, 0.95);
  --hero-overlay-end: rgba(255, 227, 211, 0.75);
  --hero-after-start: rgba(255, 255, 255, 0.78);
  --hero-after-end: rgba(255, 243, 233, 0.98);
  --texture-overlay-start: rgba(255, 242, 232, 0.92);
  --texture-overlay-end: rgba(255, 245, 237, 0.98);
  --nav-panel-bg: rgba(255, 241, 229, 0.96);
  --shadow-hero: rgba(234, 88, 12, 0.18);
  --grid-gap: clamp(1.25rem, 3vw, 2.5rem);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: var(--bg);
  color: var(--text);
}

body[data-theme="dark"] {
  color-scheme: dark light;
  --bg: #0d1014;
  --bg-alt: #14181f;
  --surface: rgba(148, 163, 184, 0.18);
  --accent: #fb923c;
  --accent-strong: #f97316;
  --accent-soft: rgba(251, 146, 60, 0.18);
  --text: #f9fbff;
  --text-muted: rgba(223, 231, 242, 0.82);
  --border: rgba(126, 142, 169, 0.42);
  --card-bg: rgba(20, 26, 36, 0.88);
  --product-bg: rgba(18, 24, 34, 0.9);
  --service-bg: rgba(251, 191, 36, 0.14);
  --process-bg: rgba(20, 26, 36, 0.88);
  --hero-card-bg: linear-gradient(145deg, rgba(24, 32, 44, 0.72), rgba(10, 16, 24, 0.55));
  --hero-overlay-start: rgba(18, 24, 34, 0.84);
  --hero-overlay-end: rgba(8, 12, 18, 0.62);
  --hero-after-start: rgba(12, 16, 24, 0.22);
  --hero-after-end: rgba(6, 10, 16, 0.52);
  --texture-overlay-start: rgba(16, 22, 30, 0.82);
  --texture-overlay-end: rgba(4, 8, 14, 0.96);
  --nav-panel-bg: rgba(10, 14, 22, 0.95);
  --shadow-hero: rgba(1, 5, 12, 0.5);
}

body[data-theme="dark"] .hero {
  border-bottom: 1px solid rgba(251, 191, 36, 0.18);
}

body[data-theme="dark"] .hero::after {
  background: linear-gradient(180deg, rgba(12, 16, 24, 0.18) 0%, rgba(6, 10, 16, 0.5) 100%);
}

body[data-theme="dark"] .nav__links a {
  color: rgba(226, 234, 248, 0.86);
}

body[data-theme="dark"] .nav__links a:hover {
  color: var(--accent);
}

body[data-theme="dark"] .nav__brand {
  color: #ffe8c7;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
}

body[data-theme="dark"] .theme-toggle {
  background: rgba(18, 24, 34, 0.82);
  border-color: rgba(126, 142, 169, 0.42);
  color: var(--text);
}

body[data-theme="dark"] .theme-toggle__label {
  color: rgba(223, 231, 242, 0.78);
}

body[data-theme="dark"] .theme-toggle__icon {
  box-shadow: inset 0 0 0 2px rgba(251, 191, 36, 0.28);
}

body[data-theme="dark"] .button--primary {
  color: #1e0a02;
  box-shadow: 0 12px 28px rgba(249, 115, 22, 0.36);
}

body[data-theme="dark"] .button--ghost {
  color: var(--text);
  border-color: rgba(126, 142, 169, 0.45);
}

body[data-theme="dark"] .card {
  box-shadow: 0 12px 36px rgba(0, 4, 12, 0.32);
}

body[data-theme="dark"] .card__media {
  border-bottom-color: rgba(249, 119, 22, 0.32);
  background: linear-gradient(160deg, rgba(249, 115, 22, 0.35), rgba(116, 64, 19, 0.55));
}

body[data-theme="dark"] .process__icon {
  filter: drop-shadow(0 8px 18px rgba(249, 115, 22, 0.32));
}

body[data-theme="dark"] .tail__aside {
  background: rgba(18, 24, 34, 0.88);
}

body[data-theme="dark"] .footer {
  background: linear-gradient(180deg, #101722 0%, #060b12 100%);
}

* {
  position: relative;
}

body {
  margin: 0;
  background: radial-gradient(circle at 20% 0, rgba(249, 115, 22, 0.22), transparent 52%),
    radial-gradient(circle at 80% 0, rgba(251, 191, 36, 0.18), transparent 60%), var(--bg);
  min-height: 100vh;
  transition: 0.3s ease, color 0.3s ease;
}

body.nav-open {
  overflow: hidden;
  height: 100vh;
  touch-action: none;
}

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

a:hover {
  color: var(--accent);
}

p {
  margin: 0;
  line-height: 1.6;
  color: var(--text-muted);
}

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

h1,
h2,
h3,
h4 {
  font-family: "Space Grotesk", "Inter", sans-serif;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--text);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 3vw, 2.75rem);
}

.nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1.5rem;
  width: 100%;
  padding: clamp(1rem, 3vw, 1.5rem) clamp(1.5rem, 4vw, 2.5rem);
  margin: clamp(0.75rem, 2vw, 1.25rem) auto clamp(1rem, 3vw, 1.75rem);
  border-radius: clamp(1rem, 3vw, 1.75rem);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(249, 119, 22, 0.14);
  backdrop-filter: blur(18px);
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.1);
  z-index: 120;
}

body[data-theme="dark"] .nav {
  background: rgba(12, 16, 24, 0.86);
  border: 1px solid rgba(126, 142, 169, 0.36);
  box-shadow: 0 24px 58px rgba(0, 6, 18, 0.42);
  backdrop-filter: blur(18px);
}

.nav__brand {
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--text);
}

.nav__spacer {
  flex: 1 1 auto;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex: 0 0 auto;
}

.nav__close {
  display: none;
}

.nav__close-bar {
  display: none;
}


.nav__links a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.1;
  transition: color 0.2s ease;
}

.nav__links a:hover,
.nav__links a:focus-visible {
  color: var(--accent);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 0 0 auto;
}

.nav__toggle {
  display: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 0.25rem;
}

.nav__toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.nav__toggle-bar {
  width: 24px;
  height: 2px;
  background: var(--text);
  display: block;
  margin: 5px 0;
  transition: transform 0.2s ease;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card-bg);
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
  color: var(--text);
}

.theme-toggle:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
}

  
.theme-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.theme-toggle__icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle at 60% 40%, rgba(249, 115, 22, 0.82) 0%, transparent 65%),
    linear-gradient(135deg, rgba(249, 115, 22, 0.3), rgba(255, 255, 255, 0));
  box-shadow: inset 0 0 0 2px rgba(249, 119, 22, 0.14);
}

.theme-toggle__label {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

body[data-theme="dark"] .theme-toggle__icon {
  background: radial-gradient(circle at 40% 40%, rgba(251, 191, 36, 0.92) 0%, transparent 65%),
    linear-gradient(135deg, rgba(251, 191, 36, 0.4), rgba(255, 255, 255, 0));
  box-shadow: inset 0 0 0 2px rgba(251, 191, 36, 0.24);
}

.hero {
  position: relative;
  padding-bottom: clamp(4rem, 10vw, 6.5rem);
  background-image: linear-gradient(140deg, var(--hero-overlay-start), var(--hero-overlay-end)),
    url("../images/hero_background.png");
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid rgba(249, 119, 22, 0.22);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--hero-after-start) 0%, var(--hero-after-end) 100%);
  pointer-events: none;
}

.hero > .container,
.hero__layout,
.nav,
.hero__grid {
  position: relative;
  z-index: 1;
}

.hero__layout {
  display: flex;
  align-items: flex-end;
  gap: clamp(2rem, 6vw, 4rem);
}

.hero__content {
  padding: clamp(2rem, 6vw, 4rem) 0;
  max-width: 720px;
}

.hero__portrait {
  flex: 0 0 clamp(220px, 26vw, 320px);
  align-self: stretch;
  display: flex;
  align-items: flex-end;
}

.hero__portrait img {
  width: 100%;
  border-radius: 1.5rem;
  border: 1px solid rgba(251, 191, 36, 0.32);
  box-shadow: 0 25px 45px var(--shadow-hero);
  object-fit: cover;
}

.hero__identity {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
}

.hero__name {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.35em;
  color: rgba(194, 65, 12, 0.92);
  font-weight: 600;
}

.hero__eyebrow {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--accent);
  margin-bottom: 1rem;
}

.hero__title {
  font-size: clamp(2.5rem, 7vw, 3.75rem);
  margin-bottom: 1rem;
  color: var(--text);
}

.hero__summary {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
}

body[data-theme="dark"] .hero__name {
  color: rgba(251, 191, 36, 0.9);
}

body[data-theme="dark"] .hero__eyebrow {
  color: rgba(251, 191, 36, 0.88);
}

body[data-theme="dark"] .hero__title {
  color: #fbfdff;
  text-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
}

body[data-theme="dark"] .hero__summary {
  color: rgba(223, 231, 242, 0.88);
}

body[data-theme="dark"] h1,
body[data-theme="dark"] h2,
body[data-theme="dark"] h3,
body[data-theme="dark"] h4 {
  color: #f8fbff;
}

body[data-theme="dark"] .section__intro p,
body[data-theme="dark"] .card p,
body[data-theme="dark"] .tail__aside ul,
body[data-theme="dark"] .tail__tags span,
body[data-theme="dark"] .footer__summary p {
  color: rgba(229, 235, 246, 0.86);
}

body[data-theme="dark"] .tail__tags span {
  background: rgba(249, 146, 60, 0.22);
  border-color: rgba(249, 119, 22, 0.38);
  color: #fef3e6;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.hero__grid {
  display: grid;
  gap: var(--grid-gap);
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-top: clamp(2.5rem, 6vw, 4rem);
}

.hero__card {
  padding: 1.75rem;
  border: 1px solid rgba(249, 119, 22, 0.18);
  border-radius: 1.1rem;
  background: var(--hero-card-bg);
}

.hero__card p {
  margin-top: 0.75rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.6rem;
  font-weight: 600;
  border-radius: 999px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.button--primary {
  background: linear-gradient(135deg, var(--accent-strong), var(--accent));
  color: #301207;
  box-shadow: 0 10px 25px rgba(249, 115, 22, 0.34);
}

.button--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.section {
  padding: clamp(4rem, 9vw, 5.5rem) 0;
}

.section--highlight {
  background: linear-gradient(180deg, rgba(249, 115, 22, 0.16), rgba(249, 115, 22, 0));
}

.section--band {
  background: var(--bg-alt);
}

.section--texture {
  background:
    linear-gradient(180deg, var(--texture-overlay-start), var(--texture-overlay-end)),
    url("../images/section_texture.png");
  background-size: cover;
  background-position: center;
}

.section__intro {
  max-width: 700px;
  margin-bottom: 2.5rem;
}

.section__intro p {
  margin-top: 0.75rem;
}

.cards {
  display: grid;
  gap: var(--grid-gap);
}

.cards--grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
  border: 1px solid var(--border);
  padding: 1.75rem;
  border-radius: 1rem;
  background: var(--card-bg);
  backdrop-filter: blur(18px);
}

.card__media {
  margin: -1.75rem -1.75rem 1.5rem;
  border-radius: 1rem 1rem 0 0;
  overflow: hidden;
  border-bottom: 1px solid rgba(249, 119, 22, 0.28);
  background: linear-gradient(160deg, rgba(249, 115, 22, 0.32), rgba(180, 83, 9, 0.62));
  aspect-ratio: 4 / 3;
  max-height: 220px;
}

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) brightness(1.08);
}

.card header p {
  margin-top: 0.65rem;
}

.card ul {
  list-style: none;
  margin: 1.2rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
  color: var(--text-muted);
}

.card ul li {
  position: relative;
  padding-left: 1.3rem;
}

.card ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
}

.card--product {
  background: var(--product-bg);
}

.card--product .card__summary {
  font-weight: 600;
  color: var(--text);
}

.card__outcome {
  margin-top: 0.75rem;
  color: var(--accent);
  font-weight: 500;
}

.card--service {
  background: var(--service-bg);
}

.process {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--grid-gap);
}

.process__step {
  background: var(--process-bg);
  border: 1px solid var(--border);
  padding: 1.75rem;
  border-radius: 1rem;
}

.process__icon {
  width: 44px;
  height: 44px;
  object-fit: contain;
  margin-bottom: 1.25rem;
  filter: drop-shadow(0 6px 14px rgba(249, 115, 22, 0.28));
}

.process__label {
  display: inline-block;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  margin-bottom: 1rem;
}

.tail {
  display: grid;
  gap: var(--grid-gap);
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  align-items: start;
}

.tail__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.tail__tags span {
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid rgba(249, 119, 22, 0.36);
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 600;
}

.tail__aside {
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.75rem;
  background: var(--card-bg);
}

.tail__aside ul {
  list-style: none;
  margin: 1.2rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
  color: var(--text-muted);
}

.tail__aside li::before {
  content: "»";
  color: var(--accent);
  margin-right: 0.4rem;
}

.footer {
  background: linear-gradient(180deg, #2d0f0b 0%, #1b0805 100%);
  padding: clamp(3.5rem, 8vw, 5rem) 0 0;
  margin-top: 4rem;
}

.footer__content {
  display: grid;
  gap: var(--grid-gap);
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: start;
}

.footer__summary p {
  max-width: 360px;
}

.footer__content .button {
  margin-top: 1.5rem;
}

.footer__content p {
  color: var(--text-muted);
}

.footer__copyright {
  border-top: 1px solid var(--border);
  margin-top: clamp(3rem, 6vw, 4rem);
  padding: 1.25rem 0;
  font-size: 0.85rem;
  color: rgba(226, 232, 240, 0.65);
}

@media (max-width: 880px) {
  .nav__toggle {
    display: block;
  }

  .nav__links {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: clamp(1.75rem, 5vw, 2.75rem);
    padding: calc(5rem + env(safe-area-inset-top)) clamp(1.75rem, 8vw, 3rem)
      clamp(4rem, 12vw, 5.5rem);
    background:
      linear-gradient(160deg, rgba(255, 255, 255, 0.6), rgba(249, 119, 22, 0.12)),
      var(--nav-panel-bg);
    backdrop-filter: blur(18px);
    border-radius: 0;
    border: 0;
    min-width: 0;
    box-shadow: 0 40px 120px rgba(15, 23, 42, 0.24);
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
  }

  .nav__links a {
    font-size: clamp(1.35rem, 5vw, 2rem);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0;
    text-shadow: 0 6px 24px rgba(15, 23, 42, 0.18);
  }

  .nav__close {
    display: inline-flex;
    position: absolute;
    top: clamp(1.5rem, 6vw, 2rem);
    right: clamp(1.5rem, 6vw, 2rem);
    width: 38px;
    height: 38px;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: rgba(255, 255, 255, 0.92);
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
  }

  .nav__close:hover,
  .nav__close:focus-visible {
    border-color: var(--accent);
    outline: none;
  }

  .nav__close-bar {
    display: block;
    position: absolute;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: #111827;
  }

  .nav__close-bar:first-child {
    transform: rotate(45deg);
  }

  .nav__close-bar:last-child {
    transform: rotate(-45deg);
  }

  body[data-theme="dark"] .nav__close {
    border: 1px solid rgba(126, 142, 169, 0.4);
    background: rgba(17, 24, 39, 0.92);
  }

  body[data-theme="dark"] .nav__close-bar {
    background: #f8fbff;
  }

  .nav__links[data-open="true"] .nav__close {
    opacity: 1;
    pointer-events: auto;
  }


  body[data-theme="dark"] .nav__links a {
    color: #f8fbff;
    text-shadow: 0 10px 30px rgba(0, 6, 18, 0.55);
  }

  .nav__links[data-open="true"] {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  body[data-theme="dark"] .nav__links {
    background:
      linear-gradient(180deg, rgba(12, 16, 24, 0.92), rgba(6, 10, 16, 0.94)),
      var(--nav-panel-bg);
    box-shadow: 0 40px 140px rgba(0, 6, 18, 0.58);
  }

  .nav__actions {
    gap: 0.5rem;
  }

  .hero__layout {
    flex-direction: column-reverse;
    align-items: center;
    text-align: center;
  }

  .hero__content {
    padding-top: 0;
  }

  .hero__summary {
    margin: 0 auto;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__portrait {
    max-width: 240px;
  }

  .theme-toggle {
    margin-left: auto;
  }
}

@media (max-width: 640px) {
  .hero__portrait {
    max-width: 200px;
  }

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

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

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

  .tail__aside {
    display: none;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .card__media {
    display: none;
  }

  .card {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero__portrait {
    display: none;
  }
  .footer__content{
    grid-template-columns: 1fr;
  }
  .footer__summary{
    display: none;
  }
  .tail__content{
    width: 100%;
  }
  .tail__aside {
    display: none;
  }
}
