:root {
  --ink: #1a1714;
  --ink-soft: #5e564c;
  --paper: #f4efe4;
  --paper-deep: #ebe4d6;
  --copper: #c46a3a;
  --copper-hover: #b0572c;
  --line: rgba(26, 23, 20, 0.12);
  --font-display: "Syne", system-ui, sans-serif;
  --font-body: "Outfit", system-ui, sans-serif;
  --header-h: 5.25rem;
  --pad: clamp(1.25rem, 4vw, 3.5rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--copper);
  color: #fff;
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
}

/* --- Header --- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  border-bottom: 1px solid var(--line);
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(26, 23, 20, 0.12);
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), backdrop-filter 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.site-header.is-scrolled {
  background: #ffffff;
  border-bottom-color: var(--line);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--pad);
}

.logo img {
  width: clamp(7.5rem, 12vw, 9.5rem);
  height: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav__list a {
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--ink-soft);
  transition: color 0.2s ease;
}

.nav__list a:hover,
.nav__list a:focus-visible {
  color: var(--ink);
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 1.35rem;
  height: 1.5px;
  margin: 6px auto;
  background: var(--ink);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* --- Buttons --- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.35rem;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s var(--ease);
}

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

.btn--copper {
  background: var(--copper);
  color: #fff;
}

.btn--copper:hover,
.btn--copper:focus-visible {
  background: var(--copper-hover);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  border-color: var(--ink-soft);
}

/* --- Hero --- */

.hero {
  position: relative;
  height: 100dvh;
  min-height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
  display: flex;
  align-items: center;
  background:
    linear-gradient(rgba(26, 23, 20, 0.55), rgba(26, 23, 20, 0.62)),
    url("../img/hero_section.webp") center center / cover no-repeat;
}

.hero__content {
  position: relative;
  z-index: 1;
  width: min(100%, 720px);
  padding: calc(var(--header-h) + 1.5rem) var(--pad) 2rem;
}

.hero__eyebrow {
  margin-bottom: 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
}

.hero__title {
  margin-bottom: 1rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 4.2vw, 3.35rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #fff;
  text-wrap: pretty;
}

.hero__lead {
  margin-bottom: 1.75rem;
  max-width: 38rem;
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem 1rem;
  margin-bottom: 1.75rem;
  max-width: 34rem;
}

.hero__stats li {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding-right: 0.75rem;
  border-right: 1px solid rgba(255, 255, 255, 0.22);
}

.hero__stats li:last-child {
  border-right: 0;
  padding-right: 0;
}

.hero__stats strong {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
}

.hero__stats span {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.35;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn--ghost-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}

.btn--ghost-light:hover,
.btn--ghost-light:focus-visible {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 45% at 65% 25%, rgba(196, 106, 58, 0.18), transparent 55%),
    radial-gradient(ellipse 45% 35% at 15% 80%, rgba(196, 106, 58, 0.1), transparent 60%);
  z-index: 0;
}

/* --- About --- */

.about {
  position: relative;
  padding: clamp(3.5rem, 8vw, 6rem) var(--pad);
  background: #ffffff;
}

.about__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.about__sidebar {
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.about__portrait {
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper-deep);
  aspect-ratio: 3 / 4;
}

.about__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.about__identity {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.about__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
}

.about__role {
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.about__contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.55rem;
  width: fit-content;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--copper);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.about__contact-link:hover,
.about__contact-link:focus-visible {
  color: var(--copper-hover);
  border-bottom-color: var(--copper-hover);
}

.about__kicker {
  margin-bottom: 0.6rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copper);
}

.about__title {
  margin-bottom: 1.15rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.7rem, 2.6vw, 2.25rem);
  line-height: 1.15;
  color: var(--ink);
  text-wrap: pretty;
}

.about__subtitle {
  margin: 2rem 0 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.7rem);
  line-height: 1.2;
  color: var(--ink);
}

.about__quote {
  margin-bottom: 1.15rem;
  padding-left: 1rem;
  border-left: 3px solid var(--copper);
  color: var(--ink-soft);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.55;
}

.about__content p {
  margin-bottom: 0.9rem;
  max-width: 62ch;
  color: var(--ink-soft);
  line-height: 1.65;
}

/* --- Expertises --- */

.expertises {
  padding: clamp(3.5rem, 8vw, 6rem) var(--pad);
  background: var(--paper);
}

.expertises__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.expertises__intro {
  margin-bottom: clamp(2rem, 5vw, 3.25rem);
}

.expertises__kicker {
  margin-bottom: 0.6rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copper);
}

.expertises__title {
  margin-bottom: 0.9rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.7rem, 2.6vw, 2.25rem);
  line-height: 1.15;
  color: var(--ink);
  text-wrap: pretty;
}

.expertises__lead {
  max-width: 40rem;
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.6;
}

.expertises__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 2rem);
}

.expertise__media {
  aspect-ratio: 4 / 3;
  margin-bottom: 1rem;
  border: 1px solid var(--line);
  background: var(--paper-deep);
  overflow: hidden;
}

.expertise__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.expertise__name {
  margin-bottom: 0.45rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.25;
  color: var(--ink);
}

.expertise__text {
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.55;
}

/* --- Realisations --- */

.realisations {
  padding: clamp(3.5rem, 8vw, 6rem) var(--pad);
  background: #ffffff;
}

.realisations__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.realisations__intro {
  margin-bottom: clamp(2rem, 5vw, 3.25rem);
}

.realisations__kicker {
  margin-bottom: 0.6rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copper);
}

.realisations__title {
  margin-bottom: 0.9rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.7rem, 2.6vw, 2.25rem);
  line-height: 1.15;
  color: var(--ink);
  text-wrap: pretty;
}

.realisations__lead {
  max-width: 40rem;
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.6;
}

.realisations__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3.5vw, 2.25rem) clamp(1.25rem, 3vw, 2rem);
}

.realisations__grid > li {
  list-style: none;
}

.realisation {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
  transition: transform 0.25s var(--ease);
}

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

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

.realisation__media {
  aspect-ratio: 4 / 3;
  margin-bottom: 1rem;
  border: 1px solid var(--line);
  background: var(--paper-deep);
  overflow: hidden;
}

.realisation__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.35s var(--ease);
}

.realisation:hover .realisation__media img {
  transform: scale(1.03);
}

.realisation__title {
  margin-bottom: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.25;
  color: var(--ink);
}

.realisation__text {
  margin-bottom: 0.75rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.55;
}

.realisation__client {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--copper);
}

/* --- Gallery --- */

.gallery {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.gallery[hidden] {
  display: none;
}

.gallery__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 23, 20, 0.82);
}

.gallery__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 980px);
  background: #111;
  color: #fff;
  padding: 1.25rem 1.25rem 1rem;
}

.gallery__close {
  position: absolute;
  top: 0.5rem;
  right: 0.75rem;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.gallery__title {
  margin: 0 2rem 0.85rem 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
}

.gallery__stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: min(60vh, 520px);
  background: #000;
}

.gallery__image {
  max-width: 100%;
  max-height: min(60vh, 520px);
  width: auto;
  height: auto;
  object-fit: contain;
}

.gallery__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  width: 2.5rem;
  height: 2.5rem;
  font-size: 1.2rem;
  cursor: pointer;
}

.gallery__nav--prev {
  left: 0.5rem;
}

.gallery__nav--next {
  right: 0.5rem;
}

.gallery__nav:hover,
.gallery__nav:focus-visible {
  background: rgba(255, 255, 255, 0.22);
}

.gallery__counter {
  margin-top: 0.75rem;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

/* --- Contact --- */

.contact {
  padding: clamp(3.5rem, 8vw, 6rem) var(--pad);
  background: var(--copper);
  color: #fff;
}

.contact__inner {
  max-width: 560px;
  margin: 0 auto;
}

.contact__intro {
  margin-bottom: 2rem;
  text-align: center;
}

.contact__kicker {
  margin-bottom: 0.6rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}

.contact__title {
  margin-bottom: 0.85rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.7rem, 2.6vw, 2.25rem);
  line-height: 1.15;
}

.contact__lead {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.05rem;
  line-height: 1.6;
}

.contact__form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-field label {
  font-size: 0.88rem;
  font-weight: 600;
}

.form-optional {
  font-weight: 400;
  opacity: 0.8;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.4;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: rgba(255, 255, 255, 0.65);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.7);
}

.form-field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6l4 4 4-4' stroke='white' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-field select option {
  color: var(--ink);
  background: #fff;
}

.form-field textarea {
  resize: vertical;
  min-height: 140px;
}

.btn--contact {
  margin-top: 0.35rem;
  align-self: center;
  background: #fff;
  color: var(--copper);
  border-color: #fff;
}

.btn--contact:hover,
.btn--contact:focus-visible {
  background: var(--paper);
  color: var(--copper-hover);
  border-color: var(--paper);
}

/* --- Footer --- */

.site-footer {
  background: var(--ink);
  color: rgba(243, 239, 230, 0.82);
  padding: clamp(2.5rem, 6vw, 4rem) var(--pad) 1.5rem;
}

.footer__inner {
  max-width: 1200px;
  margin: 0 auto 2.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
}

.footer__logo img {
  width: 8.5rem;
  height: auto;
  margin-bottom: 1rem;
}

.footer__tagline {
  max-width: 34ch;
  font-size: 0.95rem;
  line-height: 1.55;
}

.footer__heading {
  margin-bottom: 0.85rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
}

.footer__nav ul {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer__nav a,
.footer__contact a {
  color: rgba(243, 239, 230, 0.82);
  transition: color 0.2s ease;
}

.footer__nav a:hover,
.footer__nav a:focus-visible,
.footer__contact a:hover,
.footer__contact a:focus-visible {
  color: #fff;
}

.footer__contact address {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.95rem;
  line-height: 1.5;
}

.footer__bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(243, 239, 230, 0.14);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: rgba(243, 239, 230, 0.62);
}

.footer__credit {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  line-height: 1;
}

.footer__credit a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: rgba(243, 239, 230, 0.88);
  font-weight: 600;
  line-height: 1;
  transition: color 0.2s ease;
}

.footer__credit a:hover,
.footer__credit a:focus-visible {
  color: #fff;
}

.footer__credit img {
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
  display: block;
}

/* --- Responsive --- */

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

  .nav {
    position: fixed;
    inset: var(--header-h) 0 0;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 2rem;
    padding: 2.5rem var(--pad);
    background: var(--paper);
    transform: translateX(100%);
    transition: transform 0.4s var(--ease);
  }

  .nav.is-open {
    transform: translateX(0);
  }

  .nav__list {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.35rem;
  }

  .nav__list a {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--ink);
  }

  .hero {
    display: flex;
  }

  .hero__copy {
    max-width: none;
  }

  .hero__plate {
    display: none;
  }

  .hero__stats {
    grid-template-columns: 1fr;
    max-width: none;
  }

  .hero__stats li {
    border-right: 0;
    padding-right: 0;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  }

  .hero__stats li:last-child {
    border-bottom: 0;
    padding-bottom: 0;
  }

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

  .about__sidebar {
    position: static;
    max-width: 280px;
  }

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

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

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

  .footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .expertises__grid {
    grid-template-columns: 1fr;
  }

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

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

  .footer__bottom {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
