/* ============================================
   OLGA AGRIKOVA — Portfolio Website
   agrikova.art
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  --color-bg: #FBF7F1;
  --color-bg-alt: #F1E7DA;
  --color-text: #76726E;
  --color-text-light: #76726E;
  --color-accent: #A96B43;
  --color-accent-hover: #8F5532;
  --color-border: #E7DBCD;
  --color-overlay: rgba(0, 0, 0, 0.85);

  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --container-max: 1400px;
  --container-narrow: 900px;
  --nav-height: 80px;

  --transition: 0.3s ease;
  --transition-slow: 0.6s ease;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--color-text);
  background:
    radial-gradient(1200px 500px at 15% -10%, #f0e3d2 0%, transparent 60%),
    radial-gradient(800px 400px at 85% 0%, #efe1cd 0%, transparent 65%),
    var(--color-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.contact-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--color-bg-alt);
}

body.contact-page main {
  flex: 1;
  background:
    radial-gradient(1200px 500px at 15% -10%, #f0e3d2 0%, transparent 60%),
    radial-gradient(800px 400px at 85% 0%, #efe1cd 0%, transparent 65%),
    var(--color-bg);
}

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

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

a:hover {
  color: var(--color-accent);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

ul, ol {
  list-style: none;
}

button {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
}

h4 {
  font-size: 1.1rem;
  font-family: var(--font-body);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.75rem;
}

p {
  margin-bottom: 1em;
}

.section-subtitle {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-text-light);
  margin-bottom: 0.5rem;
}

.section-title {
  margin-bottom: 1rem;
}

.section-description {
  max-width: 600px;
  color: var(--color-text-light);
  font-size: 1.05rem;
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 2rem;
}

.container--narrow {
  max-width: var(--container-narrow);
}

section {
  padding: 6rem 0;
}

/* --- Header / Navigation --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(251, 247, 241, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), background var(--transition);
}

.header.scrolled {
  border-bottom-color: var(--color-border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 2rem;
}

.header__logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.header__logo a {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  color: var(--color-accent);
  width: max-content;
}

.header__logo a:hover {
  color: var(--color-text);
}

.header__logo .logo-sub {
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.21em;
  color: var(--color-text-light);
  margin-top: 0.42rem;
}

.header__logo .logo-sub::before {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  margin-bottom: 0.5rem;
  background: currentColor;
  opacity: 0.75;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.header__nav-list {
  display: flex;
  gap: 2rem;
}

.header__nav-link {
  font-size: 0.8rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  position: relative;
  padding: 0.25rem 0;
}

.header__nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-accent);
  transition: width var(--transition);
}

.header__nav-link:hover::after,
.header__nav-link.active::after {
  width: 100%;
}

.header__nav-link.active {
  color: var(--color-accent);
}

/* Language Toggle */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.lang-toggle a {
  padding: 0.2rem 0;
}

.lang-toggle .active {
  color: var(--color-accent);
  border-bottom: 1px solid var(--color-accent);
}

.lang-toggle .separator {
  color: var(--color-border);
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 28px;
  height: 28px;
  z-index: 1010;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--color-text);
  transition: transform var(--transition), opacity var(--transition);
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu Overlay */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.98);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  transition: opacity var(--transition);
}

.mobile-menu.open {
  display: flex;
  opacity: 1;
}

.mobile-menu a {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 400;
}

.mobile-menu .lang-toggle {
  margin-top: 2rem;
  font-size: 0.9rem;
}

/* --- Hero Section --- */
.hero {
  position: relative;
  height: 72vh;
  min-height: 624px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-top: var(--nav-height);
  overflow: hidden;
}

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

.hero__bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.hero__content {
  position: relative;
  z-index: 1;
  padding: 2rem;
}

.hero__name {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 300;
  letter-spacing: 0.05em;
  line-height: 1;
  color: #fff;
  margin-bottom: 1.5rem;
}

.hero__tagline {
  font-size: clamp(0.85rem, 1.5vw, 1.1rem);
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: #fff;
  margin-bottom: 0;
}

/* --- CTA Button --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 2.5rem;
  font-size: 0.75rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  border: 1px solid var(--color-text);
  transition: all var(--transition);
  text-align: center;
}

.btn:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  color: var(--color-bg);
}

.btn--accent {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.btn--accent:hover {
  background: var(--color-accent);
  color: var(--color-bg);
}

/* --- Featured Projects (Home) --- */
.featured {
  background: var(--color-bg);
  padding-top: 3rem;
  padding-bottom: 4rem;
}

.featured__header {
  text-align: center;
  margin-bottom: 2rem;
}

.featured__actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin-top: 3rem;
}

.featured__actions .btn,
.cta-section .btn {
  min-width: 16rem;
}

@media (max-width: 480px) {
  .featured__actions {
    flex-direction: column;
    gap: 1rem;
  }
}

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

.project-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 16px 32px rgba(98, 75, 54, 0.08);
}

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

.project-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

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

.project-card__info {
  padding: 1.25rem 1.15rem 1.35rem;
}

.project-card__title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  margin-bottom: 0.25rem;
}

.project-card__category {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-text-light);
}

.project-card__description {
  margin-top: 0.65rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--color-text-light);
}

.project-card__materials {
  margin-top: 0.75rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent);
}

/* --- CTA Section (Home) --- */
.cta-section {
  background: var(--color-bg-alt);
  text-align: center;
}

.cta-section h2 {
  margin-bottom: 1rem;
}

.cta-section p {
  color: var(--color-text-light);
  max-width: 500px;
  margin: 0 auto 2.5rem;
}

/* --- Portfolio Gallery --- */
.portfolio-header {
  text-align: center;
  padding-top: calc(var(--nav-height) + 4rem);
  padding-bottom: 3rem;
}

/* Filter Tabs */
.filter-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.filter-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 12rem;
  padding: 0.9rem 2.5rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 400;
  border: 1px solid var(--color-accent);
  color: var(--color-accent);
  transition: all var(--transition);
  cursor: pointer;
  text-align: center;
}

.filter-tab:hover,
.filter-tab.active {
  border-color: var(--color-accent);
  background: var(--color-accent);
  color: var(--color-bg);
}

/* Portfolio Grid */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding-bottom: 6rem;
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border-radius: 14px;
  box-shadow: 0 16px 28px rgba(98, 75, 54, 0.08);
}

.portfolio-item__link {
  display: block;
  color: inherit;
}

.portfolio-item__image {
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.portfolio-item__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.portfolio-item:hover .portfolio-item__image img {
  transform: scale(1.05);
}

.portfolio-item__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
  color: #fff;
  text-align: center;
  padding: 1.5rem;
}

.portfolio-item:hover .portfolio-item__overlay {
  opacity: 1;
}

.portfolio-item__overlay h3 {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.portfolio-item__overlay span {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  opacity: 0.8;
}

/* --- Project Pages --- */
.project-header {
  text-align: center;
  padding-top: calc(var(--nav-height) + 4rem);
  padding-bottom: 2.5rem;
}

.project-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: start;
  gap: 1.25rem;
  padding-bottom: 6rem;
}

.project-gallery__item {
  display: block;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 12px 24px rgba(98, 75, 54, 0.08);
}

.project-gallery__item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  transition: transform var(--transition-slow);
}

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

/* --- Project Description (object/project detail pages) --- */
.project-description {
  padding: 0 0 3rem;
}

.project-description__text {
  margin-bottom: 1rem;
  color: var(--color-text-light);
  line-height: 1.85;
  position: relative;
}

.project-description__text p {
  margin-bottom: 1em;
}

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

.catalog-link {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 0.14em;
}

.catalog-link:hover {
  color: var(--color-accent-hover);
}

.project-description__content {
  position: relative;
}

/* Mobile: collapsed by default */
@media (max-width: 768px) {
  .project-description__content {
    max-height: 14rem;
    overflow: hidden;
    transition: max-height 0.4s ease;
  }

  .project-description__content::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3.5rem;
    background: linear-gradient(to bottom, transparent, var(--color-bg));
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  .project-description__content.expanded {
    max-height: none;
    overflow: visible;
  }

  .project-description__content.expanded::after {
    opacity: 0;
  }

  .project-meta {
    padding-top: 1.6rem;
  }
}

/* Toggle button — hidden on desktop, shown on mobile */
.description-toggle {
  display: none;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-accent);
  margin-top: 0.75rem;
  margin-bottom: 2rem;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  transition: color var(--transition);
}

.description-toggle:hover {
  color: var(--color-accent-hover);
}

.toggle-icon {
  width: 11px;
  height: 7px;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.description-toggle[aria-expanded="true"] .toggle-icon {
  transform: rotate(180deg);
}

@media (max-width: 768px) {
  .description-toggle {
    display: inline-flex;
    margin-top: 0.9rem;
  }
}

.project-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem 4rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--color-border);
}

.project-meta dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.6rem 1.5rem;
  align-items: baseline;
}

.project-meta dt {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-text-light);
  font-weight: 400;
  white-space: nowrap;
}

.project-meta dd {
  font-size: 0.9rem;
  color: var(--color-text);
}

.project-meta__label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-text-light);
  font-weight: 400;
  margin-bottom: 0.85rem;
}

.project-meta__awards ul {
  padding: 0;
}

.project-meta__awards li {
  font-size: 0.85rem;
  color: var(--color-text);
  padding: 0.45rem 0 0.45rem 1.1rem;
  border-bottom: 1px solid var(--color-border);
  position: relative;
  line-height: 1.5;
}

.project-meta__awards li:first-child {
  border-top: 1px solid var(--color-border);
}

.project-meta__awards li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--color-accent);
}

@media (max-width: 768px) {
  .project-meta {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* --- Objects Page --- */
.objects-header {
  text-align: center;
  padding-top: calc(var(--nav-height) + 4rem);
  padding-bottom: 3rem;
}

.objects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  padding-bottom: 6rem;
}

.object-card {
  text-align: center;
  background: #fff;
  border-radius: 16px;
  padding: 0.9rem 0.9rem 1.2rem;
  box-shadow: 0 12px 24px rgba(98, 75, 54, 0.08);
}

.object-card__link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.object-card__image {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  margin-bottom: 1.5rem;
  background: var(--color-bg-alt);
}

.object-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.object-card:hover .object-card__image img {
  transform: scale(1.05);
}

.object-card__title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.object-card__description {
  font-size: 0.9rem;
  color: var(--color-text-light);
  max-width: 300px;
  margin: 0 auto;
}

.object-card__materials {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  margin-top: 0.75rem;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* --- About Page --- */
.about-section {
  padding-top: calc(var(--nav-height) + 4rem);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.about-image {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--color-bg-alt);
  isolation: isolate;
}

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

/* Keep portrait face visible by anchoring crop to top on About page portrait only. */
.about-image--portrait img {
  object-position: center top;
}

.about-image--interactive {
  --eye-center-x: 50%;
  --eye-center-y: 20%;
  --eye-shell-width: 32px;
  --eye-shell-height: 18px;
  --eye-hole-width: 16px;
  --eye-hole-height: 10px;
  --eye-look-x: 0px;
  --eye-look-y: 0px;
  --eye-tilt: -9deg;
}

.about-portrait__eye {
  position: absolute;
  left: var(--eye-center-x);
  top: var(--eye-center-y);
  width: var(--eye-shell-width);
  height: var(--eye-shell-height);
  transform: translate(-50%, -50%);
  overflow: hidden;
  pointer-events: none;
  z-index: 3;
  opacity: 0;
  background-image: var(--eye-sclera-texture, none);
  background-size: 100% 100%;
  -webkit-mask-image: var(--eye-aperture-texture, none);
  mask-image: var(--eye-aperture-texture, none);
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

.about-image--interactive.is-eye-ready .about-portrait__eye {
  opacity: 1;
}

.about-portrait__iris {
  position: absolute;
  left: var(--eye-iris-x);
  top: var(--eye-iris-y);
  width: var(--eye-iris-size);
  height: var(--eye-iris-size);
  transform: translate(calc(-50% + var(--eye-look-x)), calc(-50% + var(--eye-look-y)));
  will-change: transform;
  background-image: var(--eye-iris-texture, none);
  background-size: 100% 100%;
}

.about-portrait__photo {
  position: relative;
  z-index: 2;
}

.about-content {
  padding-top: 2rem;
}

.about-content h1 {
  margin-bottom: 2rem;
  font-size: clamp(2.5rem, 5vw, 4rem);
}

.about-content p {
  color: var(--color-text-light);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

.about-skills {
  margin-top: 3rem;
}

.about-skills h4 {
  margin-bottom: 1.5rem;
}

.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.skill-tag {
  padding: 0.5rem 1.25rem;
  border: 1px solid var(--color-border);
  font-size: 0.8rem;
  font-weight: 300;
  transition: all var(--transition);
}

.skill-tag:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* Timeline / Experience */
.experience-section {
  background: var(--color-bg-alt);
}

.experience-section .container {
  max-width: var(--container-narrow);
}

.experience-header {
  text-align: center;
  margin-bottom: 3rem;
}

.timeline {
  position: relative;
}

.timeline-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 2.5rem;
}

.timeline-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.timeline-year {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--color-accent);
}

.timeline-content h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.timeline-content p {
  color: var(--color-text-light);
  font-size: 0.95rem;
}

/* --- Contact Page --- */
.contact-section {
  padding-top: calc(var(--nav-height) + 4rem);
}

.contact-section + .footer {
  border-top: none;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 780px;
  margin: 0 auto;
}

.contact-info h1 {
  margin-bottom: 1.5rem;
  font-size: clamp(2.5rem, 5vw, 4rem);
}

.contact-info {
  background: #fff;
  border-radius: 18px;
  padding: 2rem;
  box-shadow: 0 16px 30px rgba(98, 75, 54, 0.08);
}

.contact-info > p {
  color: var(--color-text-light);
  font-size: 1.05rem;
  margin-bottom: 3rem;
}

.contact-details {
  margin-bottom: 3rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-item__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--color-accent);
}

.contact-item__label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-text-light);
  margin-bottom: 0.25rem;
}

.contact-item__value {
  font-size: 1.05rem;
}

.contact-item__value a:hover {
  color: var(--color-accent);
}

/* --- Media Page --- */
.media-section {
  padding-top: 0;
}

.media-section .container {
  max-width: var(--container-narrow);
}

.media-intro {
  text-align: center;
  margin-bottom: 4rem;
}

.media-intro h1 {
  margin-bottom: 1.5rem;
  font-size: clamp(2.5rem, 5vw, 4rem);
}

.media-intro p {
  color: var(--color-text-light);
  font-size: 1.05rem;
  max-width: 640px;
  margin: 0 auto;
}

.media-block + .media-block {
  margin-top: 4rem;
}

.media-block .section-subtitle {
  margin-bottom: 1rem;
}

.media-section .timeline-item {
  gap: 1.25rem;
  padding-bottom: 1.4rem;
  margin-bottom: 1.4rem;
}

.media-section .timeline-year {
  font-size: 1.35rem;
}

.media-section .timeline-content h3 {
  margin-bottom: 0.2rem;
}

.media-section .timeline-content p {
  margin-bottom: 0;
  line-height: 1.45;
}

.media-block--recognition .timeline-item {
  align-items: center;
}

.media-section .timeline-content a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 0.14em;
}

.media-section .timeline-content a:hover {
  color: var(--color-accent-hover);
}

.media-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.media-link-card {
  display: block;
  background: #fff;
  border-radius: 16px;
  padding: 1.5rem;
  border: 1px solid var(--color-border);
  box-shadow: 0 16px 30px rgba(98, 75, 54, 0.08);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.media-link-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-accent);
  box-shadow: 0 18px 34px rgba(98, 75, 54, 0.12);
}

.media-link-card__source {
  display: inline-block;
  margin-bottom: 0.75rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-accent);
}

.media-link-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
}

.media-link-card p {
  margin-bottom: 0;
  color: var(--color-text-light);
  font-size: 0.95rem;
}

.social-links {
  display: flex;
  gap: 1.5rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  transition: all var(--transition);
}

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

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

/* Contact Form */
.contact-form {
  padding-top: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-text-light);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 0;
  border: none;
  border-bottom: 1px solid var(--color-border);
  background: transparent;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 300;
  color: var(--color-text);
  transition: border-color var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-bottom-color: var(--color-accent);
}

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

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--color-border);
}

.contact-form .btn {
  margin-top: 1rem;
}

.contact-form .btn[disabled] {
  opacity: 0.7;
  cursor: wait;
}

.form-status {
  min-height: 1.4rem;
  margin-top: 0.5rem;
  margin-bottom: 0.25rem;
  color: var(--color-text-light);
  font-size: 0.85rem;
}

.form-status.is-success {
  color: #2b7a40;
}

/* --- Lightbox --- */
.lightbox {
  position: fixed;
  inset: 0;
  background: var(--color-overlay);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
}

.lightbox.open {
  display: flex;
  opacity: 1;
}

.lightbox__close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  color: #fff;
  font-size: 1.5rem;
  z-index: 2001;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.lightbox__close:hover {
  color: var(--color-accent);
}

.lightbox__content {
  position: relative;
  overflow: hidden;
  width: min(92vw, 1200px);
  max-height: 90vh;
  touch-action: none;
}

.lightbox__carousel {
  display: flex;
  width: 300%;
  height: min(82vh, 900px);
  transform: translate3d(-100%, 0, 0);
}

.lightbox__carousel.is-animating {
  transition: transform 0.22s ease;
}

.lightbox__slide {
  flex: 0 0 33.3333%;
  width: 33.3333%;
  height: 100%;
  padding: 0;
  object-fit: contain;
  object-position: center;
}

.lightbox__caption {
  color: #fff;
  text-align: center;
  margin-top: 1rem;
  font-size: 0.9rem;
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 2rem;
  padding: 1rem;
  cursor: pointer;
  z-index: 2001;
  transition: color var(--transition);
}

.lightbox__nav:hover {
  color: var(--color-accent);
}

.lightbox__nav--prev {
  left: 1rem;
}

.lightbox__nav--next {
  right: 1rem;
}

/* --- Footer --- */
.footer {
  background: var(--color-bg-alt);
  padding: 4rem 0;
  border-top: 1px solid var(--color-border);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer__copyright {
  font-size: 0.8rem;
  color: var(--color-text-light);
}

.footer__links {
  display: flex;
  gap: 1.5rem;
}

.footer__links a {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-light);
}

.footer__links a:hover {
  color: var(--color-accent);
}

.back-to-top {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-text-light);
  cursor: pointer;
  transition: color var(--transition);
}

.back-to-top:hover {
  color: var(--color-accent);
}

.back-to-top svg {
  width: 12px;
  height: 12px;
}

/* --- Page Transitions / Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

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

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

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

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

  .about-grid {
    gap: 3rem;
  }

  .contact-grid {
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  section {
    padding: 4rem 0;
  }

  .container {
    padding: 0 1.25rem;
  }

  /* Header Mobile */
  .hamburger {
    display: flex;
  }

  .header__nav {
    display: none;
  }

  /* Hero Mobile */
  .hero {
    min-height: 650px;
  }

  .hero__name {
    font-size: clamp(2.5rem, 12vw, 4rem);
  }

  /* Featured */
  .featured__grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .project-card__image {
    aspect-ratio: 1 / 1;
  }

  /* Portfolio */
  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .project-gallery {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .filter-tabs {
    gap: 0.5rem;
  }

  .filter-tab {
    min-width: calc(50% - 0.25rem);
    padding: 0.75rem 1rem;
    font-size: 0.68rem;
    letter-spacing: 0.16em;
  }

  /* Objects */
  .objects-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  /* About */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .about-image {
    aspect-ratio: 1 / 1;
  }

  .about-image--portrait img {
    object-position: center top;
  }

  .about-content {
    padding-top: 0;
  }

  /* Contact */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  /* Media */
  .media-links {
    grid-template-columns: 1fr;
  }

  /* Timeline */
  .timeline-item {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  /* Footer */
  .footer__inner {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }

  /* Lightbox */
  .lightbox__nav--prev {
    left: 0.5rem;
  }

  .lightbox__nav--next {
    right: 0.5rem;
  }

  .lightbox__close {
    top: 1rem;
    right: 1rem;
  }
}

/* --- Responsive: Small phones --- */
@media (max-width: 400px) {
  .hero__name {
    font-size: 2.2rem;
  }

  .hero__tagline {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
  }

  h2 {
    font-size: 1.8rem;
  }
}

/* --- Print Styles --- */
@media print {
  .header,
  .lightbox,
  .mobile-menu,
  .hamburger,
  .back-to-top {
    display: none !important;
  }

  body {
    font-size: 12pt;
    color: #000;
  }

  a {
    color: #000;
    text-decoration: underline;
  }
}

/* Prices are part of every object preview at every screen width. */
.object-card__price,
.project-card__price {
  margin-top: 0.85rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text);
}

.project-gallery--single {
  grid-template-columns: minmax(0, 1fr);
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 768px) {
  .project-meta__specs {
    min-width: 0;
  }

  .project-meta dl {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    column-gap: 1rem;
  }

  .project-meta dt {
    white-space: normal;
  }

  .project-meta dt,
  .project-meta dd {
    overflow-wrap: anywhere;
  }

  .footer__links {
    flex-wrap: wrap;
    justify-content: center;
  }
}
