/* CIPRI.pics homepage mock — dark editorial redesign */

:root {
  --bg: #0a0a0a;
  --bg-elevated: #111111;
  --bg-card: #141414;
  --text: #ffffff;
  --muted: #a3a3a3;
  --muted-dim: #6b6b6b;
  --accent: #ff6a00;
  --accent-hover: #ff8533;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --header-h: 64px;
  --space: clamp(1.25rem, 4vw, 2.5rem);
  --max: 1200px;
  --font-display: "Bebas Neue", "Impact", "Arial Narrow", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

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

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

/* —— Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

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

.logo {
  font-family: var(--font-display);
  font-size: 1.75rem;
  letter-spacing: 0.12em;
  line-height: 1;
  transition: opacity 0.2s var(--ease);
}

.logo:hover {
  opacity: 0.75;
}

.logo--sm {
  font-size: 1.35rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2rem);
}

.site-nav a {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s var(--ease);
}

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

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  padding: 10px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  border-radius: 6px;
}

.nav-toggle-bar {
  display: block;
  height: 1.5px;
  width: 100%;
  background: var(--text);
  transition: transform 0.25s var(--ease), opacity 0.2s;
}

.nav-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

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

.nav-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* —— Shared section chrome —— */
.section-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--space);
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  letter-spacing: 0.06em;
  margin: 0;
  line-height: 1;
}

.section-title--sm {
  font-size: clamp(1.35rem, 2.5vw, 1.65rem);
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.section-link {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--muted);
  white-space: nowrap;
  transition: color 0.2s var(--ease);
}

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

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}

.btn-primary {
  background: var(--accent);
  color: #0a0a0a;
}

.btn-primary:hover:not(:disabled) {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.btn-primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* —— Hero —— */
.hero {
  min-height: calc(88vh - var(--header-h));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(3rem, 10vh, 6rem) var(--space);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(255, 106, 0, 0.06), transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 80%, rgba(255, 255, 255, 0.03), transparent 50%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: 720px;
}

.hero-eyebrow {
  margin: 0 0 1rem;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-dim);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(5.5rem, 18vw, 9.5rem);
  letter-spacing: 0.08em;
  line-height: 0.9;
  margin: 0 0 1rem;
}

.hero-tagline {
  margin: 0 0 1.25rem;
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  font-weight: 400;
  color: var(--text);
  letter-spacing: 0.02em;
}

.hero-stats {
  margin: 0 0 2.25rem;
  font-size: clamp(0.85rem, 1.8vw, 1rem);
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--accent);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.5rem;
}

.stat-dot {
  opacity: 0.7;
}

/* —— Featured grid —— */
.featured {
  padding: clamp(3rem, 8vw, 5rem) 0;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.featured-card {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 2px;
  overflow: hidden;
  background:
    linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.75) 100%),
    var(--img) center / cover no-repeat,
    var(--bg-card);
  background-blend-mode: normal;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.featured-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.7) 100%);
  pointer-events: none;
}

.featured-card:hover {
  transform: scale(1.015);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.featured-card--wide {
  grid-column: 1 / -1;
  aspect-ratio: 21 / 9;
}

.featured-label {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  z-index: 1;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
  opacity: 0.9;
}

/* —— Browse pills —— */
.browse {
  padding: 0 0 clamp(2.5rem, 6vw, 3.5rem);
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
}

.pill {
  padding: 0.65rem 1.35rem;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.pill:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.04);
}

/* —— Press / Featured in —— */
.press {
  padding: clamp(2.5rem, 6vw, 4rem) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.press-grid {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  padding-inline-start: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.85rem 1.5rem;
  max-width: 960px;
}

.press-grid li {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.press-grid li::marker {
  content: "";
  display: none;
}

.press-name {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.6vw, 1.75rem);
  letter-spacing: 0.12em;
  color: var(--text);
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--border-strong);
  border-radius: 2px;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.press-grid li:hover .press-name {
  color: var(--accent);
  border-color: rgba(255, 106, 0, 0.45);
  background: rgba(255, 106, 0, 0.06);
}

/* legacy alias if any leftover markup */
.press-row {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1.25rem;
}

.press-divider {
  color: var(--muted-dim);
  font-size: 1.25rem;
}

/* —— About blurb —— */
.about-blurb {
  padding: clamp(3.5rem, 8vw, 5.5rem) 0;
}

.about-blurb-inner {
  max-width: 640px;
}

.about-blurb .section-title {
  margin-bottom: 1.25rem;
}

.about-text {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* —— Portfolio (full cipri.pics set) —— */
.portfolio {
  padding: clamp(3.5rem, 8vw, 5rem) 0;
  border-top: 1px solid var(--border);
}

.portfolio-count {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.portfolio-intro {
  margin: 0 0 1.75rem;
  max-width: 560px;
  color: var(--muted);
  font-size: 0.95rem;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.65rem;
}

.portfolio-item {
  margin: 0;
  border-radius: 2px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  aspect-ratio: 3 / 4;
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s var(--ease);
}

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

/* —— Stubs (About / Contact) —— */
.stub {
  padding: clamp(3.5rem, 8vw, 5rem) 0;
  border-top: 1px solid var(--border);
}

.stub--alt {
  background: var(--bg-elevated);
}

.stub-label {
  margin: 0 0 0.75rem;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.stub-text {
  margin: 1rem 0 0;
  max-width: 560px;
  color: var(--muted);
}

.stub-stats {
  justify-content: flex-start;
  margin: 1.5rem 0 0;
}

/* —— Contact —— */
.contact-card {
  margin-top: 2rem;
  max-width: 480px;
  padding: 1.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
}

.contact-email {
  margin: 0 0 1.75rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.contact-label {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-dim);
}

.contact-email a {
  font-size: 1.05rem;
  color: var(--text);
  transition: color 0.2s var(--ease);
}

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

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.field span {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.field input,
.field textarea {
  font: inherit;
  padding: 0.75rem 0.9rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: 2px;
  resize: vertical;
}

.field input:disabled,
.field textarea:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--muted-dim);
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(255, 106, 0, 0.55);
  box-shadow: 0 0 0 2px rgba(255, 106, 0, 0.18);
}


.mailto-hint {
  margin: 0.15rem 0 0;
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.01em;
}
.form-success {
  display: none;
  margin: 1.25rem 0 0;
  max-width: 560px;
  padding: 0.85rem 1rem;
  color: var(--text);
  background: rgba(255, 106, 0, 0.12);
  border: 1px solid rgba(255, 106, 0, 0.35);
  border-radius: 4px;
  font-size: 0.95rem;
}

.form-success:not([hidden]),
.form-success--visible {
  display: block;
}

/* —— Footer —— */
.site-footer {
  padding: 2.5rem 0 3rem;
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--space);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.5rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-email {
  font-size: 0.85rem;
  color: var(--muted);
  transition: color 0.2s var(--ease);
}

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

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

.footer-links a {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s var(--ease);
}

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

.footer-copy {
  margin: 0;
  text-align: right;
  font-size: 0.8rem;
  color: var(--muted-dim);
  letter-spacing: 0.06em;
}

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

  .featured-card--wide {
    grid-column: 1 / -1;
    aspect-ratio: 16 / 9;
  }

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

  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }

  .footer-brand {
    align-items: center;
  }

  .footer-copy {
    text-align: center;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 0 1rem;
    background: rgba(10, 10, 10, 0.97);
    border-bottom: 1px solid var(--border);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
  }

  .nav-open .site-nav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav a {
    padding: 0.9rem var(--space);
    font-size: 0.8rem;
  }

  .site-nav a:hover {
    background: rgba(255, 255, 255, 0.04);
  }

  .hero {
    min-height: calc(78vh - var(--header-h));
  }

  .hero-title {
    letter-spacing: 0.06em;
  }

  .press-divider {
    display: none;
  }

  .press-grid {
    gap: 0.65rem 0.85rem;
  }

  .press-name {
    font-size: clamp(1.1rem, 4.2vw, 1.35rem);
    letter-spacing: 0.1em;
    padding: 0.4rem 0.7rem;
  }

  .press-row {
    flex-direction: column;
    gap: 0.85rem;
  }
}

@media (max-width: 480px) {
  .featured-grid {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .featured-card--wide {
    aspect-ratio: 4 / 3;
  }

  .pills {
    justify-content: flex-start;
  }

  .press-grid {
    gap: 0.55rem 0.65rem;
  }
}
