:root {
  color-scheme: light;
  --ink: #17212b;
  --muted: #5d6875;
  --line: #d9e0e6;
  --paper: #f7f9fb;
  --white: #ffffff;
  --navy: #0a1723;
  --teal: #0f766e;
  --green: #3f8f46;
  --coral: #70716d;
  --gold: #b47a1f;
  --shadow: 0 22px 60px rgba(12, 29, 44, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

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

.site-header.is-scrolled {
  background: rgba(10, 23, 35, 0.94);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
  padding-block: 12px;
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 172px;
}

.brand-logo {
  width: 170px;
  height: 52px;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.42));
}

.site-nav {
  display: flex;
  gap: 28px;
  font-size: 0.95rem;
  font-weight: 650;
}

.site-nav a {
  opacity: 0.86;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  opacity: 1;
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  border: 0;
  background: transparent;
}

.language-switcher button {
  position: relative;
  min-width: 0;
  height: auto;
  padding: 4px 0;
  border: 0;
  border-radius: 0;
  color: rgba(255, 255, 255, 0.68);
  background: transparent;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  cursor: pointer;
}

.language-switcher button:hover,
.language-switcher button:focus-visible,
.language-switcher button.is-active {
  color: var(--white);
  background: transparent;
}

.language-switcher button.is-active::after {
  position: absolute;
  right: 0;
  bottom: -3px;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.menu-button span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--white);
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: var(--white);
}

.hero-slideshow,
.hero-slide,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-slideshow {
  background: #071018;
}

.hero-slide {
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 1200ms ease, transform 6000ms ease;
  filter: saturate(0.94) contrast(1.04) brightness(1.04);
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(4, 12, 20, 0.68) 0%, rgba(4, 12, 20, 0.46) 42%, rgba(4, 12, 20, 0.18) 100%),
    linear-gradient(0deg, rgba(10, 23, 35, 0.52) 0%, rgba(10, 23, 35, 0.03) 48%),
    rgba(20, 13, 8, 0.08);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(820px, calc(100% - 36px));
  margin-left: clamp(18px, 6vw, 82px);
  padding-top: 80px;
}

.hero-logo {
  width: clamp(220px, 28vw, 390px);
  height: auto;
  margin-bottom: 24px;
  filter: drop-shadow(0 16px 34px rgba(0, 0, 0, 0.58));
}

.eyebrow {
  display: none;
}

.hero h1 {
  margin: 0;
  max-width: 720px;
  font-size: clamp(2.45rem, 6vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero p:not(.eyebrow) {
  max-width: 650px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1rem, 1.8vw, 1.22rem);
}

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

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 12px 18px;
  font-weight: 800;
  cursor: pointer;
}

.button.primary {
  color: var(--white);
  background: var(--teal);
}

.button.primary:hover,
.button.primary:focus-visible {
  background: #0b665f;
}

.button.secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.08);
}

.section {
  padding: clamp(56px, 8vw, 104px) clamp(18px, 5vw, 72px);
}

.intro {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  background: var(--white);
}

.stat {
  border-left: 4px solid var(--green);
  padding: 10px 20px;
}

.stat:nth-child(2) {
  border-color: var(--coral);
}

.stat:nth-child(3) {
  border-color: var(--gold);
}

.stat strong {
  display: block;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
}

.stat span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  max-width: 330px;
}

.section-heading {
  max-width: 840px;
  margin-bottom: 34px;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.25;
}

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

.service-card {
  min-height: 270px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 28px rgba(12, 29, 44, 0.05);
}

.service-icon {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 42px;
  place-items: center;
  border-radius: 8px;
  color: var(--white);
  background: var(--teal);
  font-size: 1.4rem;
}

.service-card:nth-child(2) .service-icon {
  background: var(--coral);
}

.service-card:nth-child(3) .service-icon {
  background: var(--green);
}

.service-card:nth-child(4) .service-icon {
  background: var(--gold);
}

.service-card p,
.timeline p,
.work-card p,
.contact p {
  color: var(--muted);
}

.expertise {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: start;
  background: var(--navy);
  color: var(--white);
}

.expertise-copy p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.78);
  max-width: 570px;
}

.timeline {
  display: grid;
  gap: 14px;
}

.timeline div {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 8px 18px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

.timeline span {
  grid-row: span 2;
  color: var(--coral);
  font-weight: 900;
  font-size: 1.35rem;
}

.timeline p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

.projects {
  background: var(--white);
}

.work-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-flow: dense;
  grid-auto-rows: 190px;
  gap: 18px;
}

.work-card {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--navy);
  box-shadow: 0 12px 32px rgba(12, 29, 44, 0.12);
}

.work-card.featured {
  grid-column: span 2;
  grid-row: span 2;
}

.work-card.wide {
  grid-column: span 2;
}

.work-card.tall {
  grid-row: span 2;
}

.work-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 260ms ease;
}

.work-card::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(0deg, rgba(7, 16, 24, 0.86) 0%, rgba(7, 16, 24, 0.08) 62%);
}

.work-card div {
  position: absolute;
  z-index: 1;
  left: 18px;
  right: 18px;
  bottom: 18px;
  color: var(--white);
}

.work-card span {
  display: block;
  margin-bottom: 6px;
  color: #8dd9e8;
  font-size: 0.75rem;
  font-weight: 850;
  text-transform: uppercase;
}

.work-card h3 {
  max-width: 520px;
}

.work-card p {
  max-width: 590px;
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.78);
}

.work-card:hover img {
  transform: scale(1.035);
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.7fr);
  gap: clamp(28px, 6vw, 70px);
  align-items: start;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.domain-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  margin-top: 12px;
  border-bottom: 2px solid var(--teal);
  color: var(--teal);
  font-size: 1.25rem;
  font-weight: 850;
}

label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #c7d0d9;
  border-radius: 8px;
  padding: 13px 14px;
  color: var(--ink);
  background: #fbfcfd;
  font: inherit;
}

textarea {
  resize: vertical;
}

.instagram-planner {
  background: #edf3f6;
}

.instagram-workspace {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(300px, 0.65fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: start;
}

.instagram-form {
  display: grid;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.instagram-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.instagram-preview {
  display: grid;
  gap: 16px;
}

.phone-preview {
  overflow: hidden;
  border: 10px solid #071018;
  border-radius: 28px;
  background: #071018;
  box-shadow: var(--shadow);
}

.phone-media {
  position: relative;
  display: grid;
  min-height: 520px;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(15, 118, 110, 0.24), rgba(216, 91, 67, 0.2)),
    #111b24;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 850;
}

.phone-media img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
}

.phone-media::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(0deg, rgba(7, 16, 24, 0.58), rgba(7, 16, 24, 0.04) 46%);
  pointer-events: none;
}

.phone-caption {
  padding: 18px;
  color: var(--white);
}

.phone-caption strong {
  display: inline-flex;
  margin-bottom: 8px;
  color: #8dd9e8;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.phone-caption p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
}

.instagram-connection {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.form-note {
  min-height: 24px;
  margin: 0;
  color: var(--teal);
  font-weight: 750;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 28px clamp(18px, 5vw, 72px);
  color: var(--white);
  background: #071018;
}

.footer-logo {
  width: 150px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.36));
}

.site-footer span {
  color: rgba(255, 255, 255, 0.68);
}

.site-footer a {
  color: var(--white);
  font-weight: 800;
}

@media (max-width: 920px) {
  .menu-button {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 18px;
    right: 18px;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    background: rgba(10, 23, 35, 0.98);
    box-shadow: 0 20px 42px rgba(0, 0, 0, 0.28);
  }

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

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

  .language-switcher {
    order: 2;
    margin-left: auto;
  }

  .intro,
  .service-grid,
  .expertise,
  .instagram-workspace,
  .contact {
    grid-template-columns: 1fr;
  }

  .work-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 230px;
  }

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

  .service-icon {
    margin-bottom: 24px;
  }
}

@media (max-width: 580px) {
  .hero {
    min-height: 820px;
  }

  .hero-slide {
    object-position: 56% center;
  }

  .hero-overlay {
    background: linear-gradient(90deg, rgba(4, 12, 20, 0.88), rgba(4, 12, 20, 0.66));
  }

  .hero-content {
    width: calc(100% - 32px);
    margin-inline: 16px;
  }

  .hero-logo {
    width: min(76vw, 300px);
    margin-bottom: 18px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .timeline div {
    grid-template-columns: 1fr;
  }

  .timeline span {
    grid-row: auto;
  }

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

  .instagram-actions,
  .instagram-actions .button {
    width: 100%;
  }

  .phone-media,
  .phone-media img {
    min-height: 460px;
  }

  .work-gallery {
    grid-template-columns: 1fr;
    grid-auto-rows: 310px;
  }

  .work-card.featured,
  .work-card.wide,
  .work-card.tall {
    grid-column: auto;
    grid-row: auto;
  }

  .contact-form {
    padding: 18px;
  }
}

/* Editorial atelier direction: fewer repeated cards, stronger changes of rhythm. */
.intro {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 36px));
  margin: -54px auto 0;
  padding: 30px clamp(22px, 4vw, 48px);
  color: var(--white);
  background: #101a22;
  box-shadow: 0 24px 70px rgba(4, 12, 20, 0.26);
}

.stat {
  border-left-width: 1px;
  padding-block: 4px;
}

.stat span {
  color: rgba(255, 255, 255, 0.66);
}

.services {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(40px, 8vw, 120px);
  padding-top: clamp(100px, 12vw, 160px);
  background: #edf1f3;
}

.services .section-heading {
  position: sticky;
  top: 120px;
  align-self: start;
  margin: 0;
}

.services .section-heading h2 {
  max-width: 520px;
}

.services .seo-heading {
  max-width: 520px;
  margin: 0;
  font-size: 28px;
  line-height: 1.35;
  font-weight: 300;
  letter-spacing: 0;
}

.seo-intro {
  max-width: 640px;
  margin: 20px 0 0;
  font-size: 15px;
  line-height: 1.7;
  font-weight: 400;
}

@media (max-width: 640px) {
  .services .seo-heading { font-size: 22px; }
  .seo-intro { font-size: 14px; }
}

.service-grid {
  display: block;
  counter-reset: emtech-service;
  border-top: 1px solid #aeb8bf;
}

.service-card {
  position: relative;
  display: grid;
  grid-template-columns: 68px minmax(180px, 0.8fr) minmax(240px, 1.2fr);
  gap: 18px;
  min-height: 0;
  padding: 30px 0;
  border: 0;
  border-bottom: 1px solid #aeb8bf;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  counter-increment: emtech-service;
}

.service-card::before {
  content: "0" counter(emtech-service);
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 900;
}

.service-icon {
  position: absolute;
  right: 0;
  bottom: 24px;
  width: 30px;
  height: 30px;
  margin: 0;
  border-radius: 50%;
  opacity: 0.2;
}

.service-card h3 {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
}

.service-card p {
  max-width: 520px;
  margin: 0 42px 0 0;
}

.expertise {
  display: block;
  padding-block: clamp(78px, 10vw, 132px);
}

.expertise-copy {
  display: grid;
  grid-template-columns: 0.45fr 1.2fr 0.9fr;
  gap: clamp(24px, 5vw, 70px);
  align-items: start;
  margin-bottom: 64px;
}

.expertise-copy .eyebrow,
.expertise-copy h2,
.expertise-copy p {
  margin-top: 0;
}

.timeline {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.timeline div {
  display: block;
  min-height: 260px;
  padding: 28px clamp(20px, 3vw, 38px) 18px 0;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 0;
  background: transparent;
}

.timeline div + div {
  padding-left: clamp(20px, 3vw, 38px);
}

.timeline div:last-child {
  border-right: 0;
}

.timeline span {
  display: block;
  margin-bottom: 66px;
  font-size: 0.82rem;
}

.timeline h3 {
  margin-bottom: 12px;
  font-size: clamp(1.45rem, 2.5vw, 2.2rem);
}

.projects {
  padding-top: clamp(90px, 11vw, 150px);
}

.projects .section-heading {
  display: grid;
  grid-template-columns: 0.45fr 1.55fr;
  gap: clamp(24px, 5vw, 70px);
  max-width: none;
  margin-bottom: 54px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.work-gallery {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: 250px;
  gap: 16px;
}

.work-card,
.work-card.featured,
.work-card.wide,
.work-card.tall {
  grid-column: span 4;
  grid-row: span 1;
  border-radius: 0;
  box-shadow: none;
}

.work-card:nth-child(1) {
  grid-column: span 8;
  grid-row: span 2;
}

.work-card:nth-child(2),
.work-card:nth-child(3) {
  grid-column: span 4;
}

.work-card:nth-child(4) {
  grid-column: span 5;
}

.work-card:nth-child(5) {
  grid-column: span 7;
}

.work-card:nth-child(6),
.work-card:nth-child(7),
.work-card:nth-child(8) {
  grid-column: span 4;
}

.work-card:nth-child(9) {
  grid-column: 3 / span 8;
  grid-row: span 2;
}

.work-card:nth-child(n + 10) {
  display: none;
}

.work-gallery.is-expanded .work-card:nth-child(n + 10) {
  display: block;
}

.work-gallery.is-expanded .work-card:nth-child(3n + 10) {
  grid-column: span 8;
}

.work-card::after {
  background: linear-gradient(0deg, rgba(5, 12, 18, 0.82), rgba(5, 12, 18, 0.02) 68%);
}

.work-card div {
  bottom: 22px;
  left: 22px;
  right: 22px;
}

.work-card span {
  color: #a8e0dc;
}

.gallery-actions {
  display: flex;
  justify-content: center;
  margin-top: 38px;
}

.gallery-toggle {
  min-height: 48px;
  padding: 10px 4px;
  border: 0;
  border-bottom: 2px solid var(--coral);
  color: var(--ink);
  background: transparent;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.instagram-planner {
  border-top: 1px solid #cbd5db;
}

.contact {
  color: var(--white);
  background: #101a22;
}

.contact p {
  color: rgba(255, 255, 255, 0.7);
}

.contact .contact-form {
  color: var(--ink);
  box-shadow: none;
}

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

  .services .section-heading {
    position: static;
  }

  .expertise-copy {
    grid-template-columns: 1fr;
  }

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

  .timeline div,
  .timeline div + div {
    min-height: 0;
    padding: 26px 0;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  }

  .timeline span {
    margin-bottom: 28px;
  }

  .projects .section-heading {
    grid-template-columns: 1fr;
  }

  .work-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 280px;
  }

  .work-card,
  .work-card.featured,
  .work-card.wide,
  .work-card.tall,
  .work-card:nth-child(n),
  .work-gallery.is-expanded .work-card:nth-child(n + 10),
  .work-gallery.is-expanded .work-card:nth-child(3n + 10) {
    grid-column: span 1;
    grid-row: span 1;
  }

  .work-card:nth-child(1),
  .work-card:nth-child(9) {
    grid-column: span 2;
    grid-row: span 2;
  }
}

@media (max-width: 580px) {
  .intro {
    width: calc(100% - 24px);
    margin-top: -36px;
    padding: 24px;
  }

  .service-card {
    grid-template-columns: 48px 1fr;
  }

  .service-card p {
    grid-column: 2;
    margin-right: 34px;
  }

  .work-gallery {
    grid-template-columns: 1fr;
    grid-auto-rows: 330px;
  }

  .work-card,
  .work-card.featured,
  .work-card.wide,
  .work-card.tall,
  .work-card:nth-child(n),
  .work-card:nth-child(1),
  .work-card:nth-child(9),
  .work-gallery.is-expanded .work-card:nth-child(n + 10),
  .work-gallery.is-expanded .work-card:nth-child(3n + 10) {
    grid-column: 1;
    grid-row: span 1;
  }

  .work-card:nth-child(1),
  .work-card:nth-child(9) {
    min-height: 430px;
  }
}

/* Uniform project gallery and full-screen image viewer. */
.work-gallery {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: auto;
  gap: 14px;
}

.work-card,
.work-card.featured,
.work-card.wide,
.work-card.tall,
.work-card:nth-child(n),
.work-gallery.is-expanded .work-card:nth-child(n + 10),
.work-gallery.is-expanded .work-card:nth-child(3n + 10) {
  grid-column: auto;
  grid-row: auto;
  width: 100%;
  min-height: 0;
  aspect-ratio: 4 / 3;
  cursor: zoom-in;
}

.work-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.work-card::after,
.work-card div {
  display: none;
}

.work-card:hover img,
.work-card:focus-visible img {
  transform: scale(1.025);
  filter: brightness(1.06);
}

.work-card:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 3px;
}

.lightbox {
  width: 100vw;
  max-width: none;
  height: 100vh;
  max-height: none;
  margin: 0;
  padding: 28px clamp(58px, 8vw, 116px);
  border: 0;
  color: var(--white);
  background: rgba(4, 10, 15, 0.96);
}

.lightbox[open] {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 52px;
  align-items: center;
  gap: clamp(10px, 2vw, 28px);
}

.lightbox::backdrop {
  background: rgba(4, 10, 15, 0.86);
}

.lightbox img {
  grid-column: 2;
  width: 100%;
  height: min(86vh, 900px);
  object-fit: contain;
}

.lightbox button {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 50%;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  font: inherit;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox button:hover,
.lightbox button:focus-visible {
  background: rgba(255, 255, 255, 0.18);
}

.lightbox-close {
  position: fixed;
  z-index: 2;
  top: 22px;
  right: 22px;
}

.lightbox-previous {
  grid-column: 1;
  grid-row: 1;
}

.lightbox-next {
  grid-column: 3;
  grid-row: 1;
}

@media (max-width: 920px) {
  .work-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 580px) {
  .work-gallery {
    grid-template-columns: 1fr;
  }

  .work-card,
  .work-card.featured,
  .work-card.wide,
  .work-card.tall,
  .work-card:nth-child(n),
  .work-card:nth-child(1),
  .work-card:nth-child(9) {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .lightbox {
    padding: 72px 12px 18px;
  }

  .lightbox[open] {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    gap: 6px;
  }

  .lightbox img {
    height: 76vh;
  }

  .lightbox button {
    width: 42px;
    height: 42px;
  }
}

/* Warm, restrained studio direction inspired by specialist design/build portfolios. */
:root {
  --ink: #171918;
  --muted: #555b59;
  --line: #969991;
  --paper: #c7c4bc;
  --white: #f3f1eb;
  --navy: #111515;
  --teal: #5e7471;
  --green: #66745d;
  --coral: #a54f36;
  --gold: #94703b;
}

body {
  background: #bbb8b0;
}

.site-header {
  padding-block: 15px;
}

.site-header.is-scrolled {
  background: rgba(15, 18, 18, 0.93);
  box-shadow: none;
}

.brand-logo {
  width: 142px;
  height: 42px;
}

.site-nav {
  gap: clamp(18px, 2.6vw, 38px);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.button {
  min-height: 44px;
  border-radius: 0;
  padding-inline: 20px;
  font-size: 0.88rem;
  font-weight: 750;
}

.button.primary {
  color: #161918;
  background: #eeeae1;
}

.button.primary:hover,
.button.primary:focus-visible {
  background: #ffffff;
}

.hero {
  min-height: 88vh;
  align-items: end;
}

.hero-slide {
  transform: none;
  transition: none;
  filter: saturate(1.06) contrast(1.03) brightness(1.09) sepia(0.06);
}

.hero-slide.is-active {
  transform: none;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(7, 10, 10, 0.56), rgba(7, 10, 10, 0.06) 72%),
    linear-gradient(0deg, rgba(7, 10, 10, 0.58), rgba(7, 10, 10, 0.01) 65%);
}

.hero-content {
  width: min(700px, calc(100% - 36px));
  margin: 0 0 clamp(50px, 8vh, 92px) clamp(18px, 5vw, 72px);
  padding-top: 110px;
}

.hero-logo {
  display: none;
}

.eyebrow,
.focus-panel p {
  color: #c16a4d;
  font-size: 0.72rem;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 620px;
  font-size: clamp(2.1rem, 4vw, 3.65rem);
  line-height: 1.03;
  font-weight: 600;
}

.hero p:not(.eyebrow) {
  max-width: 590px;
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1rem, 1.35vw, 1.12rem);
}

.hero-actions {
  margin-top: 28px;
}

.intro {
  display: none;
}

.focus {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  padding: 1px 0;
  background: #171918;
}

.focus-panel {
  position: relative;
  min-height: min(72vh, 760px);
  overflow: hidden;
  color: var(--white);
  background: #171918;
}

.focus-panel::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(0deg, rgba(8, 11, 11, 0.86), rgba(8, 11, 11, 0.08) 66%),
    rgba(10, 13, 13, 0.16);
}

.focus-panel > img {
  width: 100%;
  height: 100%;
  min-height: min(72vh, 760px);
  object-fit: cover;
  transform: scale(1.035);
  filter: saturate(0.76) contrast(1.03);
  transition: transform 1200ms cubic-bezier(0.2, 0.6, 0.2, 1), filter 500ms ease;
}

.focus-panel:hover > img,
.focus-panel:focus-visible > img {
  transform: scale(1.085);
  filter: saturate(0.96) contrast(1.03);
}

.focus-panel > span {
  position: absolute;
  z-index: 2;
  top: 26px;
  left: 28px;
  font-size: 0.72rem;
  font-weight: 800;
}

.focus-panel > div {
  position: absolute;
  z-index: 2;
  right: clamp(24px, 5vw, 70px);
  bottom: clamp(28px, 6vw, 72px);
  left: clamp(24px, 5vw, 70px);
}

.focus-panel p {
  margin: 0 0 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.focus-panel h2 {
  max-width: 520px;
  color: var(--white);
  font-size: clamp(1.65rem, 2.75vw, 2.7rem);
  font-weight: 600;
}

h2,
.projects .section-heading h2,
.expertise-copy h2 {
  font-size: clamp(1.8rem, 3.1vw, 3.15rem);
  font-weight: 600;
  line-height: 1.08;
}

.section {
  padding-block: clamp(72px, 9vw, 126px);
}

.services {
  padding-top: clamp(78px, 10vw, 132px);
  background: #cbc8c0;
}

.service-grid {
  border-color: #92958e;
}

.service-card {
  border-color: #92958e;
}

.service-icon {
  display: none;
}

.service-card h3 {
  font-size: clamp(1.2rem, 1.65vw, 1.55rem);
  font-weight: 650;
}

.expertise {
  background: #151919;
}

.projects {
  background: #bcb9b1;
}

.projects .section-heading {
  align-items: end;
  border-color: #92958e;
}

.work-card img {
  filter: saturate(0.82) contrast(1.02);
  transition: transform 700ms cubic-bezier(0.2, 0.6, 0.2, 1), filter 450ms ease;
}

.work-card:hover img,
.work-card:focus-visible img {
  transform: scale(1.045);
  filter: saturate(1) contrast(1.03) brightness(1.03);
}

.instagram-planner {
  display: none;
}

.contact {
  background: #171a1a;
}

.contact-form {
  border-color: rgba(255, 255, 255, 0.16);
  border-radius: 0;
  background: #d0cdc5;
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: #111414;
}

.reveal-item {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 750ms ease, transform 900ms cubic-bezier(0.2, 0.6, 0.2, 1);
}

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

@media (max-width: 920px) {
  .hero {
    min-height: min(820px, 100svh);
  }

  .hero-content {
    width: min(640px, calc(100% - 64px));
    margin-right: 32px;
    margin-left: 32px;
  }

  .language-switcher {
    gap: 2px;
  }

  .language-switcher button {
    min-width: 32px;
    height: 44px;
    padding: 0;
  }

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

  .focus-panel,
  .focus-panel > img {
    min-height: 64vh;
  }
}

@media (max-width: 580px) {
  .site-header {
    padding-right: 12px;
    padding-left: 12px;
  }

  .brand {
    min-width: 0;
  }

  .brand-logo {
    width: 112px;
  }

  .menu-button {
    width: 40px;
    height: 40px;
  }

  .hero {
    min-height: min(760px, 100svh);
  }

  .hero-slide {
    object-position: 54% center;
  }

  .hero-content {
    width: calc(100% - 32px);
    margin: 0 auto 42px;
    text-align: center;
  }

  .hero h1 {
    max-width: 18rem;
    margin-right: auto;
    margin-left: auto;
    font-size: 15px;
    font-weight: 300;
    line-height: 1.3;
  }

  .hero-content > p:not(.eyebrow) {
    display: none;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 22px;
  }

  .hero-actions .button {
    width: auto;
    min-height: 0;
    padding: 5px 0;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.58);
    color: rgba(255, 255, 255, 0.92);
    background: transparent;
    font-size: 0.72rem;
    font-weight: 450;
  }

  .hero-actions .button:hover,
  .hero-actions .button:focus-visible {
    color: var(--white);
    background: transparent;
    border-bottom-color: var(--white);
  }

  .focus-panel,
  .focus-panel > img {
    min-height: 560px;
  }

  .focus-panel h2 {
    font-size: 2rem;
  }
}

@media (hover: none) and (pointer: coarse) {
  .site-nav a {
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .language-switcher {
    gap: 2px;
  }

  .language-switcher button {
    min-width: 32px;
    height: 44px;
    padding: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide,
  .focus-panel > img,
  .work-card img,
  .reveal-item {
    transition: none;
  }

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