:root {
  --bg: #f7f7f7;
  --bg-alt: #0f0f0f;
  --text: #111111;
  --text-soft: #4f4f4f;
  --accent: #1f1f1f;
  --border-subtle: #dddddd;
  --radius-soft: 999px;
}

/* Custom cursor: H */
:root {
  --cursor-h: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Crect width='32' height='32' fill='none'/%3E%3Ctext x='10' y='22' font-family='Raleway, Arial, sans-serif' font-size='18' font-weight='600' fill='%23111111'%3EH%3C/text%3E%3C/svg%3E")
    10 10,
    auto;
}

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

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Raleway", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  font-weight: 300;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  cursor: var(--cursor-h);
  overflow-x: hidden; /* prevent horizontal drift on some Android/tablet browsers */
}

/* Global center alignment */
.page,
.section,
.section-header,
.section-label,
.section-copy,
.section-content,
.about-wrap,
.project-main,
.contact-details,
.site-footer {
  text-align: center;
}

a {
  color: inherit;
  text-decoration: none;
  cursor: var(--cursor-h);
}

button {
  font-family: inherit;
  cursor: var(--cursor-h);
}

input,
textarea,
select {
  cursor: text;
}

/* Loader
   --------------------------------------------------------------------- */

#loader {
  position: fixed;
  inset: 0;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.loader-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: fit-content;
}

.loader-logo-main {
  font-family: "Raleway", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  font-size: clamp(110px, 18vw, 180px);
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0;
  margin-bottom: 0.85rem;
  opacity: 1;
  transform: translateY(0);
  animation: none;
  display: flex;
  align-items: baseline;
  justify-content: center;
}

.loader-logo-sub {
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 300;
  letter-spacing: 0.25em;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.loader-words {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  margin-top: 0.15rem;
  text-align: center;
  width: 100%;
  white-space: nowrap;
}

/* HEM harfleri için letter-by-letter animasyon */
.loader-logo-main span {
  display: inline-block;
  opacity: 0;
  transform: translateY(-18px);
  transition: opacity 0.45s ease, transform 0.45s ease;
  margin-right: 0.18em; /* H E M spacing */
}

.loader-logo-main span:last-child {
  margin-right: 0;
}

.loader-logo-main span.visible {
  opacity: 1;
  transform: translateY(0);
}

.loader-phrase,
.loader-sep {
  font-family: "Raleway", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #3f3f3f;
}

.loader-sep {
  font-weight: 200;
  letter-spacing: 0.2em;
  opacity: 0.7;
}

.loader-phrase span {
  display: inline-block;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.loader-phrase span.space {
  width: 0.55em; /* ensure a visible gap between words */
}

.loader-phrase span.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Loader responsive hizalama */
@media (max-width: 640px) {
  .loader-logo-main {
    font-size: clamp(82px, 22vw, 130px);
  }

  .loader-words {
    gap: 0.55rem;
    margin-top: 0.1rem;
    white-space: nowrap;
  }

  .loader-phrase,
  .loader-sep {
    font-size: 11px;
    letter-spacing: 0.12em;
  }

  .loader-logo-main span {
    margin-right: 0.14em;
  }
}

@keyframes loaderHemIn {
  0% {
    opacity: 0;
    letter-spacing: 0.2em;
    transform: translateY(40px) scale(1.12);
  }
  60% {
    opacity: 1;
    letter-spacing: 0.7em;
    transform: translateY(-4px) scale(1);
  }
  100% {
    opacity: 1;
    letter-spacing: 0.6em;
    transform: translateY(0) scale(1);
  }
}

@keyframes loaderSubIn {
  0% {
    opacity: 0;
    transform: translateY(12px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

#loader.loader-exit {
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  pointer-events: none;
}

.page.hidden {
  opacity: 0;
}

body.page-visible .page {
  opacity: 1;
  transition: opacity 0.8s ease 0.1s;
}

/* Smooth language switch */
body.is-lang-switching #page {
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

/* Layout
   --------------------------------------------------------------------- */

.page {
  min-height: 100vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.45rem 5vw;
  backdrop-filter: blur(20px);
  background: rgba(247, 247, 247, 0.88);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

/* make the wordmark visually larger without changing letter spacing */
.logo-lockup .logo-main {
  line-height: 1;
}

.logo-lockup {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.logo-main {
  font-family: "Raleway", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  font-size: 52px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-weight: 300;
}

/* removed logo-sub in header */

/* Header menu (+) */
.nav-menu {
  position: relative;
  display: flex;
  align-items: center;
  gap: 30px; /* ~30px between language and + menu */
  z-index: 2001;
}

.lang-toggle {
  height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.85);
  font-weight: 500;
  cursor: var(--cursor-h);
}

.lang-toggle:hover {
  background: rgba(255, 255, 255, 0.75);
}

.lang-toggle:focus-visible {
  outline: 2px solid rgba(0, 0, 0, 0.35);
  outline-offset: 3px;
}

.menu-trigger {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  display: grid;
  place-items: center;
  cursor: var(--cursor-h);
  z-index: 2002;
}

.menu-plus {
  font-size: 22px;
  line-height: 1;
  color: rgba(0, 0, 0, 0.9);
  font-weight: 600;
  transform: translateY(-1px);
  transition: transform 0.25s ease;
}

.nav-menu:focus-within .menu-plus,
.nav-menu.is-open .menu-plus {
  transform: translateY(-1px) rotate(45deg);
}

.menu-panel {
  position: fixed; /* portal-style dropdown */
  top: 72px; /* JS will align */
  left: auto; /* JS will set */
  right: auto;
  z-index: 2147483647; /* above everything */
  min-width: 260px;
  padding: 0.75rem 0.7rem;
  border-radius: 18px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.16);
  display: grid;
  gap: 0.25rem;
  opacity: 0;
  transform: translateY(-8px) scale(0.985);
  filter: blur(8px);
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease, filter 0.22s ease;
}

.menu-panel.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
  pointer-events: auto;
}

.menu-item {
  width: 100%;
  text-align: center;
  border: none;
  background: transparent;
  padding: 0.65rem 0.75rem;
  border-radius: 14px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.82);
  font-weight: 500;
}

.menu-item:hover,
.menu-item:focus-visible {
  background: rgba(0, 0, 0, 0.06);
  outline: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Hero
   --------------------------------------------------------------------- */

.hero {
  position: relative;
  display: grid;
  place-items: center;
  /* More stable viewport heights on mobile/tablets (Android address bar, etc.) */
  min-height: calc(100vh - 76px);
  min-height: calc(100svh - 76px);
  min-height: calc(100dvh - 76px);
  padding: 7rem 7vw 5rem;
  overflow: hidden;
}

.hero-gallery-bg {
  position: absolute;
  inset: 0;
  padding: 1rem;
  background: #f2f2f2;
}

.hero-slide {
  position: absolute;
  inset: 1rem;
  width: calc(100% - 2rem);
  height: calc(100% - 2rem);
  object-fit: cover;
  border-radius: 22px;
  opacity: 0;
  transition: opacity 1.6s ease;
  pointer-events: none;
  background: #222;
}

.hero-slide.active {
  opacity: 1;
}

.hero-gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(247, 247, 247, 0.12) 0%,
    rgba(247, 247, 247, 0.22) 45%,
    rgba(247, 247, 247, 0.35) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 48rem;
  text-align: center;
  padding: 0;
}

.hero-title,
.hero-subtitle,
.hero-kicker {
  text-shadow: 0 12px 34px rgba(0, 0, 0, 0.22);
}

.hero-kicker {
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.82);
  font-weight: 500;
  margin-bottom: 1rem;
}

.hero-title {
  font-size: clamp(34px, 4vw, 46px);
  line-height: 1.14;
  margin: 0 0 1.4rem;
  font-weight: 500;
}

.hero-subtitle {
  max-width: 32rem;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-soft);
  margin-bottom: 2rem;
  margin-inline: auto;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  justify-content: center;
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide {
    transition: none;
  }
}

/* Sections
   --------------------------------------------------------------------- */

.section {
  padding: 4.25rem 7vw;
}

.section-split {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 3.5rem;
  align-items: flex-start;
}

/* Studio (editorial + services) */
.studio-section.section-split {
  grid-template-columns: minmax(0, 1fr);
}

.studio-section .section-content {
  display: grid;
  gap: 2.4rem;
  width: 100%;
  max-width: 980px;
  justify-self: center;
  justify-items: center;
}

.studio-section .studio-intro,
.studio-section .studio-services,
.studio-section .studio-statement {
  width: 100%;
}

.studio-eyebrow {
  margin: 0 0 1rem;
  font-size: 13px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--text);
}

.studio-paragraph {
  margin: 0;
  font-size: 15px;
  line-height: 1.9;
  color: var(--text-soft);
  max-width: 52rem;
  margin-inline: auto;
}

.studio-services-header h2 {
  margin: 0 0 0.6rem;
  font-size: 22px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
}

.studio-note {
  margin: 0;
  font-size: 13px;
  line-height: 1.8;
  color: var(--text-soft);
  margin-inline: auto;
}

.services-list {
  margin-top: 1.4rem;
  width: 100%;
  max-width: 780px;
  margin-inline: auto;
}

.service-item {
  padding: 1.6rem 0;
  display: grid;
  place-items: center;
  gap: 0.35rem;
}

.service-item h3 {
  margin: 0;
  font-size: clamp(16px, 1.45vw, 18px);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.9);
  display: inline-block;
  position: relative;
  padding-bottom: 0.55rem;
}

.service-item::before {
  content: none;
}

.service-item::after {
  content: none;
}

.service-item h3::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.1rem;
  height: 0.5px;
  background: rgba(0, 0, 0, 0.07);
}

/* Studio statement: scroll-fade */
.studio-statement {
  margin-top: 2.6rem;
  padding: 2.4rem 0;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.studio-statement-text {
  margin: 0;
  font-size: clamp(18px, 2.2vw, 26px);
  line-height: 1.45;
  letter-spacing: 0.06em;
  color: rgba(0, 0, 0, 0.88);
  text-transform: uppercase;
  max-width: 60ch;
  margin-inline: auto;
}

.scroll-fade {
  opacity: 0;
  transform: translateY(14px);
  will-change: opacity, transform;
}

/* About section */
.about-section {
  background: #ffffff;
}

.about-wrap {
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  gap: 1.6rem;
  justify-items: center;
}

.about-label {
  margin: 0 0 0.6rem;
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--text);
  font-weight: 600;
}

.about-title {
  margin: 0;
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.3;
  font-weight: 600;
}

.about-body {
  display: grid;
  gap: 1rem;
}

.about-paragraph {
  margin: 0;
  font-size: 15px;
  line-height: 1.9;
  color: var(--text-soft);
  max-width: 78ch;
  margin-inline: auto;
}

.about-context {
  margin-top: 1.2rem;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.about-subtitle {
  margin: 0 0 0.9rem;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  transition-delay: var(--delay, 0ms);
  will-change: transform, opacity;
}

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

.section-label {
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.section-copy h2 {
  font-family: "Raleway", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  font-size: 26px;
  margin: 0 0 1rem;
}

.section-copy p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-soft);
  max-width: 32rem;
}

.section-copy p + p {
  margin-top: 0.8rem;
}

.section-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.3rem;
}

.stat-card {
  border-radius: 20px;
  border: 1px solid var(--border-subtle);
  padding: 1.3rem 1.2rem;
  background: rgba(255, 255, 255, 0.9);
}

.stat-label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.stat-value {
  display: block;
  margin-top: 0.75rem;
  font-size: 13px;
}

/* Projects
   --------------------------------------------------------------------- */

.section-projects {
  background: #ffffff;
  border-radius: 40px 40px 0 0;
  padding-top: 4.5rem;
}

.section-header h2 {
  font-family: "Raleway", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  font-size: 26px;
  margin: 0.6rem 0 0;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.6rem;
  margin-top: 2.8rem;
  justify-items: center;
  transition: opacity 520ms ease, transform 520ms ease;
  will-change: opacity, transform;
}

/* Smooth swap animation for 3-at-a-time rotation */
.projects-grid.is-swapping {
  opacity: 0;
  transform: translateY(10px);
}

.projects-carousel {
  position: relative;
  margin-top: 2.8rem;
  width: fit-content; /* shrink-wrap to the 3-card grid */
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.projects-carousel .projects-grid {
  margin-top: 0;
}

/* projects arrow removed */

.project-card {
  height: 480px; /* fixed, consistent cards */
  border-radius: 24px;
  overflow: hidden;
  background: #ffffff; /* white frame */
  border: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  min-height: 480px;
  cursor: pointer;
  transition: transform 0.45s ease, box-shadow 0.45s ease,
    border-color 0.45s ease;
}

.project-media {
  padding: 10px;
  flex: 1 1 auto;
  min-height: 360px;
}

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 18px;
  display: block;
}

.project-link {
  display: block;
}

.project-link:focus-visible .project-card {
  outline: 2px solid rgba(0, 0, 0, 0.35);
  outline-offset: 4px;
}

/* Project pages (editorial / calm gallery) */
.project-page {
  background: #f7f7f7;
}

.project-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 7vw;
  backdrop-filter: blur(18px);
  background: rgba(247, 247, 247, 0.9);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.project-back {
  font-size: 12px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--text);
}

.project-ig {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.project-main {
  padding: 3.5rem 7vw 5rem;
}

.project-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 3rem;
  align-items: start;
}

.project-kicker {
  margin: 0 0 0.9rem;
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.project-title {
  margin: 0 0 1rem;
  font-size: clamp(32px, 3.6vw, 44px);
  line-height: 1.15;
  font-weight: 600;
}

.project-subtitle {
  margin: 0;
  max-width: 30rem;
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-soft);
}

.project-hero-image {
  border-radius: 28px;
  min-height: clamp(280px, 44vw, 520px);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.16);
  overflow: hidden;
}

.project-gallery {
  margin-top: 3.2rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.4rem;
}

.project-shot {
  border-radius: 28px;
  min-height: clamp(260px, 42vw, 520px);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.12);
  overflow: hidden;
}

@media (max-width: 900px) {
  .project-hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .project-header {
    padding-inline: 5vw;
  }
  .project-main {
    padding-inline: 5vw;
  }
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.16);
  border-color: rgba(0, 0, 0, 0.08);
}

/* project-image placeholders removed (project cards now use real images) */

.project-meta {
  flex: 0 0 auto; /* ~10% */
  padding: 0.9rem 1rem 1.05rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.15rem;
  min-height: 110px;
  align-items: center;
  text-align: center;
}

.project-tag {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-soft);
  text-align: center;
}

.project-meta h3 {
  margin: 0.55rem 0 0.3rem;
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.project-meta p {
  margin: 0;
  font-size: 13px;
  color: var(--text-soft);
  line-height: 1.7;
  max-width: 32ch;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Contact
   --------------------------------------------------------------------- */

.section-contact {
  background: #f7f7f7;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 2.5rem;
  margin-top: 2.3rem;
  align-items: start;
}

.contact-details p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-soft);
  max-width: 26rem;
  margin-inline: auto;
}

.contact-block {
  margin-top: 1.4rem;
  text-align: center;
}

.contact-block .label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 0.3rem;
}

.link-underline {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 13px;
}

.link-underline::after {
  content: "";
  height: 1px;
  width: 0;
  background: #000;
  transition: width 0.25s ease;
}

.link-underline:hover::after {
  width: 100%;
}

.btn-wide {
  margin-top: 2.1rem;
  width: 100%;
  max-width: 260px;
  margin-inline: auto;
}

.contact-map {
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.16);
}

.map-ratio {
  position: relative;
  padding-bottom: 65%;
  background: #d8d8d8;
}

.map-ratio iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.site-footer {
  padding: 1.6rem 7vw 2.3rem;
  display: grid;
  justify-items: center;
  gap: 0.7rem;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.footer-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  text-align: center;
}

.footer-copy {
  opacity: 0.9;
}

.footer-sep {
  opacity: 0.75;
}

.footer-social {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(10px);
  color: rgba(0, 0, 0, 0.85);
  letter-spacing: 0.12em;
}

.footer-social:hover {
  border-color: rgba(0, 0, 0, 0.22);
  background: rgba(255, 255, 255, 0.72);
}

.icon-instagram {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.social-handle {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
}

/* Modal (meeting form) */
.modal-backdrop[hidden] {
  display: none;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
  display: grid;
  place-items: center;
  z-index: 10000;
  padding: 6vh 5vw;
}

.modal {
  width: min(560px, 92vw);
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.22);
  overflow: hidden;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.2rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.modal-header h3 {
  margin: 0;
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
}

.modal-close {
  border: none;
  background: transparent;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  color: #111;
}

.modal-form {
  padding: 1.2rem;
  display: grid;
  gap: 0.95rem;
}

.modal-success {
  margin-top: 0.25rem;
  padding: 0.9rem 0.95rem;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.8);
  color: rgba(0, 0, 0, 0.85);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: center;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.modal-success.is-in {
  opacity: 1;
  transform: translateY(0);
}

.modal-error {
  margin-top: 0.25rem;
  padding: 0.9rem 0.95rem;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.8);
  color: rgba(0, 0, 0, 0.85);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: center;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.modal-error.is-in {
  opacity: 1;
  transform: translateY(0);
}

.modal-form label {
  display: grid;
  gap: 0.45rem;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-soft);
  text-align: center;
}

.modal-form input {
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 14px;
  padding: 0.85rem 0.9rem;
  font-size: 14px;
  letter-spacing: 0.02em;
  outline: none;
}

.modal-form input:focus {
  border-color: rgba(0, 0, 0, 0.35);
}

.modal-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.95rem;
}

@media (max-width: 560px) {
  .modal-row {
    grid-template-columns: 1fr;
  }
}

/* Buttons
   --------------------------------------------------------------------- */

.btn {
  position: relative;
  border-radius: 999px;
  border: 1px solid #111111;
  padding: 0.8rem 1.9rem;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: transparent;
  cursor: pointer;
  overflow: hidden;
  color: #111111;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-101%);
  background: #111111;
  transition: transform 0.45s cubic-bezier(0.19, 1, 0.22, 1);
}

.btn span,
.btn {
  position: relative;
}

.btn-primary {
  background: #111111;
  color: #ffffff;
}

.btn-primary::before {
  background: #ffffff;
}

.btn-primary:hover {
  color: #111111;
}

.btn-ghost:hover {
  color: #ffffff;
}

.btn:hover::before {
  transform: translateX(0%);
}

/* Hero CTA: fixed size + blur hover (no color invert) */
.btn-fixed {
  width: 240px;
  height: 48px;
  padding: 0;
}

.btn-glass {
  border-color: rgba(0, 0, 0, 0.65);
  color: #111111;
  background: rgba(255, 255, 255, 0);
}

.btn-glass::before {
  display: none;
}

.btn-glass:hover {
  color: inherit;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

@media (max-width: 480px) {
  .btn-fixed {
    width: 100%;
  }
}

/* Responsive
   --------------------------------------------------------------------- */

@media (max-width: 960px) {
  .site-header {
    padding-inline: 5vw;
  }

  .logo-main {
    font-size: 38px;
  }

  .hero {
    padding-inline: 5vw;
  }

  .section,
  .section-projects {
    padding-inline: 5vw;
  }

  .section-split {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  }

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

@media (max-width: 720px) {
  .site-header {
    position: static;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
    padding-top: 1rem;
  }

  .nav-menu {
    align-self: flex-end;
    width: auto;
    justify-content: flex-end;
    gap: 30px; /* keep a safe spacing so taps don't hit + */
  }

  .hero {
    padding: 5.5rem 5vw 4rem;
    min-height: 100vh;
    min-height: 100svh;
    min-height: 100dvh;
  }

  .hero-gallery-bg {
    padding: 0.85rem;
  }

  .hero-slide {
    inset: 0.85rem;
    width: calc(100% - 1.7rem);
    height: calc(100% - 1.7rem);
    border-radius: 18px;
    object-fit: cover;
  }

  .section {
    padding-top: 3.2rem;
    padding-bottom: 3.2rem;
  }

  .section-split {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }

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

  .section-split {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .contact-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .site-footer {
    flex-direction: column;
  }
}

/* Tablet / Android mid-sizes: tighten fixed components so nothing looks "skewed" */
@media (min-width: 721px) and (max-width: 1100px) {
  .hero {
    padding-top: 6rem;
  }

  .project-card {
    height: 440px;
    min-height: 440px;
  }

  .project-media {
    min-height: 320px;
  }

  .project-meta {
    min-height: 100px;
  }
}

/* Short landscape screens (some Android/tablets) */
@media (max-height: 680px) and (min-width: 721px) {
  .hero {
    padding-top: 5.25rem;
    padding-bottom: 3.5rem;
  }
}

@media (max-width: 480px) {
  .logo-main {
    font-size: 30px;
  }

  .hero-title {
    font-size: 28px;
  }

  .hero-subtitle {
    font-size: 13px;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-actions {
    flex-direction: column;
  }
}


