/* ========================================
   Synosys Design — Global Styles
   ======================================== */

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

:root {
  --black: #1a1a1a;
  --dark: #2c2c2c;
  --gray: #888;
  --light-gray: #e5e5e5;
  --white: #fff;
  --off-white: #fafafa;
  --font-main: 'Gill Sans', 'Gill Sans MT', 'Raleway', -apple-system, sans-serif;
  --font-display: 'Gill Sans', 'Gill Sans MT', 'Raleway', sans-serif;
  --nav-height: 80px;
  --max-width: 1400px;
  --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  color: var(--black);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
  -webkit-user-drag: none;
  user-select: none;
  pointer-events: none;
}

video {
  -webkit-user-drag: none;
  user-select: none;
}

/* ========================================
   Typography
   ======================================== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 400;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.text-uppercase {
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.text-small {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ========================================
   Navigation
   ======================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 60px;
  z-index: 1000;
  transition: background var(--transition), color var(--transition);
}

.nav--dark {
  color: var(--white);
  background: transparent;
}

.nav--light {
  color: var(--black);
  background: var(--white);
  border-bottom: 1px solid var(--light-gray);
}

.nav__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav__logo img {
  height: 40px;
  width: auto;
}

/* Text-only nav logo */
.nav__logo--text {
  font-family: var(--font-main);
  font-size: 1.22rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--black);
  line-height: 1.2;
}

.nav--dark .nav__logo--text {
  color: rgba(255,255,255,0.85);
}

.nav__links {
  display: flex;
  gap: 40px;
  list-style: none;
}

.nav__links a {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 400;
  position: relative;
  padding-bottom: 4px;
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width var(--transition);
}

.nav__links a:hover::after,
.nav__links a.active::after {
  width: 100%;
}

/* Hamburger menu — always visible */
.nav__hamburger {
  display: flex;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  z-index: 1002;
}

.nav__hamburger span {
  width: 24px;
  height: 1px;
  background: currentColor;
  transition: var(--transition);
}

.nav--dark .nav__hamburger span {
  background: white;
}

.nav__hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}
.nav__hamburger.open span:nth-child(2) {
  opacity: 0;
}
.nav__hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Nav links — visible on desktop */
.nav__links {
  display: flex;
  gap: 40px;
  list-style: none;
}

.nav__links .nav__divider,
.nav__links li:has(a[target="_blank"]) {
  display: none;
}

.nav__links.open {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  right: 0;
  width: 300px;
  height: 100vh;
  background: var(--white);
  justify-content: flex-start;
  align-items: flex-start;
  padding: 100px 50px;
  gap: 24px;
  z-index: 1001;
  box-shadow: -4px 0 20px rgba(0,0,0,0.1);
}

.nav__links.open .nav__divider,
.nav__links.open li:has(a[target="_blank"]) {
  display: list-item;
}

.nav__links.open a {
  font-size: 0.85rem;
  color: var(--black);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.nav__links.open a:hover {
  opacity: 0.6;
}

.nav__links.open li:has(a[target="_blank"]) {
  display: inline-block;
}

.nav__links.open .nav__sns-row {
  display: flex;
  gap: 16px;
}

.nav__sns-link {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav__sns-link span {
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: none;
}

.nav__divider {
  width: 30px;
  height: 1px;
  background: var(--light-gray);
  list-style: none;
  margin: 8px 0;
}

/* ========================================
   Landing Page
   ======================================== */
.landing {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  cursor: pointer;
}

.landing__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.4);
  transition: transform 8s ease-out;
}

.landing:hover .landing__bg {
  transform: scale(1.03);
}

.landing__content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: var(--white);
  text-align: center;
}

.landing__title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 300;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.landing__subtitle {
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 300;
  opacity: 0.8;
}

.landing__enter {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  animation: pulse 2s ease-in-out infinite;
}

.landing__enter svg {
  margin-top: 8px;
  width: 20px;
  height: 20px;
  opacity: 0.6;
}

@keyframes pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

/* ========================================
   Home / Top Page — Immersive Hero
   ======================================== */
.hero-immersive {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.hero-immersive__slideshow {
  position: absolute;
  inset: 0;
}

.hero-immersive__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  animation: kenburns 20s ease-in-out infinite;
}

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

@keyframes kenburns {
  0% { transform: scale(1) translate(0, 0); }
  50% { transform: scale(1.08) translate(-1%, -1%); }
  100% { transform: scale(1) translate(0, 0); }
}

.hero-immersive__slide:nth-child(2) { animation-delay: -4s; }
.hero-immersive__slide:nth-child(3) { animation-delay: -8s; }
.hero-immersive__slide:nth-child(4) { animation-delay: -12s; }
.hero-immersive__slide:nth-child(5) { animation-delay: -16s; }

.hero-immersive__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 1;
}

.hero-immersive__content {
  position: absolute;
  bottom: 80px;
  left: 60px;
  z-index: 2;
}

.hero-immersive__logo {
  width: 320px;
  height: auto;
  margin-bottom: 16px;
  filter: brightness(10);
}

.hero-immersive__tagline {
  font-size: 1rem;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.03em;
}

.hero-immersive__tagline strong {
  color: rgba(255,255,255,0.95);
}

.hero-immersive__scroll-hint {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255,255,255,0.4);
  animation: pulse 2s ease-in-out infinite;
}

/* Selected Projects on Home */
.selected-projects {
  padding: 120px 60px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-label {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 40px;
}

.selected-project {
  display: block;
  margin-bottom: 60px;
  position: relative;
}

.selected-project__image {
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  position: relative;
}

.selected-project__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.15);
  opacity: 0;
  transition: transform 2s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 1.2s ease;
}

.selected-project__image.revealed img {
  transform: scale(1);
  opacity: 1;
}

.selected-project__info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 24px 20px;
  background: linear-gradient(transparent, rgba(0,0,0,0.6));
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.8s ease 0.4s, transform 0.8s ease 0.4s;
}

.selected-project.revealed .selected-project__info {
  opacity: 1;
  transform: translateY(0);
}

.selected-project__title {
  font-size: 1.3rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.95);
}

.selected-project__meta {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.05em;
}

.view-all {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--black);
  transition: opacity var(--transition);
}

.view-all:hover {
  opacity: 0.6;
}

/* ========================================
   Projects Grid Page
   ======================================== */
.page-header {
  padding: 140px 60px 60px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.page-header h1 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 300;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  padding: 0 60px 120px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.project-card {
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.project-card__image {
  aspect-ratio: 4/3;
  overflow: hidden;
}

.project-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.project-card:hover .project-card__image img {
  transform: scale(1.03);
}

/* Password-protected projects */
.project-card__image--blur img {
  filter: blur(3px);
  transform: scale(1.03);
}

.project-card:hover .project-card__image--blur img {
  filter: blur(2px);
  transform: scale(1.05);
}

/* Password bar */
.password-bar {
  padding: 0 60px 30px;
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.password-bar__label {
  font-size: 0.7rem;
  color: var(--gray);
  letter-spacing: 0.05em;
}

.password-bar__input {
  padding: 6px 12px;
  border: 1px solid var(--light-gray);
  font-family: var(--font-main);
  font-size: 0.75rem;
  width: 140px;
  outline: none;
}

.password-bar__input:focus {
  border-color: var(--black);
}

.password-bar__btn {
  padding: 6px 16px;
  background: var(--black);
  color: var(--white);
  border: none;
  font-family: var(--font-main);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  cursor: pointer;
}

.password-bar__btn:hover {
  opacity: 0.8;
}

.password-bar__msg {
  font-size: 0.7rem;
}

.password-bar.unlocked {
  display: none;
}

/* Locked project note overlay */
.project-card__lock-note {
  position: absolute;
  bottom: 10px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 0.6rem;
  color: rgba(255,255,255,0.9);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  z-index: 3;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.project-card__lock {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.5rem;
  z-index: 3;
  opacity: 0.8;
}


/* Hover overlay with project info */
.project-card__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.project-card:hover .project-card__overlay {
  opacity: 1;
}

.project-card__title {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  line-height: 1.4;
}

.project-card__category {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 6px;
}

/* Category filter */
.filter-bar {
  padding: 0 60px 40px;
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  gap: 30px;
}

.filter-btn {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--gray);
  padding-bottom: 4px;
  font-family: var(--font-display);
  transition: color var(--transition);
}

.filter-btn.active,
.filter-btn:hover {
  color: var(--black);
  border-bottom: 1px solid var(--black);
}

.filter-btn--bold {
  font-weight: 700;
  color: var(--black);
}

/* ========================================
   Project Detail Page — Slideshow
   ======================================== */
.project-detail {
  padding: 0;
  max-width: 100%;
  margin: 0;
}

.slideshow {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: var(--black);
}

.slideshow__slide {
  position: absolute;
  inset: 0;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  background-color: var(--black);
  opacity: 0;
  z-index: 1;
  transition: opacity 0.8s ease-in-out;
}

.slideshow__slide.active {
  opacity: 1;
  z-index: 2;
}

.slideshow {
  cursor: pointer;
}

.slideshow__info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10;
  color: rgba(255,255,255,0.9);
  padding: 30px 40px 20px;
  background: linear-gradient(transparent, rgba(0,0,0,0.6));
}

.slideshow__title {
  font-size: 1.3rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.slideshow__meta {
  display: flex;
  gap: 24px;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.7;
}

.slideshow__counter {
  position: absolute;
  top: 30px;
  right: 40px;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.5);
  z-index: 10;
}

.slideshow__progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  background: rgba(255,255,255,0.4);
  z-index: 10;
  width: 0;
  transition: width 2s linear;
}

.slideshow__progress.running {
  width: 100%;
}

.slideshow__back-btn {
  display: none;
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 15;
  background: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.8);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 8px 24px;
  font-family: var(--font-main);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 20px;
}

/* Video viewer */
.video-viewer {
  position: relative;
  width: 100%;
  height: 100vh;
  background: var(--black);
  cursor: pointer;
  overflow: hidden;
}

.video-viewer__player {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Iframe viewer for external project sites */
.iframe-viewer {
  position: relative;
  width: 100%;
  height: 100vh;
  background: var(--black);
}

.iframe-viewer iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.iframe-viewer__info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10;
  color: rgba(255,255,255,0.9);
  padding: 30px 40px 20px;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  pointer-events: none;
}

.iframe-viewer__scroll-hint {
  position: absolute;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 11;
  color: rgba(255,255,255,0.85);
  text-align: center;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: rgba(0,0,0,0.6);
  padding: 12px 20px 8px;
  border-radius: 30px;
  animation: scrollBounce 2s ease-in-out infinite;
  transition: opacity 0.8s ease;
  pointer-events: none;
}

.iframe-viewer__scroll-hint svg {
  display: block;
  margin: 4px auto 0;
}

@keyframes scrollBounce {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

.iframe-viewer__back {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 10;
  background: rgba(0,0,0,0.5);
  color: rgba(255,255,255,0.8);
  border: none;
  padding: 8px 16px;
  font-family: var(--font-main);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: background 0.3s;
}

.iframe-viewer__back:hover {
  background: rgba(0,0,0,0.8);
  color: #fff;
}

.project-detail__header {
  margin-bottom: 60px;
}

.project-detail__title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  margin-bottom: 20px;
}

.project-detail__meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  font-size: 0.8rem;
}

.project-detail__meta dt {
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.65rem;
  margin-bottom: 4px;
}

.project-detail__description {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--dark);
  margin-bottom: 60px;
  max-width: 700px;
}

.project-detail__gallery {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.project-detail__gallery img {
  width: 100%;
}

.project-nav {
  display: flex;
  justify-content: space-between;
  padding: 60px 0;
  border-top: 1px solid var(--light-gray);
  margin-top: 80px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

/* ========================================
   About Page — Studio Introduction
   ======================================== */
.about-studio {
  padding: 160px 60px 80px;
  max-width: 900px;
  margin: 0 auto;
}

.about-studio h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  margin-bottom: 16px;
}

.about-studio__tagline {
  font-size: 1.1rem;
  font-style: italic;
  color: var(--gray);
  letter-spacing: 0.02em;
  margin-bottom: 48px;
}

.about-studio__text p {
  font-size: 1rem;
  line-height: 1.9;
  color: var(--dark);
  margin-bottom: 24px;
}

.about-ja {
  font-size: 0.8rem !important;
  line-height: 1.8 !important;
  color: var(--gray) !important;
  margin-top: -16px !important;
  margin-bottom: 28px !important;
}

/* JP toggle button */
.jp-toggle {
  background: none;
  border: 1px solid currentColor;
  color: var(--gray);
  font-family: var(--font-main);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  cursor: pointer;
  margin-right: 12px;
  transition: var(--transition);
}

.jp-toggle:hover,
.jp-toggle.active {
  color: var(--black);
  border-color: var(--black);
}

.jp-toggle.active {
  background: var(--black);
  color: var(--white);
}

/* About Page — Services & Expertise */
.about-services {
  padding: 60px 60px 80px;
  max-width: 900px;
  margin: 0 auto;
  border-top: 1px solid var(--light-gray);
}

.about-services__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.about-services__col h3 {
  font-size: 0.7rem;
  color: var(--gray);
  margin-bottom: 20px;
}

.about-services__col ul {
  list-style: none;
  font-size: 0.95rem;
  line-height: 2.2;
  color: var(--dark);
}

/* ========================================
   About Page — Founder
   ======================================== */
.about {
  padding: 80px 60px 120px;
  max-width: var(--max-width);
  margin: 0 auto;
  border-top: 1px solid var(--light-gray);
}

.about__grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 40px;
  align-items: start;
}

.about__portrait {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
}

.about__portrait--small {
  max-width: 360px;
}

.about__content h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  margin-bottom: 8px;
}

.about__role {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gray);
  margin-bottom: 40px;
}

.about__content p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--dark);
  margin-bottom: 24px;
}

.about__content .about-ja {
  font-size: 0.75rem !important;
  line-height: 1.8 !important;
  color: var(--gray) !important;
  margin-top: -16px !important;
  margin-bottom: 28px !important;
}

.about__info {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--light-gray);
}

.about__info h3 {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gray);
  margin-bottom: 16px;
}

.about__info ul {
  list-style: none;
  font-size: 0.9rem;
  line-height: 2;
}

/* ========================================
   Contact Page
   ======================================== */
.contact {
  padding: 140px 60px 120px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}

.contact__info h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  margin-bottom: 40px;
}

.contact__info p {
  font-size: 0.95rem;
  color: var(--dark);
  line-height: 1.8;
  margin-bottom: 16px;
}

.contact__email {
  font-size: 1.1rem;
  border-bottom: 1px solid var(--black);
  padding-bottom: 2px;
  display: inline-block;
  margin-bottom: 40px;
}

.contact__form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact__form input,
.contact__form textarea {
  width: 100%;
  padding: 12px 0;
  border: none;
  border-bottom: 1px solid var(--light-gray);
  font-family: var(--font-display);
  font-size: 0.9rem;
  background: transparent;
  outline: none;
  transition: border-color var(--transition);
}

.contact__form input:focus,
.contact__form textarea:focus {
  border-color: var(--black);
}

.contact__form textarea {
  min-height: 120px;
  resize: vertical;
}

.contact__form button {
  align-self: flex-start;
  padding: 12px 40px;
  background: var(--black);
  color: var(--white);
  border: none;
  font-family: var(--font-display);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  cursor: pointer;
  transition: opacity var(--transition);
}

.contact__form button:hover {
  opacity: 0.8;
}

/* ========================================
   Home Contact Info (KAD-style bottom section)
   ======================================== */
.home-contact {
  padding: 80px 60px;
  max-width: var(--max-width);
  margin: 0 auto;
  border-top: 1px solid var(--light-gray);
}

.home-contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 60px;
}

.home-contact__heading {
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 20px;
}

.home-contact__col p {
  font-size: 0.9rem;
  line-height: 2;
  color: var(--dark);
}

.home-contact__col p strong {
  color: var(--gray);
  font-weight: 400;
}

.home-contact__col a {
  color: var(--dark);
  transition: opacity var(--transition);
}

.home-contact__col a:hover {
  opacity: 0.6;
}

@media (max-width: 768px) {
  .home-contact {
    padding: 60px 24px;
  }
  .home-contact__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* ========================================
   Footer
   ======================================== */
.footer {
  padding: 40px 60px;
  border-top: 1px solid var(--light-gray);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.7rem;
  color: var(--gray);
  letter-spacing: 0.05em;
}

.footer__social {
  display: flex;
  gap: 20px;
}

.footer__social a {
  color: var(--gray);
  transition: color var(--transition);
}

.footer__social a:hover {
  color: var(--black);
}

/* ========================================
   Animations
   ======================================== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .hero__right {
    height: 50vh;
  }
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .about__grid,
  .contact__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav {
    padding: 0 16px;
  }
  /* Hide inline nav links on mobile, only show hamburger */
  .nav__links {
    display: none;
  }
  .nav__links.open {
    display: flex;
    width: 100%;
    align-items: center;
    padding: 80px 30px;
  }
  .nav__logo--text {
    font-size: 0.9rem;
    letter-spacing: 0.12em;
  }
  /* Hamburger colors */
  .nav--dark .nav__hamburger span {
    background: white;
  }
  .nav--light .nav__hamburger span {
    background: var(--black);
  }
  /* Hero immersive mobile */
  .hero-immersive__content {
    bottom: 35vh;
    left: 20px;
    right: 20px;
  }
  .hero-immersive__logo {
    width: 180px;
    margin-bottom: 10px;
  }
  .hero-immersive__tagline {
    font-size: 0.75rem;
  }
  .hero-immersive__scroll-hint {
    bottom: 15vh;
    color: rgba(255,255,255,0.7);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
  }
  .hero-immersive__scroll-hint svg {
    width: 24px;
    height: 24px;
  }
  .hero__left {
    padding: 60px 24px;
  }
  .selected-projects,
  .page-header,
  .projects-grid,
  .filter-bar,
  .project-detail,
  .about,
  .contact {
    padding-left: 16px;
    padding-right: 16px;
  }
  .selected-projects {
    padding-top: 60px;
    padding-bottom: 60px;
  }
  .projects-grid {
    grid-template-columns: 1fr;
  }
  .project-detail__meta {
    grid-template-columns: 1fr;
  }
  /* Filter bar scrollable */
  .filter-bar {
    overflow-x: auto;
    white-space: nowrap;
    gap: 15px;
  }
  /* About page mobile */
  .about-studio {
    padding: 120px 20px 60px;
  }
  .about-studio h1 {
    font-size: 1.5rem;
  }
  .about-services__inner {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .about__grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .about__portrait--small {
    max-width: 250px;
  }
  .about,
  .contact {
    padding-top: 40px;
  }
  .contact__grid {
    grid-template-columns: 1fr;
  }
  /* Password bar mobile */
  .password-bar {
    flex-wrap: wrap;
    padding: 0 16px 20px;
  }
  /* Selected Project title smaller on mobile */
  .selected-project__info {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .selected-project__title {
    font-size: 0.9rem;
  }
  .selected-project__meta {
    font-size: 0.6rem;
    color: rgba(255,255,255,0.7);
  }
  /* Filter bar compact */
  .filter-btn {
    font-size: 0.55rem;
    padding-bottom: 3px;
    letter-spacing: 0.08em;
  }
  /* Show project title on mobile thumbnails (no hover) */
  .project-card__overlay {
    opacity: 1;
    background: linear-gradient(transparent 40%, rgba(0, 0, 0, 0.55));
    padding: 12px;
    justify-content: flex-end;
  }
  .project-card__title {
    font-size: 0.65rem;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
  }
  .project-card__category {
    font-size: 0.5rem;
  }
  /* Scroll reveal animation for mobile */
  .project-card {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }
  .project-card.card-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  /* Slideshow mobile */
  .slideshow {
    cursor: default;
    height: 100vh;
    height: 100dvh;
    position: relative;
  }
  .slideshow__topbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
    z-index: 10;
    padding: 10px 12px;
    background: linear-gradient(transparent, rgba(0,0,0,0.6));
    border-radius: 4px;
  }
  .slideshow__slide {
    background-size: contain;
    top: 40px;
    bottom: 50px;
  }
  @media (orientation: landscape) {
    .slideshow__slide {
      background-size: cover;
      top: 0;
      bottom: 0;
    }
  }
  .slideshow__info {
    position: static;
    padding: 0;
    background: none;
    max-width: 75%;
  }
  .slideshow__title {
    font-size: 0.8rem;
    margin-bottom: 3px;
  }
  .slideshow__meta {
    flex-wrap: wrap;
    gap: 4px;
    font-size: 0.5rem;
  }
  .slideshow__counter {
    position: static;
    font-size: 0.7rem;
    flex-shrink: 0;
    padding-top: 2px;
  }
  .slideshow__back-btn {
    display: inline-block !important;
    position: absolute !important;
    top: 10px !important;
    left: 10px !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;
    margin: 0 !important;
    width: auto !important;
    max-width: 100px !important;
    height: auto !important;
    padding: 6px 14px !important;
    font-size: 0.6rem !important;
  }
  .slideshow__progress {
    display: none;
  }
  .footer {
    padding: 24px;
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}
