/* Barkskin — mobile-first, desktop-polished studio homepage */

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

:root {
  --bg: #0a0608;
  --bg-panel: #12080c;
  --crimson: #7a1f2e;
  --crimson-bright: #a8283a;
  --navy: #0d1520;
  --pink-fog: #e8c4c8;
  --pink-soft: #d4a8b0;
  --text: #f5e8ea;
  --text-muted: #b89a9e;
  --input-bg: #1a0e14;
  --input-border: #3d1f28;
  --line: rgba(61, 31, 40, 0.9);
  --radius: 8px;
  --radius-lg: 16px;
  --wrap: 1180px;
  --header-h: 4rem;
  --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  min-height: 100vh;
  font-family: var(--font);
  line-height: 1.55;
  color: var(--text);
  background:
    radial-gradient(ellipse 100% 60% at 50% -10%, rgba(122, 31, 46, 0.35) 0%, transparent 55%),
    linear-gradient(180deg, #16090e 0%, var(--bg) 40%, #08050a 100%);
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--crimson);
  color: var(--text);
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* —— Header —— */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  border-bottom: 1px solid var(--line);
  background: rgba(10, 6, 8, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  text-decoration: none;
  line-height: 1.15;
  min-width: 0;
}

.brand__name {
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pink-fog);
}

.brand__role {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pink-soft);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem 1rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav a {
  text-decoration: none;
  color: var(--pink-soft);
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--pink-fog);
}

/* —— Hero (mobile stacked) —— */

.hero {
  position: relative;
  padding: 1.25rem 0 2.5rem;
  isolation: isolate;
}

.hero__visual {
  position: relative;
  width: min(100% - 2.5rem, 380px);
  margin: 0 auto 1.5rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--navy);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(168, 40, 58, 0.2);
}

.hero__visual-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 12%;
}

.hero__visual-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 60%, rgba(10, 6, 8, 0.45) 100%);
  box-shadow: inset 0 0 0 1px rgba(232, 196, 200, 0.08);
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
}

.hero__copy {
  width: 100%;
  max-width: 36rem;
}

.eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pink-soft);
  margin-bottom: 0.65rem;
}

.hero__title {
  font-family: "Cinzel", "Times New Roman", Times, serif;
  font-size: clamp(2.5rem, 10vw, 3.5rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.08;
  color: var(--pink-fog);
  text-shadow:
    0 0 1px rgba(180, 210, 230, 0.35),
    0 0 28px rgba(168, 40, 58, 0.35);
  margin-bottom: 0.65rem;
}

.hero__tagline {
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 1.1rem;
}

.hero__promise {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 0.55rem;
}

.hero__promise li {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--pink-soft);
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(18, 8, 12, 0.65);
}

/* —— Newsletter —— */

.newsletter {
  width: 100%;
  max-width: 440px;
  padding: 1.35rem 1.2rem 1.15rem;
  border-radius: var(--radius-lg);
  background: rgba(18, 8, 12, 0.94);
  border: 1px solid rgba(168, 40, 58, 0.4);
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.4),
    0 0 30px rgba(168, 40, 58, 0.18);
  text-align: left;
}

.newsletter__hook {
  text-align: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--pink-fog);
  margin-bottom: 1rem;
  text-shadow: 0 0 16px rgba(168, 40, 58, 0.3);
}

.signup__row {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Always stack: email field, then button underneath */
.signup__row .btn {
  width: 100%;
}

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

.field label {
  font-size: 0.8rem;
  font-weight: 500;
}

.field input[type="email"] {
  width: 100%;
  padding: 0.85rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text);
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: var(--radius);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.field input::placeholder {
  color: #6e4a52;
}

.field input:focus {
  border-color: var(--crimson-bright);
  box-shadow: 0 0 0 2px rgba(168, 40, 58, 0.28);
}

.hp {
  position: absolute;
  left: -5000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.9rem 1.2rem;
  font-size: 0.9rem;
  font-weight: 700;
  font-family: inherit;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text);
  background: var(--crimson);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(122, 31, 46, 0.4);
  transition: background-color 0.15s ease, transform 0.1s ease;
}

.btn:hover {
  background: var(--crimson-bright);
}

.btn:active {
  transform: scale(0.98);
}

.btn:focus-visible {
  outline: 2px solid var(--pink-fog);
  outline-offset: 3px;
}

.btn--small {
  width: auto;
  align-self: flex-start;
  margin-top: 0.85rem;
  padding: 0.6rem 0.95rem;
  font-size: 0.78rem;
}

.btn--cta {
  width: auto;
  min-width: 11rem;
}

.newsletter__note {
  margin-top: 0.7rem;
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* —— Sections —— */

.section {
  padding: 2.75rem 0 1rem;
}

.section__head {
  text-align: center;
  margin-bottom: 1.75rem;
}

.section__title {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pink-fog);
  margin-bottom: 0.45rem;
}

.section__lede {
  color: var(--pink-soft);
  font-size: 1rem;
  max-width: 34em;
  margin: 0 auto;
}

/* —— Social icons —— */

.social-icons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

.social-icons--center {
  justify-content: center;
  margin-top: 1rem;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  color: var(--pink-fog);
  background: rgba(18, 8, 12, 0.75);
  border: 1px solid var(--line);
  text-decoration: none;
  transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.social-icon svg {
  width: 1.15rem;
  height: 1.15rem;
  display: block;
}

.social-icon:hover,
.social-icon:focus-visible {
  color: var(--text);
  background: rgba(122, 31, 46, 0.85);
  border-color: rgba(168, 40, 58, 0.55);
  transform: translateY(-1px);
}

.social-icon:focus-visible {
  outline: 2px solid var(--pink-fog);
  outline-offset: 3px;
}

/* —— Project grid (comic-shop style: vertical 2:3 covers) —— */

.projects {
  background: rgba(8, 5, 10, 0.55);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-bottom: 3.5rem;
}

/*
  Fixed cover columns so cards never stretch into wide “landscape” slabs.
  Each cover is strictly 2:3 (width : height).
*/
.project-grid {
  display: grid;
  gap: 1.75rem 1.25rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  justify-content: center;
  max-width: 36rem;
  margin: 0 auto;
}

.project-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 16rem;
  margin: 0 auto;
  background: transparent;
  border: none;
  min-height: 0;
}

.project-card:hover .project-card__frame {
  border-color: rgba(168, 40, 58, 0.55);
  box-shadow:
    0 14px 36px rgba(0, 0, 0, 0.45),
    0 0 28px rgba(168, 40, 58, 0.18);
  transform: translateY(-3px);
}

/* The 2:3 cover window */
.project-card__cover {
  position: relative;
  display: block;
  width: 100%;
  text-decoration: none;
  color: inherit;
}

.project-card__frame {
  position: relative;
  display: block;
  width: 100%;
  /* 2:3 portrait — height = 150% of width */
  aspect-ratio: 2 / 3;
  height: 0;
  padding-bottom: 150%; /* fallback if aspect-ratio ignored */
  overflow: hidden;
  border-radius: 6px;
  background: var(--navy);
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

@supports (aspect-ratio: 2 / 3) {
  .project-card__frame {
    height: auto;
    padding-bottom: 0;
  }
}

.project-card__frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
}

.project-card__cover--product .project-card__frame {
  background: var(--navy);
}

.project-card__cover--product .project-card__frame img {
  object-fit: cover;
  object-position: center 20%;
  padding: 0;
}

.project-card__cover--placeholder .project-card__frame {
  background: linear-gradient(160deg, #2a0f16 0%, #0d1520 100%);
}

.project-card__placeholder-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(232, 196, 200, 0.35);
}

.project-card__badge {
  position: absolute;
  top: 0.55rem;
  left: 0.55rem;
  z-index: 2;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  background: rgba(10, 6, 8, 0.85);
  color: var(--pink-fog);
  border: 1px solid rgba(232, 196, 200, 0.2);
  pointer-events: none;
}

.project-card__badge--live {
  color: var(--text);
  background: rgba(122, 31, 46, 0.92);
  border-color: rgba(168, 40, 58, 0.55);
}

.project-card__body {
  padding: 0.85rem 0.15rem 0;
  display: flex;
  flex-direction: column;
  text-align: left;
}

.project-card__title {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 0.3rem;
  color: var(--text);
}

.project-card__text {
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--text-muted);
}

.text-link {
  display: inline-block;
  margin-top: 0.55rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--pink-soft);
  text-decoration: none;
}

.text-link:hover {
  color: var(--pink-fog);
  text-decoration: underline;
}

.project-card .btn--small {
  margin-top: 0.65rem;
}

/* —— About —— */

.about__panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.25rem;
  padding: 2rem 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: rgba(18, 8, 12, 0.7);
}

.about__text {
  max-width: 36em;
  margin: 0.6rem auto 0;
  color: var(--pink-soft);
}

.about__panel .social-icons {
  justify-content: center;
}

/* —— CTA —— */

.cta-band {
  padding: 1rem 0 3rem;
}

.cta-band__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.25rem;
  padding: 2rem 1.5rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(115deg, rgba(122, 31, 46, 0.5), rgba(13, 21, 32, 0.85));
  border: 1px solid rgba(168, 40, 58, 0.35);
}

.cta-band__title {
  font-size: clamp(1.4rem, 4vw, 1.85rem);
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--pink-fog);
  margin-bottom: 0.35rem;
}

.cta-band__text {
  color: var(--text);
  max-width: 28em;
}

/* —— Footer —— */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0 2.5rem;
  background: rgba(8, 5, 10, 0.9);
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
}

.site-footer__brand {
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--pink-fog);
}

.site-footer__role {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pink-soft);
  margin-top: 0.15rem;
}

.site-footer__meta p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.site-footer__meta p + p {
  margin-top: 0.15rem;
}

.site-footer .social-icons {
  justify-content: center;
}

/* =========================================================
   TABLET
   ========================================================= */

@media (min-width: 700px) {
  .wrap {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .project-grid {
    grid-template-columns: repeat(3, minmax(0, 11.5rem));
    max-width: none;
    width: max-content;
    max-width: 100%;
    gap: 1.75rem 1.5rem;
  }

  .project-card {
    max-width: 11.5rem;
  }

  .cta-band__inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
    padding: 2rem 2.25rem;
  }

  .cta-band__text {
    margin: 0;
  }
}

/* =========================================================
   DESKTOP — cinematic studio layout (this is the big fix)
   ========================================================= */

@media (min-width: 960px) {
  :root {
    --header-h: 4.25rem;
  }

  .wrap {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  }

  /* Full-viewport cinematic hero */
  .hero {
    min-height: calc(100vh - var(--header-h));
    min-height: calc(100dvh - var(--header-h));
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    align-items: stretch;
    padding: 0;
    overflow: hidden;
    background: var(--bg);
  }

  /* Art becomes a full-height panel on the RIGHT */
  .hero__visual {
    order: 2;
    width: 100%;
    margin: 0;
    border-radius: 0;
    aspect-ratio: auto;
    max-height: none;
    height: 100%;
    min-height: calc(100vh - var(--header-h));
    min-height: calc(100dvh - var(--header-h));
    box-shadow: none;
  }

  .hero__visual-img {
    object-fit: cover;
    object-position: center 15%;
  }

  .hero__visual-shade {
    background:
      linear-gradient(90deg, rgba(10, 6, 8, 0.92) 0%, rgba(10, 6, 8, 0.35) 28%, transparent 55%),
      linear-gradient(180deg, rgba(10, 6, 8, 0.15) 0%, transparent 30%, rgba(10, 6, 8, 0.4) 100%);
    box-shadow: none;
  }

  /* Copy + form on the LEFT, vertically centered */
  .hero__content {
    order: 1;
    /* kill .wrap constraints so the column fills the grid cell */
    max-width: none !important;
    width: 100%;
    height: 100%;
    min-height: calc(100vh - var(--header-h));
    min-height: calc(100dvh - var(--header-h));
    margin: 0 !important;
    padding: 3rem 2.5rem 3rem 3.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
    gap: 1.75rem;
    background:
      radial-gradient(ellipse 90% 70% at 0% 40%, rgba(122, 31, 46, 0.28) 0%, transparent 60%),
      linear-gradient(90deg, #0a0608 0%, #0a0608 70%, rgba(10, 6, 8, 0.85) 100%);
  }

  .hero__copy {
    max-width: 28rem;
  }

  .eyebrow {
    font-size: 0.78rem;
    letter-spacing: 0.16em;
  }

  .hero__title {
    font-family: "Cinzel", "Times New Roman", Times, serif;
    font-size: clamp(3.25rem, 5.5vw, 4.75rem);
    letter-spacing: 0.12em;
    margin-bottom: 0.85rem;
  }

  .hero__tagline {
    font-size: 1.25rem;
    line-height: 1.45;
    margin-bottom: 1.25rem;
  }

  .hero__promise {
    justify-content: flex-start;
    gap: 0.5rem;
  }

  .hero__promise li {
    font-size: 0.8rem;
    padding: 0.4rem 0.85rem;
  }

  /* Newsletter: wider, horizontal email + button */
  .newsletter {
    max-width: 28rem;
    width: 100%;
    padding: 1.5rem 1.4rem 1.25rem;
  }

  .newsletter__hook {
    font-size: 1.2rem;
    text-align: left;
    margin-bottom: 1.1rem;
  }

  .signup__row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .signup__row .btn {
    width: 100%;
  }

  .newsletter__note {
    text-align: left;
  }

  /* Projects: balanced 2×2 on desktop */
  .projects {
    padding: 4.5rem 0;
  }

  .section__head {
    margin-bottom: 2.25rem;
  }

  .section__title {
    font-size: 1.15rem;
  }

  .project-grid {
    grid-template-columns: repeat(4, minmax(0, 12.5rem));
    gap: 2rem 1.75rem;
  }

  .project-card {
    max-width: 12.5rem;
  }

  .about {
    padding: 4rem 0 2rem;
  }

  .about__panel {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
    padding: 2.25rem 2.5rem;
  }

  .about__text {
    margin-left: 0;
  }

  .cta-band {
    padding: 1rem 0 4rem;
  }

  .cta-band__inner {
    padding: 2.25rem 2.75rem;
  }

  .site-footer__inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
    gap: 1.5rem;
  }

  .site-footer__meta {
    flex: 1;
  }
}

/* Large desktop: give art more presence, keep type readable */
@media (min-width: 1200px) {
  .hero {
    grid-template-columns: minmax(420px, 0.92fr) minmax(0, 1.15fr);
  }

  .hero__content {
    padding-left: clamp(3rem, 6vw, 5.5rem);
    padding-right: 3rem;
  }

  .hero__copy,
  .newsletter {
    max-width: 30rem;
  }

  .project-grid {
    grid-template-columns: repeat(4, minmax(0, 13.5rem));
    gap: 2.25rem 2rem;
  }

  .project-card {
    max-width: 13.5rem;
  }
}

/* Ultra-wide: cap hero content width so it doesn't stretch forever */
@media (min-width: 1440px) {
  .hero__content {
    padding-left: max(3.5rem, calc((100vw - var(--wrap)) / 2));
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .project-card,
  .btn {
    transition: none;
  }

  .project-card:hover {
    transform: none;
  }
}
