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

:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --ink: #13161b;
  --ink-soft: #4f5661;
  --ink-muted: #3d4550;
  --ink-faint: rgba(20, 24, 28, 0.38);
  --line: #dbdee3;
  --accent: #1e232c;
  --white: #fff;
  --bg-glass: rgba(255, 255, 255, 0.82);
  --bg-glass-solid: rgba(255, 255, 255, 0.92);
  --bg-glass-dense: rgba(255, 255, 255, 0.98);
  --bg-overlay: rgba(19, 22, 27, 0.08);
  --button-primary-bg: #424d5c;
  --button-primary-hover-bg: #1e232c;
  --button-soft-bg: #eaecf0;
  --button-soft-hover-bg: #dde0e6;
  --button-soft-border: #b9c1cb;
  --button-soft-hover-border: #a4acb8;
  --radius: 0;
  --action-radius: 0;
  --header-height: 72px;
  --shadow: 0 24px 60px rgba(14, 18, 25, 0.09);
  --shadow-elevated: 0 20px 46px rgba(18, 22, 30, 0.1);
  --shadow-elevated-hover: 0 28px 58px rgba(18, 22, 30, 0.14);
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body: "Montserrat", "Segoe UI", Arial, sans-serif;

  --fw-light: 300;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;

  --fs-body: 0.8rem;
  --fs-body-md: 1rem;
  --fs-body-sm: 0.9rem;

  --fs-card-title: 1.05rem;
  --fs-nav-brand: 1.08rem;
  --fs-caption: 0.84rem;
  --fs-label: 0.82rem;
  --fs-btn: 0.78rem;
  --fs-micro: 0.625rem;
  --fs-micro-sm: 0.62rem;
  --fs-scroll: 0.66rem;

  --fs-mobile-nav: 0.96rem;

  --ls-body: 0.012em;
  --ls-normal: 0.02em;
  --ls-wide: 0.04em;
  --ls-caps: 0.14em;
  --ls-caps-wide: 0.16em;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-weight: var(--fw-regular);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.62;
  letter-spacing: var(--ls-body);
}

h1, h2 { font-family: var(--font-heading); }

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.container { width: min(1160px, 92%); margin: 0 auto; }

.navbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 4%;
  border-bottom: 1px solid var(--line);
  background: var(--bg-glass);
  backdrop-filter: blur(10px) saturate(140%);
  min-height: var(--header-height);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.nav-toggle-lines {
  position: relative;
  width: 18px;
  height: 12px;
}

.nav-toggle-lines span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
  transition: transform 0.2s ease, opacity 0.2s ease, top 0.2s ease;
}

.nav-toggle-lines span:nth-child(1) { top: 0; }
.nav-toggle-lines span:nth-child(2) { top: 5px; }
.nav-toggle-lines span:nth-child(3) { top: 10px; }

.navbar.nav-open .nav-toggle-lines span:nth-child(1) {
  top: 5px;
  transform: rotate(45deg);
}

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

.navbar.nav-open .nav-toggle-lines span:nth-child(3) {
  top: 5px;
  transform: rotate(-45deg);
}

.navbar.solid {
  border-bottom-color: var(--line);
  background: var(--bg-glass-solid);
}

.brand {
  font-family: var(--font-heading);
  font-weight: var(--fw-regular);
  letter-spacing: var(--ls-wide);
  text-transform: none;
  font-size: var(--fs-nav-brand);
  display: inline-flex;
  align-items: center;
  gap: 0;
  margin-left: calc(-4vw - 20px);
  overflow: hidden;
}

.brand-logo {
  height: 64px;
  width: auto;
  display: block;
  margin-left: -14px;
}


.scroll-indicator {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--bg-glass-solid);
  font-size: var(--fs-scroll);
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  z-index: 4;
  opacity: 0.88;
}

.scroll-indicator-icon {
  width: 17px;
  height: 29px;
  border: 1px solid var(--bg-glass);
  border-radius: 999px;
  position: relative;
}

.scroll-indicator-icon::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 50%;
  width: 3px;
  height: 6px;
  border-radius: 999px;
  background: var(--bg-glass);
  transform: translateX(-50%);
  animation: scrollDot 1.7s ease-in-out infinite;
}

.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a {
  font-family: var(--font-heading);
  font-size: var(--fs-body-md);
  letter-spacing: var(--ls-normal);
  text-transform: none;
  color: var(--ink-soft);
  font-weight: var(--fw-medium);
}
.nav-links a:hover { color: var(--ink); }

.nav-links > a:not(.nav-contact) { position: relative; }
.nav-links > a:not(.nav-contact)::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.22s ease;
}
.nav-links > a:not(.nav-contact):hover::after { width: 100%; }

[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.38s ease, transform 0.38s ease;
  transition-delay: var(--reveal-delay, 0ms);
}

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

.nav-links .nav-contact {
  background: var(--button-primary-bg);
  color: var(--white);
  padding: 8px 12px;
  border-radius: var(--action-radius);
}

.nav-links .nav-contact:hover {
  color: var(--white);
  background: var(--button-primary-hover-bg);
}

.nav-dropdown {
  position: relative;
  display: flex;
  align-items: center;
  padding-bottom: 8px;
  margin-bottom: -8px;
}

.nav-dropdown-toggle {
  font-size: var(--fs-body-sm);
  letter-spacing: var(--ls-normal);
  text-transform: none;
  color: var(--ink-soft);
  font-weight: var(--fw-medium);
}

.nav-dropdown:hover .nav-dropdown-toggle,
.nav-dropdown:focus-within .nav-dropdown-toggle {
  color: var(--ink);
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  display: none;
  flex-direction: column;
  min-width: 210px;
  padding: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
  z-index: 90;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  display: flex;
}

.nav-dropdown-menu a {
  padding: 8px 10px;
  border-radius: 0;
  font-size: var(--fs-caption);
  letter-spacing: var(--ls-normal);
  text-transform: none;
  color: var(--ink-soft);
  font-weight: var(--fw-medium);
}

.nav-dropdown-menu a:hover {
  background: var(--button-soft-bg);
  color: var(--ink);
}

.kicker {
  font-size: var(--fs-micro);
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  opacity: 0.95;
  font-weight: var(--fw-regular);
  transform: scale(0.72);
  transform-origin: left center;
}
.kicker::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 1px;
  background: currentColor;
  vertical-align: middle;
  margin-right: 8px;
  opacity: 0.45;
}
.kicker.dark { color: var(--ink-soft); opacity: 1; }

.cover-section {
  position: relative;
  overflow: hidden;
}

.cover-section-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 90svh;
  object-fit: cover;
}

#home-cover-primary .cover-section-img {
  max-height: 100svh;
}


.home-page .navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  border-bottom-color: var(--line);
  background: var(--bg-glass);
  backdrop-filter: blur(10px) saturate(140%);
  animation: softFadeDown 0.5s ease both;
}

.home-page #home-cover-primary {
  min-height: 0;
}



.home-page #home-cover-primary .scroll-indicator {
  animation: softFadeUp 0.65s ease 0.54s both;
}

.section { padding: 160px 0; }

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

.home-tone-a,
.home-tone-b {
  background: var(--bg);
}
.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 54px;
  align-items: center;
}

.split-media {
  border-radius: 0;
  overflow: hidden;
  border: none;
  background: var(--line);
  min-height: 360px;
}

.split-media img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.split-media:hover img { transform: scale(1.025); }

.split-copy {
  max-width: 540px;
}

.split-copy h1,
.split-copy h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  line-height: 1.15;
  margin: 16px 0 24px;
  font-weight: var(--fw-regular);
  letter-spacing: var(--ls-normal);
  text-transform: none;
}

.split-copy p {
  color: var(--ink-soft);
  font-size: var(--fs-body);
  line-height: 1.85;
  white-space: pre-wrap;
  word-spacing: 0.02em;
}

.split-reverse .split-copy {
  margin-left: auto;
}

.projects-shell { padding: 100px 0; background: var(--bg); }

body > section {
  position: relative;
}

body > section + section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(1160px, 92%);
  height: 1px;
  background: var(--bg-overlay);
}

.projects-header {
  max-width: 820px;
  margin-bottom: 30px;
}

.projects-header h1,
.projects-header h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.5rem);
  line-height: 1.2;
  margin: 0;
  letter-spacing: var(--ls-normal);
  text-transform: none;
  font-weight: var(--fw-regular);
}

#home-projects .projects-header h1,
#home-projects .projects-header h2 {
  font-size: clamp(1.5rem, 2.5vw, 2.1rem);
  line-height: 1.2;
  letter-spacing: var(--ls-normal);
  text-transform: none;
}

#contact-section .split-copy h2 {
  font-size: clamp(1.35rem, 2.3vw, 1.85rem);
  line-height: 1.2;
  letter-spacing: var(--ls-normal);
  text-transform: none;
  font-weight: var(--fw-regular);
}

.projects-header p { color: var(--ink-soft); }
.projects-header p {
  max-width: 62ch;
  margin-top: 10px;
}

.project-overview {
  margin-bottom: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.project-overview .projects-header {
  display: block;
  margin-bottom: 0;
}

.project-overview .breadcrumbs {
  padding-inline: 0;
}

.project-overview .projects-header h1,
.project-overview .projects-header h2 {
  font-size: clamp(1.55rem, 2.6vw, 2.25rem);
  letter-spacing: var(--ls-body);
}

.project-overview-lead {
  margin-top: 8px;
  max-width: 58ch;
  font-size: var(--fs-body-md);
  color: var(--ink-soft);
}

.category-links {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 0;
  margin-left: auto;
}

.project-links {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.project-links .btn-soft,
.category-links .btn-soft {
  background: var(--button-primary-bg);
  color: var(--white);
  border-color: var(--button-primary-bg);
}

.project-links .btn-soft:hover,
.category-links .btn-soft:hover {
  background: var(--button-primary-hover-bg);
  border-color: var(--button-primary-hover-bg);
}

.btn {
  display: inline-block;
  border-radius: var(--action-radius);
  padding: 12px 20px;
  font-weight: var(--fw-medium);
  font-size: var(--fs-btn);
  letter-spacing: var(--ls-normal);
  text-transform: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.16s ease, box-shadow 0.2s ease;
}

.btn-primary { background: var(--button-primary-bg); color: var(--white); }
.btn-soft {
  background: var(--button-soft-bg);
  color: var(--ink);
  border: 1px solid var(--button-soft-border);
}

.btn-primary:hover { background: var(--button-primary-hover-bg); }
.btn-soft:hover { background: var(--button-soft-hover-bg); border-color: var(--button-soft-hover-border); }
.btn-primary:active, .btn-soft:active { transform: translateY(1px); }

.project-section { padding: 22px 0 10px; }
.project-section + .project-section { margin-top: 30px; }
.project-section h2, .project-section h1 {
  font-size: clamp(1.35rem, 2.8vw, 2rem);
  margin-bottom: 12px;
  font-weight: var(--fw-regular);
  letter-spacing: var(--ls-normal);
  text-transform: none;
  display: flex;
  align-items: center;
  gap: 12px;
}

.project-section h2::after,
.project-section h1::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(285px, 1fr));
  gap: 18px;
}

.projects-page .project-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  grid-auto-flow: dense;
  align-items: stretch;
}

#home-projects .project-grid {
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 28px) / 3);
  gap: 14px;
  overflow-x: auto;
  grid-auto-rows: auto;
  scroll-snap-type: x mandatory;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: visible;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

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

.project-card-image {
  display: block;
  aspect-ratio: 16 / 10;
  background: var(--line);
  position: relative;
  overflow: hidden;
}

.project-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.projects-page .project-card {
  border-radius: 0;
  border: none;
  grid-column: span 1;
  display: flex;
  flex-direction: column;
}

#home-projects .project-card {
  border-radius: 0;
  border: none;
  grid-column: auto;
  grid-row: 1;
  scroll-snap-align: start;
}

.projects-page .project-card-image {
  flex: 1;
  aspect-ratio: 3 / 2;
  min-height: 0;
  overflow: hidden;
}

#home-projects .project-card-image {
  aspect-ratio: 4 / 3;
  height: auto;
  min-height: 0;
}

.projects-page .project-card-image img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

#home-projects .project-card-image img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.projects-page .project-card:hover .project-card-image img {
  transform: scale(1.03);
}

#home-projects .project-card:hover .project-card-image img {
  transform: scale(1.03);
}


.project-card-body {
  padding: 12px 0 6px 4px;
  border-top: 1px solid var(--line);
}

.project-card-body h3 {
  font-family: var(--font-heading);
  font-size: var(--fs-card-title);
  font-weight: var(--fw-regular);
  color: var(--ink);
  margin: 0 0 2px;
  line-height: 1.2;
}


.contact-shell { padding-top: 74px; }
.contact-shell {
  background: var(--bg);
}

.contact-grid { align-items: start; gap: 56px; }

.contact-meta {
  margin-top: 12px;
  color: var(--ink);
  white-space: pre-line;
}

.contact-addresses {
  margin-top: 12px;
  display: grid;
  gap: 8px;
}

.contact-addresses address {
  font-style: normal;
  color: var(--ink-muted);
  padding-left: 12px;
  border-left: 2px solid var(--line);
  line-height: 1.5;
}

.social-links {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.social-link {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--surface);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.social-link:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}

.social-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.contact-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  display: grid;
  gap: 16px;
}

.contact-form label {
  display: grid;
  gap: 6px;
  font-size: var(--fs-label);
  letter-spacing: var(--ls-normal);
  text-transform: none;
  color: var(--ink-soft);
  font-weight: var(--fw-medium);
}

.contact-form input,
.contact-form textarea {
  border: none;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  padding: 10px 0;
  transition: border-color 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-bottom-color: var(--accent);
  box-shadow: none;
}

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

.contact-form textarea { resize: vertical; }

.project-hero {
  min-height: 62vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

@media (min-width: 1260px) {
  .project-hero {
    background-size: contain;
    background-color: var(--bg);
    min-height: 70vh;
  }
}



.project-hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.08;
  margin: 10px 0;
  font-weight: var(--fw-light);
  font-style: italic;
}

.project-content {
  padding: 24px 10px 24px;
  text-align: left;
}

.project-content.container {
  width: 100%;
  max-width: none;
  margin: 0;
}

.breadcrumbs {
  padding-inline: 0;
  margin: 0 0 0.75rem;
}

.project-content > .breadcrumbs {
  padding-inline: clamp(24px, 5vw, 72px);
}

.breadcrumbs-list {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--ink-soft);
  font-size: var(--fs-micro);
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  transform: scale(0.82);
  transform-origin: left center;
}

.breadcrumbs-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.breadcrumbs-item:not(:last-child)::after {
  content: "/";
  color: var(--ink-faint);
}

.breadcrumbs-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumbs-link:hover,
.breadcrumbs-link:focus-visible {
  color: var(--ink);
}

.breadcrumbs-current {
  color: var(--ink);
}

.project-content p { color: var(--ink-soft); }

.project-content > h1,
.project-content > h2,
.project-content > p,
.project-content > .project-description {
  padding-inline: clamp(24px, 5vw, 72px);
}

.project-content h2 {
  font-size: clamp(1.35rem, 2.8vw, 2rem);
  margin-bottom: 10px;
  font-weight: var(--fw-regular);
  letter-spacing: var(--ls-normal);
  text-transform: none;
}

.project-before-after {
  padding: 10px 0 36px;
}

.before-after-header {
  margin-bottom: 14px;
}

.before-after-header h2 {
  font-size: clamp(1.2rem, 2.2vw, 1.7rem);
  margin-bottom: 6px;
  font-weight: var(--fw-regular);
  letter-spacing: var(--ls-normal);
  text-transform: none;
}

.before-after-header p {
  color: var(--ink-soft);
}

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

.before-after-card {
  border: 1px solid var(--line);
  background: var(--surface);
}

.before-after-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.before-after-card figcaption {
  padding: 10px 12px 12px;
}

.before-after-label {
  display: inline-block;
  margin-bottom: 6px;
  font-size: var(--fs-micro-sm);
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  color: var(--white);
  background: var(--accent);
  padding: 5px 8px;
  font-weight: var(--fw-medium);
}

.before-after-card figcaption p {
  color: var(--ink-soft);
}

.project-description {
  margin-bottom: 34px;
}

.project-gallery {
  padding: 0 0 96px;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: 18px;
  align-items: start;
}

.project-gallery img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  border-radius: 0;
  border: 1px solid var(--line);
  background: var(--bg);
  box-shadow: var(--shadow-elevated);
  transition: transform 220ms ease, box-shadow 220ms ease, filter 220ms ease;
}

.project-gallery img:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-elevated-hover);
  filter: saturate(1.04);
}

.project-gallery img:only-child {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 9;
  min-height: 440px;
}

.project-gallery img:first-child:nth-last-child(2),
.project-gallery img:nth-child(2):last-child {
  grid-column: span 6;
  aspect-ratio: 3 / 2;
  min-height: 400px;
}

.project-gallery img:first-child:nth-last-child(3),
.project-gallery img:nth-child(2):nth-last-child(2) {
  grid-column: span 6;
  aspect-ratio: 3 / 2;
  min-height: 360px;
}

.project-gallery img:nth-child(3):last-child {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 9;
  min-height: 420px;
}

.project-gallery img:first-child:nth-last-child(n + 4) {
  grid-column: span 7;
  aspect-ratio: 4 / 5;
  min-height: 520px;
}

.project-gallery img:nth-child(2):nth-last-child(n + 3) {
  grid-column: span 5;
  aspect-ratio: 4 / 3;
}

.project-gallery img:nth-child(3):nth-last-child(n + 2) {
  grid-column: span 5;
  aspect-ratio: 4 / 3;
}

.project-gallery img:nth-child(4) {
  grid-column: span 7;
  aspect-ratio: 5 / 4;
}

.project-gallery img:nth-child(5),
.project-gallery img:nth-child(6),
.project-gallery img:nth-child(7) {
  grid-column: span 4;
  aspect-ratio: 3 / 4;
}

.project-gallery img:nth-child(5):last-child {
  grid-column: 5 / span 4;
}

.project-gallery img:nth-child(5):nth-last-child(2) {
  grid-column: 3 / span 4;
}

.project-gallery img:nth-child(6):last-child {
  grid-column: 7 / span 4;
}

.project-gallery img:nth-child(8) {
  grid-column: span 8;
  aspect-ratio: 16 / 10;
}

.project-gallery img:nth-child(9) {
  grid-column: span 4;
  aspect-ratio: 3 / 4;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 44px 4%;
  color: var(--ink-soft);
  text-align: center;
  font-size: var(--fs-body-sm);
}

.footer-socials {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

@keyframes softFadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes softFadeDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scrollDot {
  0%, 100% {
    opacity: 0.25;
    transform: translate(-50%, 0);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, 9px);
  }
}

@media (max-width: 960px) {
  .split-grid { grid-template-columns: 1fr; gap: 20px; }
  .split-media { min-height: 280px; }
  .split-media img { min-height: 280px; }
  .before-after-grid { grid-template-columns: 1fr; }
  .project-gallery {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .project-gallery img {
    grid-column: auto !important;
    aspect-ratio: 4 / 3 !important;
    min-height: 240px;
    border-radius: 0;
  }
  .project-overview { display: block; margin-bottom: 16px; }
  .category-links { margin-top: 10px; margin-left: 0; }
  .projects-page .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: auto;
  }
  .projects-page .project-card {
    grid-column: auto !important;
    grid-row: auto !important;
  }
  #home-projects .project-grid { grid-auto-columns: calc((100% - 14px) / 2); }
  #home-projects .project-card { grid-column: auto !important; grid-row: 1 !important; }
}

@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute;
    left: 4%;
    right: 4%;
    top: calc(100% + 8px);
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 14px;
    border: 1px solid var(--line);
    background: var(--bg-glass-dense);
    box-shadow: var(--shadow);
  }
  .navbar.nav-open .nav-links { display: flex; }
  .nav-links a,
  .nav-dropdown-toggle {
    font-size: var(--fs-mobile-nav);
    width: 100%;
    color: var(--ink);
  }
  .nav-dropdown {
    width: 100%;
    margin-bottom: 0;
    padding-bottom: 0;
    display: block;
  }
  .nav-dropdown-menu {
    position: static;
    display: flex;
    border: 0;
    box-shadow: none;
    background: transparent;
    min-width: 0;
    padding: 6px 0 0 10px;
    gap: 2px;
  }
  .nav-dropdown-menu a {
    font-size: var(--fs-caption);
    color: var(--ink-soft);
    padding: 4px 0;
  }
  .nav-links .nav-contact {
    margin-top: 4px;
    width: auto;
  }
}

@media (max-width: 680px) {
  .home-page #home-cover-primary .scroll-indicator {
    display: none;
  }
  .project-gallery {
    gap: 12px;
  }
  .project-gallery img {
    min-height: 220px;
  }
  .projects-page .project-grid { grid-template-columns: 1fr; }
  .projects-page .project-card { grid-column: auto !important; grid-row: auto !important; }
  #home-projects .project-grid { grid-auto-columns: 100%; }
  #home-projects .project-card { grid-column: auto !important; grid-row: 1 !important; }
}

@media (max-width: 760px) {
  :root { --header-height: 64px; }
  .navbar { padding: 14px 4%; }
  .nav-links { gap: 14px; }
  .nav-links a { font-size: var(--fs-body-sm); }
  .scroll-indicator { bottom: 14px; }
  .cover-inner { padding-top: 86px; }
  .section, .projects-shell { padding: 72px 0; }
  .project-content > h1,
  .project-content > h2,
  .project-content > p,
  .project-content > .project-description {
    padding-inline: 20px;
  }

  .project-content > .breadcrumbs {
    padding-inline: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition-duration: 0ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 4%;
  background: var(--ink);
  color: var(--white);
  font-size: var(--fs-label);
  flex-wrap: wrap;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner-text { margin: 0; line-height: 1.5; flex: 1; min-width: 200px; }
.cookie-banner-link { color: var(--bg-glass); text-decoration: underline; }
.cookie-banner-link:hover { color: var(--white); }
.cookie-banner-btn { flex-shrink: 0; }
