/* ============================================
   86th Aspect® — Page-Specific Styles
   ============================================ */

/* --- Page Hero (shared) --- */
.page-hero {
  padding-top: 160px;
  padding-bottom: 80px;
}

.page-hero__title {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -1px;
}

.page-hero__subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-top: 16px;
  max-width: 500px;
  line-height: 1.7;
}

/* Active nav link */
.nav__links .active {
  color: var(--text-primary) !important;
}

/* ============================================
   Work Page — Grid
   ============================================ */
.work {
  padding-top: 48px;
  height: calc(100dvh - 48px);
}

.work__title {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1;
  margin-bottom: 16px;
}

.work__intro {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.55);
  max-width: 300px;
  line-height: 1.6;
  letter-spacing: -0.02em;
}

.work__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 1fr 1fr;
  gap: 6px;
  height: 100%;
}

.work-card {
  position: relative;
  display: block;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-card);
  cursor: pointer;
  transition: transform 0.4s var(--ease);
}

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

.work-card__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  pointer-events: none;
}

.work-card__fallback { position: absolute; inset: 0; z-index: 0; }

.work-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.1) 0%,
    transparent 35%,
    transparent 50%,
    rgba(0, 0, 0, 0.65) 100%
  );
  z-index: 2;
  pointer-events: none;
}

.work-card__top {
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 3;
}

.work-card__tag {
  display: inline-block;
  padding: 5px 12px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 500;
  color: #fff;
}

.work-card__count {
  font-size: 0.6875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
}

.work-card__bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  z-index: 3;
}

.work-card__name {
  font-size: 0.9375rem;
  font-weight: 500;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-bottom: 2px;
}

.work-card__desc {
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: -0.02em;
}

/* Intro cell */
.work-card--intro {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  cursor: default;
}

.work-card--intro:hover { transform: none; }

/* ============================================
   Project Detail Page
   ============================================ */
.proj {
  padding: 80px 40px 0;
  max-width: 1200px;
  margin: 0 auto;
}

.proj__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: rgba(230, 228, 222, 0.6);
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  transition: color 0.2s;
}

.proj__back:hover { color: rgb(230, 228, 222); }

.proj__player {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  background: rgb(20, 20, 20);
}

.proj__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.proj__video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 60%, rgba(20, 20, 20, 0.3));
  pointer-events: none;
  transition: opacity 0.3s ease;
}

/* Custom Video Controls */
.proj__controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 10;
}

.proj__player:hover .proj__controls,
.proj__player.proj__player--paused .proj__controls {
  opacity: 1;
}

.proj__controls button {
  background: none;
  border: none;
  color: rgb(230, 228, 222);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.85;
  transition: opacity 0.2s;
}

.proj__controls button:hover { opacity: 1; }

.proj__progress-wrap {
  flex: 1;
  height: 4px;
  background: rgba(230, 228, 222, 0.2);
  border-radius: 2px;
  cursor: pointer;
  position: relative;
}

.proj__progress-wrap:hover { height: 6px; }

.proj__progress-bar {
  height: 100%;
  background: rgb(230, 228, 222);
  border-radius: 2px;
  width: 0%;
  transition: none;
  pointer-events: none;
}

.proj__time {
  font-size: 0.7rem;
  color: rgba(230, 228, 222, 0.7);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  letter-spacing: -0.02em;
  min-width: 70px;
  text-align: center;
}

.proj__vol-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.proj__vol-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 60px;
  height: 4px;
  background: rgba(230, 228, 222, 0.2);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}

.proj__vol-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgb(230, 228, 222);
  cursor: pointer;
}

.proj__vol-slider::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgb(230, 228, 222);
  border: none;
  cursor: pointer;
}

/* Play overlay for initial state */
.proj__play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.15);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.proj__player.proj__player--paused .proj__play-overlay {
  opacity: 1;
  background: rgba(0, 0, 0, 0.3);
}

.proj__play-overlay svg {
  width: 56px;
  height: 56px;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
  opacity: 0.9;
}

@media (max-width: 600px) {
  .proj__controls { gap: 8px; padding: 8px 12px; }
  .proj__vol-slider { width: 40px; }
  .proj__time { font-size: 0.65rem; min-width: 55px; }
  .proj__play-overlay svg { width: 40px; height: 40px; }
}

/* Thumbnail selector */
.proj__selector {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.proj__thumb {
  position: relative;
  flex: 1;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  background: none;
  padding: 0;
  transition: border-color 0.3s var(--ease);
}

.proj__thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.proj__thumb-overlay {
  position: absolute;
  inset: 0;
  background: rgba(20, 20, 20, 0.5);
  transition: opacity 0.3s var(--ease);
}

.proj__thumb--active .proj__thumb-overlay,
.proj__thumb:hover .proj__thumb-overlay { opacity: 0.15; }

.proj__thumb-label {
  position: absolute;
  bottom: 8px;
  left: 10px;
  font-size: 0.75rem;
  font-weight: 500;
  color: rgb(230, 228, 222);
  letter-spacing: -0.03em;
  z-index: 2;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.proj__thumb--active .proj__thumb-label { opacity: 1; }

.proj__thumb-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgb(230, 228, 222);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
  z-index: 3;
}

.proj__thumb--active .proj__thumb-bar { transform: scaleX(1); }

/* Project info */
.proj__info {
  margin-top: 48px;
  max-width: 680px;
}

.proj__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.proj__tag,
.proj__count {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(230, 228, 222, 0.6);
  letter-spacing: -0.03em;
}

.proj__divider {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(230, 228, 222, 0.3);
}

.proj__title {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 0.95;
  margin-bottom: 8px;
}

.proj__subtitle {
  font-size: 1.125rem;
  font-weight: 500;
  color: rgba(230, 228, 222, 0.5);
  letter-spacing: -0.03em;
}

.proj__body { margin-top: 28px; }

.proj__body p {
  font-size: 1rem;
  color: rgba(230, 228, 222, 0.75);
  line-height: 1.65;
  letter-spacing: -0.03em;
}

.proj__details {
  display: flex;
  gap: 32px;
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid rgba(230, 228, 222, 0.1);
}

.proj__detail { display: flex; flex-direction: column; gap: 4px; }

.proj__detail-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(230, 228, 222, 0.4);
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.proj__detail-value {
  font-size: 0.9375rem;
  font-weight: 500;
  color: rgb(230, 228, 222);
  letter-spacing: -0.03em;
}

.proj__next {
  margin-top: 80px;
  padding: 32px 0;
  border-top: 1px solid rgba(230, 228, 222, 0.1);
}

.proj__next-link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: opacity 0.2s;
}

.proj__next-link:hover { opacity: 0.7; }

.proj__next-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(230, 228, 222, 0.4);
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.proj__next-name {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 500;
  color: rgb(230, 228, 222);
  letter-spacing: -0.05em;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ============================================
   About Page — Redesigned
   ============================================ */

/* --- Hero: full-bleed image with centered overlay text --- */
.about-hero {
  padding: 0;
  position: relative;
  height: clamp(320px, 65dvh, 70dvh);
  min-height: 320px;
  overflow: hidden;
  margin-top: 48px;
}

.about-hero__image {
  position: absolute;
  inset: 0;
}

.about-hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-hero__placeholder {
  width: 100%;
  height: 100%;
  background:
    linear-gradient(135deg, rgba(20, 30, 48, 0.9), rgba(12, 20, 40, 0.85)),
    linear-gradient(45deg, #0a0a1a 0%, #1a1a3e 30%, #0f2847 60%, #1a0a2e 100%);
  background-size: cover;
}

.about-hero__gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(12, 12, 12, 0.15) 0%,
    rgba(12, 12, 12, 0.05) 40%,
    rgba(12, 12, 12, 0.4) 75%,
    rgba(12, 12, 12, 1) 100%
  );
  z-index: 1;
}

.about-hero__content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  padding: 0 var(--px);
}

.about-hero__title {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 8vw, 7rem);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.04em;
  text-align: center;
  color: rgb(237, 237, 237);
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.3);
}

/* --- Mission: two-column layout --- */
.about-mission {
  padding: 100px 0 120px;
}

.about-mission__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.about-mission__heading {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.03em;
  position: sticky;
  top: 100px;
}

.about-mission__right p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.about-mission__right p:last-child {
  margin-bottom: 0;
}

/* --- Services: numbered cards --- */
.about-services {
  padding: 80px 0 120px;
  border-top: 1px solid var(--border);
}

.about-services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.about-service {
  padding: 0;
}

.about-service__number {
  display: block;
  font-family: var(--font-serif);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.about-service__title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.about-service__desc {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
  letter-spacing: -0.02em;
}

/* --- About FAQ layout (nav bar above questions) --- */
.about-faq {
  padding: 80px 0 40px;
  border-top: 1px solid var(--border);
}

.about-faq .faq__list {
  width: 100%;
}

.about-faq__layout {
  width: 100%;
}

.about-faq__header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 32px;
  margin-bottom: 8px;
}

.about-faq__logo {
  display: flex;
  align-items: center;
}

.about-faq__logo img {
  height: 16px;
  width: auto;
  opacity: 0.5;
}

.about-faq__brand {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: -0.03em;
}

.about-faq__nav {
  display: flex;
  gap: 20px;
  margin-left: auto;
}

.about-faq__nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: -0.03em;
  transition: color 0.2s;
}

.about-faq__nav a:hover {
  color: var(--text-primary);
}

/* --- About page footer adjustments --- */
.about-footer {
  margin-top: 0;
}

.about-footer .footer__nav-row {
  position: relative;
}

.about-footer .footer__scroll-top {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgb(20, 20, 20);
  letter-spacing: -0.03em;
  transition: opacity 0.2s;
}

.about-footer .footer__scroll-top:hover {
  opacity: 0.6;
}

/* ============================================
   Journal Page
   ============================================ */
.jrnl {
  padding: 120px 40px 80px;
  max-width: 1400px;
  margin: 0 auto;
}

/* Top section: title left, featured right */
.jrnl__layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  align-items: start;
  margin-bottom: 10px;
}

.jrnl__left {
  position: sticky;
  top: 80px;
  padding-top: 8px;
}

.jrnl__title {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 7vw, 5rem);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 0.9;
  margin-bottom: 20px;
}

.jrnl__intro {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.55;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}

/* Featured post (large card) */
.jrnl__featured {
  display: block;
  border-radius: 8px;
  overflow: hidden;
  background: rgb(230, 228, 222);
  transition: transform 0.4s var(--ease);
}

.jrnl__featured:hover { transform: translateY(-3px); }

.jrnl__featured-img {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.jrnl__featured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.jrnl__featured:hover .jrnl__featured-img img {
  transform: scale(1.03);
}

.jrnl__featured-body {
  padding: 20px 24px 24px;
}

.jrnl__tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(28, 28, 28, 0.5);
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.jrnl__featured-title {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 500;
  color: rgb(28, 28, 28);
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 8px;
}

.jrnl__featured-excerpt {
  font-size: 0.9375rem;
  color: rgba(28, 28, 28, 0.65);
  line-height: 1.5;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.jrnl__date {
  font-size: 0.8125rem;
  color: rgba(28, 28, 28, 0.5);
  letter-spacing: -0.03em;
}

/* Post grid (3 columns below) */
.jrnl__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.jrnl__card {
  display: block;
  border-radius: 8px;
  overflow: hidden;
  background: rgb(230, 228, 222);
  transition: transform 0.4s var(--ease);
}

.jrnl__card:hover { transform: translateY(-3px); }

.jrnl__card-img {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.jrnl__card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.jrnl__card:hover .jrnl__card-img img {
  transform: scale(1.03);
}

.jrnl__card-body {
  padding: 16px 20px 20px;
}

.jrnl__card-title {
  font-size: 1rem;
  font-weight: 500;
  color: rgb(28, 28, 28);
  letter-spacing: -0.03em;
  line-height: 1.3;
  margin-bottom: 6px;
}

.jrnl__card-excerpt {
  font-size: 0.875rem;
  color: rgba(28, 28, 28, 0.6);
  line-height: 1.5;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}

/* Keep old classes for homepage journal cards */
.journal-page-card {
  display: block;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-card);
  transition: transform var(--transition), background var(--transition);
}

.journal-page-card:hover {
  transform: translateY(-4px);
  background: var(--bg-card-hover);
}

/* ============================================
   Blog Post Page
   ============================================ */
.post {
  padding-top: 48px;
}

.post__hero {
  width: 100%;
  max-height: 520px;
  overflow: hidden;
  border-radius: 0 0 12px 12px;
}

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

.post__content {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 var(--px);
}

.post__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 40px 0 32px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
}

.post__back {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: -0.02em;
  transition: color 0.2s;
}

.post__back:hover {
  color: var(--text-primary);
}

.post__date {
  font-size: 0.8125rem;
  color: var(--text-muted);
  letter-spacing: -0.02em;
}

.post__title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 40px;
}

.post__body h2 {
  font-family: var(--font-serif);
  font-size: 1.375rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-top: 48px;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.post__body p {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  line-height: 1.8;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.post__body p:last-child {
  margin-bottom: 0;
}

/* Next post link */
.post__next {
  margin-top: 64px;
  padding: 32px 0 80px;
  border-top: 1px solid var(--border);
}

.post__next-link {
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: opacity 0.2s;
}

.post__next-link:hover {
  opacity: 0.7;
}

.post__next-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.post__next-title {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: -0.03em;
}

/* ============================================
   Contact Page — Split Layout
   ============================================ */
.contact-split {
  padding-top: 48px;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-split__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--px);
  gap: 0;
  min-height: 620px;
}

/* Left image panel */
.contact-split__image {
  position: relative;
  border-radius: 12px 0 0 12px;
  overflow: hidden;
}

.contact-split__image img,
.contact-split__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Right form card */
.contact-split__form-card {
  background: #1a1a1a;
  border-radius: 0 12px 12px 0;
  padding: 48px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-split__heading {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  margin-bottom: 36px;
  color: var(--text-primary);
}

/* Form v2 — clean rounded inputs */
.contact-form-v2 {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field label {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.form-field__optional {
  color: var(--text-muted);
  font-weight: 400;
}

.form-field input,
.form-field select,
.form-field textarea {
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  transition: border-color 0.25s ease, background 0.25s ease;
  outline: none;
}

.form-field input:hover,
.form-field select:hover,
.form-field textarea:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
}

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

.form-field select {
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

.form-field select option {
  background: #1a1a1a;
  color: var(--text-primary);
}

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

/* Submit button */
.contact-submit {
  width: 100%;
  padding: 14px 32px;
  margin-top: 8px;
  background: var(--text-primary);
  color: var(--bg-primary);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}

.contact-submit:hover {
  background: #ddd;
  transform: translateY(-1px);
}

.contact-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Contact info bar */
.contact-info-bar {
  padding: 64px 0 80px;
}

.contact-info-bar__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.contact-info-bar__block h3 {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.contact-info-bar__block a,
.contact-info-bar__block p {
  font-size: 1rem;
  color: var(--text-primary);
  transition: color 0.2s;
}

.contact-info-bar__block a:hover {
  color: var(--text-secondary);
}

.contact-info-bar__socials {
  display: flex;
  gap: 20px;
}

.contact-info-bar__socials a {
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.contact-info-bar__socials a:hover {
  color: var(--text-primary);
}

/* ============================================
   Sub-page Footer
   ============================================ */
.footer__content {
  padding: 0;
}

.footer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  border-top: 1px solid var(--border);
}

.footer__logo {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 500;
  font-style: italic;
  color: var(--text-primary);
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0 40px;
  border-top: 1px solid var(--border);
}

.footer__bottom p {
  font-size: 0.6875rem;
  color: var(--text-muted);
}

.footer__scroll-top {
  font-size: 0.6875rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer__scroll-top:hover {
  color: var(--text-primary);
}

/* ============================================
   404 Page
   ============================================ */
.error-page {
  position: relative;
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.error-page__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #8b6914, #c49b2a, #d4a832);
  opacity: 0.3;
}

.error-page__content {
  position: relative;
  text-align: center;
  z-index: 1;
}

.error-page__title {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 10vw, 7rem);
  font-weight: 500;
  line-height: 1;
  margin-bottom: 16px;
}

.error-page__text {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
}

.error-page__logo {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  z-index: 1;
}

/* ============================================
   Responsive — Tablet
   ============================================ */
@media (max-width: 1024px) {
  .work__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .proj__selector { gap: 6px; }
  .proj__details { flex-wrap: wrap; gap: 24px; }

  .jrnl__layout { grid-template-columns: 1fr 1.5fr; gap: 24px; }
  .jrnl__grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================
   Responsive — Mobile
   ============================================ */
@media (max-width: 768px) {
  .page-hero {
    padding-top: 120px;
    padding-bottom: 48px;
  }

  .work { padding-top: 44px; height: auto; }
  .work__grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    height: auto;
  }
  .work-card { min-height: 280px; }

  .proj { padding: 70px 20px 0; }
  .proj__selector { flex-direction: column; }
  .proj__thumb { aspect-ratio: 16 / 7; }
  .proj__details { flex-direction: column; gap: 16px; }

  .services__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .jrnl { padding: 100px 20px 60px; }
  .jrnl__layout { grid-template-columns: 1fr; }
  .jrnl__left { position: static; margin-bottom: 16px; }
  .jrnl__grid { grid-template-columns: 1fr; }

  .post__hero { max-height: 300px; border-radius: 0; }
  .post__title { font-size: var(--text-2xl); }
  .post__meta { padding: 28px 0 24px; margin-bottom: 28px; }
  .post__body h2 { margin-top: 36px; }

  .contact-split__inner {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .contact-split__image {
    border-radius: 12px 12px 0 0;
    min-height: 280px;
  }

  .contact-split__form-card {
    border-radius: 0 0 12px 12px;
    padding: 32px 24px;
  }

  .contact-info-bar__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .about-hero {
    margin-top: 44px;
  }

  .about-hero__title {
    font-size: clamp(2rem, 10vw, 3.5rem);
  }

  .about-mission {
    padding: 64px 0 80px;
  }

  .about-mission__layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .about-mission__heading {
    position: static;
  }

  .about-services__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .about-faq__header {
    flex-wrap: wrap;
  }

  .about-faq__nav {
    margin-left: 0;
    flex-basis: 100%;
    gap: 16px;
  }

  .footer__top {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .page-hero {
    padding-top: 88px;
    padding-bottom: 36px;
  }

  .page-hero__title {
    font-size: var(--text-4xl);
  }

  .service-card {
    padding: 28px 20px;
  }

  /* Work page */
  .work-card--intro { padding: 20px; }
  .work-card { min-height: 240px; }

  /* Project detail */
  .proj { padding: 60px 16px 0; }
  .proj__info { margin-top: 32px; }
  .proj__next { margin-top: 48px; }
  .proj__details { gap: 12px; }

  .proj__selector {
    flex-direction: row;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    gap: 6px;
    padding-bottom: 4px;
  }

  .proj__thumb {
    flex: 0 0 45%;
    aspect-ratio: 16 / 9;
    scroll-snap-align: start;
  }

  /* Journal page */
  .jrnl { padding: 72px 16px 48px; }

  /* Blog post */
  .post__hero { max-height: 220px; }
  .post__next { margin-top: 48px; padding-bottom: 60px; }

  /* Contact page */
  .contact-split { min-height: auto; }
  .contact-split__image { min-height: 200px; }
  .contact-split__form-card { padding: 28px 20px; }
  .contact-split__heading { font-size: 1.5rem; margin-bottom: 28px; }
  .contact-info-bar { padding: 48px 0 60px; }
  .contact-info-bar__grid { gap: 20px; }

  /* Form inputs — prevent iOS auto-zoom */
  .form-field input,
  .form-field select,
  .form-field textarea {
    padding: 14px;
    font-size: 1rem;
  }

  .contact-submit {
    padding: 16px 32px;
    min-height: 48px;
  }

  /* About page */
  .about-hero {
    min-height: 280px;
  }

  .about-mission {
    padding: 48px 0 64px;
  }

  .about-services {
    padding: 48px 0 80px;
  }

  .about-services__grid { gap: 24px; }

  .about-faq {
    padding: 48px 0 24px;
  }

  .about-faq__nav { gap: 12px; flex-wrap: wrap; }
  .about-faq__nav a {
    padding: 10px 0;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
}

/* ============================================
   Responsive — Small iPhone (SE / Mini)
   ============================================ */
@media (max-width: 390px) {
  .work-card--intro { padding: 16px; }
  .work-card { min-height: 220px; }
  .proj__thumb { flex: 0 0 55%; }
  .contact-split__image { min-height: 160px; }
  .contact-split__heading { font-size: 1.375rem; }
  .jrnl { padding: 64px 14px 40px; }
  .about-mission { padding: 40px 0 48px; }
}
