/* ====================================================================
   SITE COLOURS AND CUSTOM LAYOUTS
   ====================================================================

   FONT GUIDE
   Inter: regular text and existing Inter headings.
   Ballet: every cursive script accent.
   Archivo Black: kept on its existing headings.
   Navigation: original fonts and styling are preserved.

   HOW TO EDIT
   Font name: font-family. Text size: font-size.
   Text weight: font-weight. Letter spacing: letter-spacing.
   Line spacing: line-height. Colours: color and background.
   Colours and sizes may also use named --variables.
   Responsive rules below override earlier rules at their screen size.
   Keep the order of the sections when making edits.

   EDITING MAP
   01. QUICK EDITS — shared colours, contact shadow and home media
       sizes
   02. GLOBAL — controls, focus outlines and missing-image
       placeholders
   03. HOME PROJECTS — poster, overlapping phone and work link
   04. HOME CONTACT — small form, brand stamp and logo overlay
   05. CONTACT PAGE — pink title shadow and form column
   06. CONTACT FORMS — privacy notice, checkbox and status text
   07. CONTACT FORMS — confirmation after successful submission
   08. ABOUT AND BAG — Ballet title and Inter supporting text
   09. PORTFOLIO — four featured projects and expanded gallery
   10. PROJECT EXTRAS — additional photos and optional deck shortcut
   11. PRIVACY PAGE — headings, text, lists and return link
   12. RESPONSIVE — tablet layouts, 900px and below
   13. RESPONSIVE — mobile layouts, 600px and below
   14. ACCESSIBILITY — reduced motion
   15. IMAGE FALLBACKS — placeholders and hidden media
   ==================================================================== */

/* ====================================================================
   01. QUICK EDITS — shared colours, contact shadow and home media sizes
   ==================================================================== */

:root {
  --room-pink: #f8c7dd;
  --room-ink: #000000;
  --room-soft: #f7f7f4;

  /* CONTACT: pink "project?" shadow */
  --contact-project-shadow: 1px 3px 5px rgba(138, 19, 68, 0.692);

  /* HOME: adjust the poster and phone dimensions here. */
  --home-poster-width: 76%;
  --home-phone-width: 34%;
  --home-phone-offset: -6%;

  /* PORTFOLIO: number of projects is configured in js/projekti.js. */
  --gallery-background: #f4edf1;
}

/* ====================================================================
   02. GLOBAL — controls, focus outlines and missing-image placeholders
   ==================================================================== */

button,
input,
textarea {
  font-family: "Inter", Arial, sans-serif;
}

button,
a,
summary {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 2px solid #000;
  outline-offset: 4px;
}

/* A missing image is shown as a tidy intentional placeholder. */
[data-optional-image].is-missing {
  display: none;
}

.person-link.is-missing,
.henna-about-portrait.is-missing {
  background: #f5eef2;
  border: 1px solid #e7dce3;
}

.person-link.is-missing::after,
.henna-about-portrait.is-missing::after {
  content: "ADD YOUR PHOTO";
  display: grid;
  place-items: center;
  min-height: 280px;
  color: #897880;
  font-size: 11px;
  letter-spacing: 0.12em;
}

.spill-item.is-missing {
  min-width: 55px;
  min-height: 36px;
  padding: 6px;
  background: #f7eff3;
  border: 1px dashed #cbaaba;
  border-radius: 5px;
  line-height: 1.2;
}

.spill-item.is-missing::after {
  content: attr(data-title);
  display: block;
  color: #68535e;
  font-size: clamp(7px, 1vw, 10px);
  text-align: center;
}

/* ====================================================================
   03. HOME PROJECTS — poster, overlapping phone and work link
   ==================================================================== */

.projects-section {
  max-width: 1080px;
  padding-block: 70px 90px;
  overflow: visible;
}

.projects-layout {
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(25px, 5vw, 80px);
  align-items: center;
}

.projects-left {
  align-self: center;
}

.project-work-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  margin-top: 32px;
  padding: 13px 22px;
  background: #000;
  border: 1px solid #000;
  border-radius: 999px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    background 0.2s ease;
}

.project-work-link:hover {
  transform: translateY(-3px);
  background: #343034;
}

.project-showcase {
  position: relative;
  width: min(100%, 540px);
  min-height: 320px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.project-poster {
  position: relative;
  width: var(--home-poster-width);
  aspect-ratio: 0.87;
  overflow: hidden;
  background: linear-gradient(
    145deg,
    #d9dfc3 0%,
    #f8badb 50%,
    #f7d9aa 100%
  );
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.045);
}

.project-poster > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.project-poster-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  padding: 16px;
  color: #fff;
  text-align: center;
  font-size: clamp(1.3rem, 3vw, 2.8rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.06em;
}

.project-phone {
  position: absolute;
  right: var(--home-phone-offset);
  top: 12%;
  z-index: 2;
  width: var(--home-phone-width);
  aspect-ratio: 9 / 18.5;
  padding: 7px;
  border: 2px solid #252525;
  border-radius: 26px;
  background: #0d0d0d;
  box-shadow: 2px 15px 24px rgba(0, 0, 0, 0.2);
  transform: rotate(1.5deg);
}

.project-phone::before {
  content: "";
  position: absolute;
  z-index: 3;
  top: 9px;
  left: 50%;
  transform: translateX(-50%);
  width: 30%;
  height: 12px;
  border-radius: 999px;
  background: #0d0d0d;
}

.project-phone-screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 19px;
  background: linear-gradient(150deg, #f6d7e6, #d8d0c8);
}

.project-phone-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.project-phone-video.is-ready {
  opacity: 1;
}

.project-phone-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  justify-content: center;
  padding: 8px;
  color: #74636e;
  text-align: center;
  font-size: clamp(9px, 1.2vw, 12px);
  font-weight: 800;
  line-height: 1.5;
}

.project-phone-placeholder small {
  font-size: 0.85em;
  font-weight: 400;
}

/* ====================================================================
   04. HOME CONTACT — small form, brand stamp and logo overlay
   ==================================================================== */

.contact-section {
  max-width: 1080px;
  padding-top: 110px;
  padding-bottom: 130px;
}

.contact-section .contact-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(35px, 7vw, 115px);
}

.contact-section .contact-form {
  width: 100%;
  max-width: 375px;
  margin: 0 auto;
  gap: 18px;
}

.contact-section .contact-form input,
.contact-section .contact-form textarea {
  font-size: 14px;
  padding: 9px 0;
}

.contact-section .contact-form textarea {
  min-height: 92px;
}

.contact-section .contact-form label {
  font-size: 11px;
}

.home-brand-stamp {
  display: block;
  position: relative;
  width: clamp(74px, 9vw, 116px);
  height: auto;
  margin: 18px 0 0 16%;
}

/* Never use the old absolute hover coordinates. */
.logo-overlay {
  display: none !important;
}

/* ====================================================================
   05. CONTACT PAGE — pink title shadow and form column
   ==================================================================== */

.contact-main-title .mark {
  display: inline-block;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  font-style: normal;
  letter-spacing: inherit;

  color: var(--room-pink);
  text-shadow: var(--contact-project-shadow);
}

.contact-form-column {
  width: 100%;
  min-width: 0;
  display: grid;
  gap: 15px;
  align-content: center;
}

.contact-form-column .contact-page-form {
  max-width: 620px;
}

.contact-form-column .note_text {
  display: block;
  margin-top: 7px;
  font-size: 11px;
  line-height: 1.5;
}

/* ====================================================================
   06. CONTACT FORMS — privacy notice, checkbox and status text
   ==================================================================== */

.form-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-privacy-details {
  font-size: 11px;
  font-weight: 400;
  line-height: 1.6;
  color: #444;
}

.form-privacy-details summary {
  width: fit-content;
  padding: 3px 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.form-privacy-details p {
  max-width: 50ch;
  margin: 10px 0 0;
}

/* Override the normal stacked label and giant full-width input rules. */
.contact-form label.form-privacy-check,
.contact-page-form label.form-privacy-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.5;
}

.contact-form .form-privacy-check input[type="checkbox"],
.contact-page-form .form-privacy-check input[type="checkbox"] {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  margin: 0;
  padding: 0;
  border: 1px solid #000;
  accent-color: #000;
}

.form-privacy-check a {
  text-underline-offset: 3px;
}

.form-status {
  min-height: 17px;
  color: #6e394d;
  font-size: 11px;
  line-height: 1.5;
}

/* ====================================================================
   07. CONTACT FORMS — confirmation after successful submission
   ==================================================================== */

.contact-form.is-sent,
.contact-page-form.is-sent {
  display: grid;
  align-content: center;
  min-height: 210px;
}

.contact-form.is-sent > :not(.form-status),
.contact-page-form.is-sent > :not(.form-status) {
  display: none;
}

.form-status[data-state="pending"] {
  color: #555;
}

.form-status[data-state="error"] {
  color: #953c5c;
}

.form-status[data-state="success"] {
  max-width: 35ch;
  margin: 0;
  color: #111;
  font-family: "Inter", Arial, sans-serif;
  font-size: clamp(18px, 2.5vw, 27px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.035em;
}

.form-status:focus {
  outline: none;
}

/* ====================================================================
   08. ABOUT AND BAG — Ballet title and Inter supporting text
   ==================================================================== */

.bag-title {
  font-family: "Ballet", cursive;
  font-size: clamp(4.7rem, 7.5vw, 7.2rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0.85;
}

.about-bottom-text p {
  font-family: "Inter", sans-serif;
  color: #303030;
  font-size: 0.7rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0;
}

/* ====================================================================
   09. PORTFOLIO — four featured projects and expanded gallery
   ==================================================================== */

.projekti-more-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 40px;
  gap: 12px;
}

.projekti-more-actions button {
  cursor: pointer;
}

.projekti-more-actions [hidden] {
  display: none;
}

.projekti-work-section.is-expanded .projekti-section-heading h2 {
  color: var(--projekti-ink);
  font-family: "Inter", sans-serif;
  font-size: clamp(3.4rem, 8vw, 7rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.08em;
}

.projekti-work-section.is-expanded .projekti-section-heading sup {
  vertical-align: top;
  margin-top: 9px;
  font-size: clamp(0.7rem, 1.2vw, 1rem);
  letter-spacing: 0;
}

.projekti-work-section.is-expanded .projekti-grid {
  row-gap: 34px;
}

.projekti-skill-heading {
  display: block;
}

/* ====================================================================
   10. PROJECT EXTRAS — additional photos and optional deck shortcut
   ==================================================================== */

.projekti-extras {
  margin-top: 42px;
  padding-top: 28px;
  border-top: 1px solid var(--projekti-line);
}

.projekti-extras.has-deck {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(220px, 0.8fr);
  align-items: start;
  gap: 30px;
}

.projekti-extras-heading {
  margin-bottom: 20px;
}

.projekti-extras-heading .projekti-eyebrow {
  margin-bottom: 7px;
  color: var(--projekti-muted);
}

.projekti-extras-heading h3,
.projekti-deck-shortcut h3 {
  margin: 0;
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  font-weight: 750;
  line-height: 1.15;
  letter-spacing: -0.045em;
}

.projekti-gallery {
  min-width: 0;
}

.projekti-deck-shortcut {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 14px;
  min-height: 250px;
  padding: 25px;
  background: var(--projekti-pale-pink);
}

.projekti-deck-shortcut .projekti-eyebrow {
  margin: 0;
}

.projekti-deck-shortcut p:not(.projekti-eyebrow) {
  max-width: 28ch;
  font-size: 0.77rem;
  line-height: 1.6;
}

.projekti-deck-shortcut button {
  margin-top: auto;
  cursor: pointer;
}

.projekti-gallery-arrow:disabled {
  cursor: default;
  opacity: 0.4;
}

.projekti-gallery-stage {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 46px;
  align-items: center;
  gap: 12px;
}

.projekti-gallery-frame {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--gallery-background);
  touch-action: pan-y;
}

.projekti-gallery-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.projekti-gallery-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  color: #947986;
  font-size: 12px;
  text-align: center;
}

.projekti-gallery-arrow {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--projekti-ink);
  border-radius: 50%;
  background: transparent;
  color: var(--projekti-ink);
  cursor: pointer;
}

.projekti-gallery-arrow:hover {
  background: var(--projekti-pink);
}

.projekti-gallery-meta {
  display: flex;
  justify-content: space-between;
  gap: 25px;
  margin: 14px 58px 0;
  color: var(--projekti-muted);
  font-size: 0.72rem;
  line-height: 1.5;
}

.projekti-gallery-meta p {
  margin: 0;
}

.projekti-gallery-meta span {
  flex: 0 0 auto;
}

.projekti-gallery-help {
  margin: 10px 58px 0;
  color: var(--projekti-muted);
  font-size: 0.62rem;
}

/* ====================================================================
   11. PRIVACY PAGE — headings, text, lists and return link
   ==================================================================== */

.privacy-page {
  width: min(100% - 40px, 720px);
  margin: 0 auto;
  padding: clamp(45px, 8vw, 90px) 0 110px;
}

.privacy-page h1 {
  margin: 0 0 18px;
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.065em;
}

.privacy-page h2 {
  margin: 38px 0 9px;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.privacy-page p,
.privacy-page li {
  color: #303030;
  font-size: 0.9rem;
  line-height: 1.7;
}

.privacy-page ul {
  padding-left: 20px;
}

.privacy-page .privacy-updated {
  margin-bottom: 32px;
  color: #666;
  font-size: 0.72rem;
}

.privacy-back {
  display: inline-block;
  margin-top: 44px;
  font-size: 0.75rem;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ====================================================================
   12. RESPONSIVE — tablet layouts, 900px and below
   ==================================================================== */

@media (max-width: 900px) {
  .projects-layout,
  .contact-section .contact-grid {
    grid-template-columns: 1fr;
  }

  .projects-left {
    text-align: center;
  }

  .project-subtext2 {
    margin-inline: auto;
  }

  .projects-section {
    padding-block: 55px 80px;
  }

  .project-showcase {
    width: min(82%, 440px);
  }

  .contact-section .contact-form {
    max-width: 440px;
    margin-inline: auto;
  }

  .home-brand-stamp {
    margin-inline: auto;
  }
}

/* ====================================================================
   13. RESPONSIVE — mobile layouts, 600px and below
   ==================================================================== */

@media (max-width: 600px) {
  .projects-section {
    padding-top: 45px;
    padding-bottom: 55px;
    overflow: hidden;
  }

  .projects-layout {
    gap: 32px;
  }

  .project-showcase {
    width: min(85%, 350px);
    min-height: 270px;
  }

  .project-poster {
    width: 79%;
  }

  .project-phone {
    width: 34%;
    right: -3%;
    top: 11%;
    padding: 5px;
    border-radius: 20px;
  }

  .project-phone-screen {
    border-radius: 14px;
  }

  .project-phone::before {
    top: 6px;
    height: 8px;
  }

  .contact-section {
    padding-block: 75px 95px;
  }

  .contact-section .contact-grid {
    gap: 22px;
  }

  .contact-section .contact-form {
    max-width: min(100%, 360px);
  }

  .contact-hero {
    padding-top: 40px;
    gap: 44px;
  }

  .contact-main-title {
    font-size: clamp(3.8rem, 14vw, 5.6rem);
  }

  .contact-form-column .contact-page-form button {
    min-height: 48px;
  }

  .bag-title {
    font-size: clamp(4.7rem, 24vw, 6.4rem);
    margin-bottom: 25px;
  }

  .about-bottom-text p {
    font-size: 0.88rem;
    font-weight: 500;
    line-height: 1.65;
    letter-spacing: 0;
  }

  .projekti-more-actions {
    margin-top: 28px;
  }

  /* Extra photos and the optional deck shortcut stack on mobile. */
  .projekti-extras {
    margin-top: 32px;
    padding-top: 25px;
  }

  .projekti-extras.has-deck {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }

  .projekti-deck-shortcut {
    min-height: 0;
    padding: 22px;
  }

  .projekti-gallery-stage {
    position: relative;
    display: block;
    padding-bottom: 56px;
  }

  .projekti-gallery-frame {
    aspect-ratio: 4 / 5;
  }

  .projekti-gallery-arrow {
    position: absolute;
    bottom: 0;
    z-index: 1;
  }

  #projekti-gallery-previous {
    left: 0;
  }

  #projekti-gallery-next {
    right: 0;
  }

  .projekti-gallery-meta,
  .projekti-gallery-help {
    margin-inline: 0;
  }
}

/* ====================================================================
   14. ACCESSIBILITY — reduced motion
   ==================================================================== */

@media (prefers-reduced-motion: reduce) {
  .project-work-link,
  .project-phone-video {
    transition: none;
  }
}

/* ====================================================================
   15. IMAGE FALLBACKS — placeholders and hidden media
   ==================================================================== */

.projekti-image-placeholder {
  display: none;
}

.projekti-image.is-placeholder {
  display: grid;
  place-items: center;
  min-height: 100%;
}

.projekti-image.is-placeholder .projekti-image-placeholder {
  display: block;
  padding: 24px;
  color: #947b87;
  text-align: center;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.6;
}

.projekti-image img[hidden],
.spill-item img[hidden],
.projekti-gallery-frame img[hidden],
.projekti-deck-image-frame img[hidden] {
  display: none !important;
}

.projekti-deck-image-frame {
  position: relative;
}
