/* ============================================================
   Space by Tasmin — styles
   Design tokens pulled from Figma "New Design - 1" (node 192-294)
   ============================================================ */

/* Logo display font. Drop the licensed file into /fonts and name it
   lamoric-rowen.woff2 (preferred) or lamoric-rowen.otf / .ttf.
   Until then it falls back to Playfair Display automatically. */
@font-face {
  font-family: "Lamoric Rowen";
  src: url("fonts/lamoric-rowen.woff2") format("woff2"),
       url("fonts/lamoric-rowen.otf") format("opentype"),
       url("fonts/lamoric-rowen.ttf") format("truetype");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg-page: #ece3c6;        /* muted warm tan/beige page background */
  --logo: #45090e;           /* deep maroon logo */
  --ink: #0d0d0d;            /* main content text */
  --text-primary: #2a211d;   /* card text */
  --text-secondary: #73745c; /* muted / secondary */
  --accent-brown: #7a4141;   /* bullet squares */
  --card: #fefcf6;           /* card / photo border cream */
  --card-border: #cfc5b8;
  --teal: #5c8786;           /* CTA button */
  --gold: #de9e36;           /* featured photo border */

  --sp-8: 8px;
  --sp-16: 16px;
  --sp-24: 24px;
  --sp-32: 32px;

  --photo-ratio: 285 / 481;  /* portrait photo proportion from the design */

  --font-logo: "Lamoric Rowen", "Playfair Display", Georgia, serif;
  --font-head: "Oswald", sans-serif;
  --font-body: "Kosugi Maru", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 0;       /* full-height sections center themselves on anchor */
  overscroll-behavior-y: none; /* no pull-to-refresh or overscroll bounce at the top */
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg-page);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* ============================================================
   HEADER — logo (left) + horizontal nav (right)
   ============================================================ */
.logo {
  position: fixed;
  top: 26px;
  left: 24px;
  z-index: 60;
  width: 146px;
  height: 60px;
  /* fill is 5% darker than the page, so the difference blend lands on a
     near-black dark grey (not pure black) over the background */
  background-color: color-mix(in srgb, var(--bg-page), #000 5%);
  -webkit-mask: url("spacebytasminlogo.svg") no-repeat left center / contain;
  mask: url("spacebytasminlogo.svg") no-repeat left center / contain;
  mix-blend-mode: difference;
}
.logo img { display: none; }
.topnav {
  position: fixed;
  top: 30px;
  right: 24px;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: var(--sp-24);
  /* same trick as the logo: amber text + difference = black over amber, light over film */
  mix-blend-mode: difference;
}
.nav-link {
  font-family: var(--font-body);
  font-size: 20px;
  color: var(--bg-page);
  text-decoration: none;
  transition: opacity 0.2s ease;
}
.nav-link:hover { opacity: 0.6; }
.nav-link.active { text-decoration: underline; text-underline-offset: 6px; }
.nav-meta { display: none; }   /* email + instagram: mobile drawer only */

/* hamburger (mobile only) */
.hamburger { display: none; }
.nav-overlay { display: none; }

/* ============================================================
   LAYOUT — left photo rail + right content column
   ============================================================ */
.layout {
  display: grid;
  grid-template-columns: 380px minmax(0, 660px);
  justify-content: center;
  gap: 72px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
}

/* ---- Left film reel: two endless sepia strips ---- */
.reel {
  position: fixed;                     /* pinned to the viewport at every scroll position */
  top: -10vh;                          /* extend above/below so the 3° tilt never gaps */
  left: max(48px, calc((100vw - 1200px) / 2 + 48px));  /* aligns with the layout's left column */
  width: 380px;
  height: 120vh;                       /* taller than the screen; bleeds off top & bottom */
  display: flex;
  gap: 0;                              /* strips flush against each other */
  box-shadow: 0 12px 30px rgba(69, 9, 14, 0.14);
  z-index: 1;
  transform: rotate(3deg);             /* slight film tilt */
  transform-origin: center center;
  animation: filmFlicker 2s steps(1, end) infinite;  /* subtle projector flicker */
}

/* slight, slightly-irregular brightness flicker like old film projection */
@keyframes filmFlicker {
  0%   { filter: brightness(1); }
  9%   { filter: brightness(0.991); }
  17%  { filter: brightness(1.006); }
  26%  { filter: brightness(0.996); }
  38%  { filter: brightness(1.003); }
  50%  { filter: brightness(0.988); }
  61%  { filter: brightness(1.005); }
  72%  { filter: brightness(0.997); }
  84%  { filter: brightness(1.006); }
  92%  { filter: brightness(0.993); }
  100% { filter: brightness(1); }
}
@media (prefers-reduced-motion: reduce) {
  .reel { animation: none; }
}
.reel-strip {
  position: relative;
  flex: 1;
  overflow: hidden;
  border-radius: 0;
  background: #6b5a3c;                 /* film base (sepia) */
  /* on load, the film "develops" from an amber negative to the positive image */
  animation: filmDevelop 3.4s ease-out 0.15s both;
}
@keyframes filmDevelop {
  0%, 8% { filter: invert(1) sepia(1) saturate(1.4) brightness(0.92); }      /* amber negative, brief */
  40%    { filter: invert(0.62) sepia(0.6) saturate(1.25) brightness(0.95); } /* developing */
  70%    { filter: invert(0.28) sepia(0.28) saturate(1.1) brightness(0.98); } /* nearly there */
  100%   { filter: invert(0) sepia(0) saturate(1) brightness(1); }            /* developed (normal) */
}
@media (prefers-reduced-motion: reduce) {
  .reel-strip { animation: none; }
}
/* soft dark fade at the top & bottom edges of each strip */
.reel-strip::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  background: linear-gradient(to bottom,
    rgba(28, 20, 10, 0.5) 0%,
    rgba(28, 20, 10, 0) 14%);
}
.reel-track {
  display: flex;
  flex-direction: column;
  background-color: #6b5a3c;
  /* cream sprocket perforations down both edges */
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='30'%3E%3Crect x='3' y='6' width='10' height='15' rx='3' fill='%23ece3c6'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='30'%3E%3Crect x='3' y='6' width='10' height='15' rx='3' fill='%23ece3c6'/%3E%3C/svg%3E");
  background-position: left 4px top, right 4px top;
  background-repeat: repeat-y, repeat-y;
  will-change: transform;
}
.film-frame {
  position: relative;
  padding: 0 24px;                     /* no gap between photos; room for sprockets */
}
.frame-label {
  position: absolute;
  left: 5px;
  top: 12px;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 8px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(239, 230, 207, 0.75);
  pointer-events: none;
}
/* reel photo frames override the generic gallery-item look */
.reel .gallery-item.frame-photo {
  width: 100%;
  aspect-ratio: 5 / 8;                  /* ~20% taller frames = bigger photos */
  border: 1px solid rgba(0, 0, 0, 0.55);
  border-radius: 1px;
  background: #1a140a;
  box-shadow: none;
}

/* generic framed photo (journal + featured portfolio) */
.gallery-item {
  display: block;
  width: 100%;
  aspect-ratio: var(--photo-ratio);
  padding: 0;
  border: 2px solid var(--card);
  background: var(--card);
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(69, 9, 14, 0.08);
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.04); }

/* endless loop: translate by exactly one duplicated set (= 50% of the track) */
@keyframes reelUp {
  from { transform: translateY(0); }
  to   { transform: translateY(-50%); }
}
@keyframes reelDown {
  from { transform: translateY(-50%); }
  to   { transform: translateY(0); }
}
.reel-strip--up .reel-track   { animation: reelUp 85s linear infinite; }
.reel-strip--down .reel-track { animation: reelDown 110s linear infinite; }
.reel-strip:hover .reel-track { animation-play-state: paused; }

@media (prefers-reduced-motion: reduce) {
  .reel-track { animation: none; }
  .reel-strip { overflow-y: auto; }
}

/* ---- Right content column ---- */
.content {
  grid-column: 2;           /* stay in the right column (reel is now fixed/out of flow) */
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0 0 80px;        /* each block is a full page; footer gets a little room */
}
.block {
  display: flex;
  flex-direction: column;
  justify-content: center;  /* centre the content vertically — museum negative space */
  min-height: 100vh;        /* each section takes a whole screen */
  scroll-margin-top: 0;
}

/* section labels — hidden on desktop (design has none), shown on mobile */
.block-heading {
  display: none;
  font-family: var(--font-head);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: var(--sp-24);
}

/* ---- Teal CTA button (shared) ---- */
/* mandl-style pill: bordered tag with a solid fill that wipes across on hover */
.btn-teal {
  position: relative;
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--logo);
  background: transparent;
  border: 1.5px solid var(--logo);
  border-radius: 0;
  padding: 13px 24px;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
}
.btn-teal .btn-fill {
  position: absolute;
  inset: -1.5px;
  padding: inherit;
  border: 1.5px solid var(--logo);
  background: var(--logo);
  color: var(--card);
  white-space: nowrap;
  pointer-events: none;
  clip-path: inset(0 100% 0 0);          /* hidden until revealed */
  transition: clip-path 0.5s cubic-bezier(0.65, 0, 0.35, 1);
}
.btn-teal.is-filled .btn-fill { clip-path: inset(0 0 0 0); }          /* wipes in on reveal, stays filled */
.btn-teal.is-filled:hover .btn-fill,
.btn-teal.is-filled:focus-visible .btn-fill { clip-path: inset(0 100% 0 0); }  /* hover returns it to outline */

/* ============================================================
   HERO
   ============================================================ */
.block-hero {
  align-items: flex-end;
  text-align: right;
  gap: var(--sp-24);
}
.hero-cta {
  font-family: var(--font-body);
  font-size: 36px;
  color: var(--ink);
  text-decoration: none;
  transition: opacity 0.2s ease;
}
.hero-cta:hover { opacity: 0.65; }
.hero-tagline {
  font-size: 16px;
  color: var(--ink);
  max-width: 370px;
}

/* ============================================================
   ABOUT
   ============================================================ */
.block-about {
  align-items: center;
  text-align: center;
  /* gaps shrink on short screens so the whole bio fits one screen */
  gap: clamp(10px, 2.2svh, 36px);
}
.about-avatar {
  width: clamp(74px, 11svh, 140px);
  height: clamp(74px, 11svh, 140px);
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #fff;
  filter: sepia(0.3) saturate(1.2) brightness(1.03);  /* warm, film-toned */
}
.about-text {
  display: flex;
  flex-direction: column;
  gap: clamp(5px, 1svh, 15px);
  max-width: 440px;
}
/* font scales with viewport height so the bio stays on one screen across sizes */
.about-text p { font-size: clamp(12px, 1.75svh, 18px); color: var(--ink); line-height: 1.45; }
.about-text p:first-child { font-size: clamp(15px, 2.2svh, 22px); color: var(--logo); letter-spacing: 0.01em; }
.about-signoff {
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  font-size: clamp(15px, 2.1svh, 21px) !important;
  color: var(--logo) !important;
  line-height: 1.3 !important;
  margin-top: 2px;
}
/* Book A Session: extra breathing room above it, and size that scales with the screen */
.block-about .btn-teal {
  margin-top: clamp(10px, 2.4svh, 30px);
  font-size: clamp(15px, 1.9svh, 20px);
  padding: clamp(10px, 1.5svh, 14px) clamp(22px, 3.4svh, 32px);
}

/* ============================================================
   PORTFOLIO
   ============================================================ */
.block-portfolio {
  align-items: center;
  gap: 39px;
}
.feature-photo {
  width: 285px;
  max-width: 100%;
  aspect-ratio: var(--photo-ratio);
  border: 3px solid #fff;
  box-shadow: none;
}
.portfolio-label {
  font-family: var(--font-body);
  font-size: 36px;
  color: var(--ink);
  text-decoration: none;
  transition: opacity 0.2s ease;
}
.portfolio-label:hover { opacity: 0.65; }

/* ============================================================
   SERVICES — 2 x 2 grid of cards
   ============================================================ */
.block-services { align-items: center; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 288px);
  gap: var(--sp-32);
  justify-content: center;
}
.service-card {
  position: relative;
  overflow: hidden;
  width: 288px;
  background: transparent;
  border: 1.5px solid rgba(69, 9, 14, 0.5);    /* mandl-style bordered box */
  border-radius: 0;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-family: var(--font-mono);               /* mandl: all monospace */
  color: var(--text-primary);
  cursor: pointer;                             /* whole card is clickable */
  transition: color 0.45s cubic-bezier(0.65, 0, 0.35, 1);
}
/* whole-card fill that wipes across on hover, like the CTA */
.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--logo);
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.45s cubic-bezier(0.65, 0, 0.35, 1);
  z-index: 0;
}
.service-card > * { position: relative; z-index: 1; }
.service-card:hover::before { clip-path: inset(0 0 0 0); }
.service-card:hover,
.service-card:hover .service-name,
.service-card:hover .service-price,
.service-card:hover .service-dur,
.service-card:hover .service-tagline,
.service-card:hover .service-desc,
.service-card:hover .service-for,
.service-card:hover .service-features li,
.service-card:hover .service-select { color: var(--card); }
.service-card:hover .service-features li::before { background: var(--card); }
.service-card:hover .service-for { border-top-color: rgba(254, 252, 246, 0.35); }
.service-head { display: flex; flex-direction: column; gap: 8px; }
.service-name { font-family: var(--font-mono); font-weight: 700; font-size: 19px; color: var(--text-primary); line-height: 1.2; letter-spacing: -0.01em; transition: color 0.4s ease; }
.service-price { font-family: var(--font-mono); font-weight: 600; font-size: 15px; color: var(--text-primary); letter-spacing: 0.02em; transition: color 0.4s ease; }
.service-dur { font-weight: 400; color: var(--text-secondary); white-space: nowrap; }
.service-tagline { font-size: 13px; font-style: italic; font-weight: 500; color: var(--text-primary); line-height: 1.4; transition: color 0.4s ease; }
.service-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.55; transition: color 0.4s ease; }
.service-for {
  font-size: 12px;
  font-style: italic;
  color: var(--text-secondary);
  line-height: 1.45;
  padding-top: 12px;
  border-top: 1px solid rgba(69, 9, 14, 0.18);
  transition: color 0.4s ease, border-top-color 0.4s ease;
}
.service-features { list-style: none; display: flex; flex-direction: column; gap: 7px; }
.service-features li {
  position: relative;
  padding-left: 16px;
  font-size: 13px;
  color: var(--text-primary);
  line-height: 1.35;
  transition: color 0.4s ease;
}
.service-features li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.5em;
  width: 4px; height: 4px;
  border-radius: 2px;
  background: var(--accent-brown);
  transition: background 0.4s ease;
}
.service-select {
  margin-top: auto;
  align-self: flex-start;
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  color: var(--logo);
  cursor: pointer;
  transition: color 0.4s ease, letter-spacing 0.2s ease;
}
.service-select:hover { letter-spacing: 0.06em; }
.service-select .service-arrow {
  display: inline-block;
  font-size: 1.5em;        /* larger arrow than the label */
  line-height: 0;
  vertical-align: -0.12em;
  margin-left: 2px;
  transition: transform 0.25s ease;
}
.service-select:hover .service-arrow { transform: translateX(3px); }

/* wiggle the 2nd package card to draw attention */
@keyframes cardWiggle {
  0%, 82%, 100% { transform: rotate(0deg); }
  85% { transform: rotate(-1.4deg); }
  89% { transform: rotate(1.4deg); }
  93% { transform: rotate(-0.8deg); }
  96% { transform: rotate(0.4deg); }
}
.services-grid .service-card:nth-child(2) {
  animation: cardWiggle 4.5s ease-in-out infinite;
  transform-origin: center;
}
.services-grid .service-card:nth-child(2):hover { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .services-grid .service-card:nth-child(2) { animation: none; }
}

/* ============================================================
   JOURNAL
   ============================================================ */
.block-journal { align-items: center; }
.journal-grid { display: flex; flex-direction: column; gap: 0; width: 100%; }
.journal-block {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  min-height: 100vh;         /* each testimonial = a full page of negative space */
}
.journal-block--alt { flex-direction: row-reverse; }
.journal-image {
  width: 240px;
  flex-shrink: 0;
  aspect-ratio: var(--photo-ratio);
  border: 2px solid var(--card);
  background: var(--card);
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(69, 9, 14, 0.08);
}
.journal-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.journal-image:hover img { transform: scale(1.04); }
.journal-block blockquote {
  font-size: 18px;
  color: var(--ink);
  font-style: normal;
  line-height: 1.6;
}

/* ============================================================
   CONTACT
   ============================================================ */
.block-contact { align-items: stretch; }
.contact-form {
  width: 100%;
  background: transparent;
  border: 1.5px solid rgba(69, 9, 14, 0.5);    /* mandl-style bordered box */
  border-radius: 0;
  box-shadow: none;
  padding: 26px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-family: var(--font-mono);               /* match the pricing tiles */
}
.contact-header { display: flex; flex-direction: column; gap: 8px; }
.contact-header h2 {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--text-primary);
}
.contact-header > p { font-size: 13px; line-height: 1.5; color: var(--text-secondary); }
.contact-meta { display: flex; flex-direction: column; gap: 5px; margin-top: 4px; }
.contact-meta p { font-size: 13px; color: var(--text-primary); }
.meta-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-primary);
  text-decoration: none;
}
.meta-icon { width: 15px; height: 15px; flex: none; }
.meta-text { text-decoration: underline; text-underline-offset: 2px; }
.meta-link:hover .meta-text { text-decoration: none; }

/* small "feel free to DM" hint bubble on hover/focus of any instagram link */
.ig-hint { position: relative; isolation: isolate; }  /* keep the hint's z-index local */
.ig-hint::after {
  content: attr(data-hint);
  position: absolute;
  left: 50%;
  bottom: 100%;
  margin-bottom: 8px;
  transform: translateX(-50%) translateY(4px);
  background: var(--logo);
  color: var(--card);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.02em;
  padding: 6px 9px;
  border-radius: 5px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 200;
}
.ig-hint::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 100%;
  margin-bottom: 3px;
  transform: translateX(-50%) translateY(4px);
  border: 5px solid transparent;
  border-top-color: var(--logo);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 200;
}
.ig-hint:hover::after,
.ig-hint:focus-visible::after,
.ig-hint:hover::before,
.ig-hint:focus-visible::before { opacity: 1; transform: translateX(-50%) translateY(0); }

.field { display: flex; flex-direction: column; gap: 5px; }
.field label {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-primary);
}
.field input,
.field select,
.field textarea {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-primary);
  background: transparent;                      /* not white */
  border: 1.5px solid rgba(69, 9, 14, 0.3);
  border-radius: 0;
  padding: 10px 14px;
  width: 100%;
  outline: none;
  transition: border-color 0.2s ease;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--text-secondary); }
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--logo); }
.field textarea { resize: vertical; min-height: 72px; }
.field select {
  appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%2373745c' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}
.contact-form .btn-teal { align-self: flex-start; }
.form-note { font-size: 14px; color: var(--accent-brown); }

/* --- send confirmation: green animated checkmark + message --- */
:root { --success: #3f7a4f; }

.form-success {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 4px;
  padding: 14px 16px;
  border: 1.5px solid var(--success);
  border-radius: 10px;
  background: color-mix(in srgb, var(--success) 10%, var(--card));
}
.form-success[hidden] { display: none; }

.success-check {
  width: 40px; height: 40px; flex: none;
  stroke: var(--success);
  stroke-width: 3.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.success-check__circle { stroke-dasharray: 151; stroke-dashoffset: 151; }
.success-check__mark   { stroke-dasharray: 48;  stroke-dashoffset: 48;  }

.form-success.is-active .success-check__circle { animation: checkCircle 0.5s ease forwards; }
.form-success.is-active .success-check__mark   { animation: checkMark 0.35s 0.42s ease forwards; }

@keyframes checkCircle { to { stroke-dashoffset: 0; } }
@keyframes checkMark   { to { stroke-dashoffset: 0; } }

.form-success__text { display: flex; flex-direction: column; gap: 2px; }
.form-success__text strong { font-family: var(--font-mono); font-size: 14px; color: var(--text-primary); }
.form-success__text span   { font-size: 13px; color: var(--text-secondary); }

/* cooldown note + disabled send button (anti-spam) */
.form-cooldown { font-family: var(--font-mono); font-size: 12px; color: var(--text-secondary); margin-top: 2px; }
.form-cooldown[hidden] { display: none; }

/* send-failure message */
.form-send-error { font-size: 13px; color: var(--logo); line-height: 1.5; margin-top: 2px; }
.form-send-error[hidden] { display: none; }
.form-send-error a { color: var(--logo); text-decoration: underline; text-underline-offset: 2px; }

/* privacy / third-party note under the form */
.form-privacy { font-size: 11.5px; color: var(--text-secondary); line-height: 1.5; margin-top: 10px; max-width: 460px; }
.form-privacy a { color: var(--text-secondary); text-decoration: underline; text-underline-offset: 2px; }
.form-privacy a:hover { color: var(--logo); }

.btn-teal:disabled,
.btn-teal.is-disabled { opacity: 0.45; cursor: not-allowed; pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
  .form-success.is-active .success-check__circle,
  .form-success.is-active .success-check__mark { animation: none; stroke-dashoffset: 0; }
}

/* honeypot — kept out of sight and out of the tab order, never display:none
   (some bots skip hidden fields, so we move it off-screen instead) */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* inline validation */
.field-error {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.3;
  color: var(--logo);
  min-height: 0;
}
.field-error:empty { display: none; }
.field input.has-error,
.field select.has-error,
.field textarea.has-error { border-color: var(--logo); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  border-top: 1px solid rgba(69, 9, 14, 0.15);
  padding: 40px 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.footer-brand { font-family: var(--font-logo); font-weight: 600; font-size: 22px; color: var(--logo); }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { font-size: 13px; color: var(--ink); text-decoration: none; }
.footer-links a:hover { opacity: 0.6; }
.footer-copy { font-size: 12px; color: var(--text-secondary); width: 100%; }

/* ============================================================
   OUTRO — logo fills the final screen, contact types out
   ============================================================ */
.outro {
  min-height: 100vh;
  border-top: none;
  padding: 0 0 48px;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: flex-start;
  justify-content: flex-end;   /* sit toward the bottom of the page */
  gap: 64px;                    /* more breathing room between logo / contact / footer */
}
.outro__logo {
  --p: 0;                                        /* scroll-scrub progress (0..1), set by JS */
  width: min(100%, 860px);
  aspect-ratio: 314 / 129;
  opacity: var(--p);                             /* fades in on scroll, no grow */
  will-change: opacity;
}
.outro__logo::before {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background-color: var(--ink);                 /* black logo */
  -webkit-mask: url("spacebytasminlogo.svg") no-repeat left center / contain;
  mask: url("spacebytasminlogo.svg") no-repeat left center / contain;
}

.outro__contact { display: flex; flex-direction: column; gap: 12px; }
.outro__row { display: inline-flex; align-items: center; gap: 10px; }
.outro__icon { width: 17px; height: 17px; color: var(--logo); }
.type-line {
  position: relative;
  width: max-content;
  max-width: 100%;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 18px;
  color: var(--logo);
  text-decoration: none;
}
.type-line > span {
  display: inline-block;
  white-space: nowrap;
  clip-path: inset(-0.2em calc(100% - var(--typed, 0) * 1ch) -0.2em 0);
}
.type-line::after {
  content: "";
  display: inline-block;
  width: 0.5ch;
  height: 1.05em;
  margin-left: 1px;
  vertical-align: -0.15em;
  background: var(--logo);
  transform: translateX(calc((var(--typed, 0) - var(--chars)) * 1ch));
  animation: caretBlink 1s steps(1) infinite;
}
.type-line:hover { text-decoration: underline; text-underline-offset: 4px; }
@keyframes caretBlink { 50% { opacity: 0; } }

.outro__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 14px 40px;
  margin-top: 8px;
  width: 100%;
}
@media (prefers-reduced-motion: reduce) {
  .outro__logo { opacity: 1; animation: none; transform: none; filter: none; }
  .type-line > span { clip-path: none; }
  .type-line::after { display: none; }
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(26, 12, 4, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.lightbox[hidden] { display: none; }
.lightbox-img {
  max-width: 80vw;
  max-height: 85vh;
  object-fit: contain;
  border: 3px solid var(--card);
}
.lightbox-close,
.lightbox-nav {
  position: absolute;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  line-height: 1;
}
.lightbox-close { top: 24px; right: 32px; font-size: 48px; }
.lightbox-nav { top: 50%; transform: translateY(-50%); font-size: 72px; padding: 0 24px; opacity: 0.8; transition: opacity 0.2s; }
.lightbox-nav:hover { opacity: 1; }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

/* ============================================================
   RESPONSIVE — tablet
   ============================================================ */
@media (max-width: 1024px) {
  .layout {
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 48px;
    padding: 0 32px;
  }
  .reel { left: 32px; width: 320px; }
  .content { gap: 80px; }
}

/* ============================================================
   RESPONSIVE — mobile (<= 760px)
   ============================================================ */
@media (max-width: 760px) {
  html { scroll-padding-top: 0; }   /* full-page sections fill the screen; natural ones pad their own top */

  /* logo: centered over the film strip, scaled to the photo width */
  .logo {
    top: 14px;
    left: 21px;                          /* = film-frame padding, so it lines up with the photo */
    width: calc(28vw - 42px);            /* exactly the frame photo's width */
    height: calc((28vw - 42px) / 2.42);  /* keep the lettermark's aspect ratio */
    -webkit-mask-position: center;
    mask-position: center;
  }

  /* "fries" menu — staggered, rounded bars (modern take on the hamburger) */
  .hamburger {
    display: block;
    background: none; border: none;
    width: 30px; height: 20px;
    position: fixed; top: 18px; right: 20px; cursor: pointer; padding: 0;
    z-index: 70;
  }
  .hamburger span {
    display: block; height: 2.5px; background: var(--logo);
    border-radius: 3px;
    position: absolute; right: 0;
    transition: width 0.3s ease, transform 0.3s ease, opacity 0.2s ease;
  }
  .hamburger span:nth-child(1) { top: 0;    width: 100%; }
  .hamburger span:nth-child(2) { top: 9px;  width: 60%; }
  .hamburger span:nth-child(3) { top: 18px; width: 82%; }
  .hamburger.open span:nth-child(1) { width: 100%; transform: translateY(9px) rotate(45deg); }
  .hamburger.open span:nth-child(2) { width: 100%; opacity: 0; }
  .hamburger.open span:nth-child(3) { width: 100%; transform: translateY(-9px) rotate(-45deg); }

  /* nav becomes a drawer */
  .topnav {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: 74%;
    max-width: 300px;
    margin-top: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--sp-24);
    background: var(--bg-page);
    box-shadow: -4px 0 24px rgba(69, 9, 14, 0.15);
    padding: 88px 32px 32px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 60;
    mix-blend-mode: normal;   /* solid drawer on mobile, no blend */
  }
  .topnav.open { transform: translateX(0); }
  .nav-link { font-size: 22px; color: var(--ink); }
  .nav-meta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid rgba(69, 9, 14, 0.2);
    width: 100%;
  }
  .nav-meta__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--text-secondary);
    text-decoration: none;
  }
  .nav-meta__link span { word-break: break-all; }
  .nav-meta__link:active { color: var(--logo); }
  .nav-overlay {
    display: block;
    position: fixed; inset: 0; z-index: 55;
    background: rgba(0, 0, 0, 0.4);
  }
  .nav-overlay[hidden] { display: none; }

  /* single column */
  .layout {
    display: flex;
    flex-direction: column;
    gap: 44px;
    padding: 0 20px 56px;
  }
  .content { order: 1; gap: 44px; padding: 0; margin-left: 32%; }  /* sits right of the fixed strip */
  /* natural-height sections pad their own top to clear the fixed header */
  .block { min-height: auto; justify-content: flex-start; padding-top: 64px; }
  .block-journal { padding-top: 0; }

  /* content blocks centered */
  .block-hero {
    min-height: 100vh;                /* its own full screen */
    justify-content: center;
    align-items: flex-start;
    text-align: left;
    padding-top: 0;                   /* centred content clears the header on its own */
  }
  .hero-cta { font-size: 22px; }
  .hero-tagline { font-size: 14px; }

  .block-portfolio {
    min-height: 100vh;                /* its own full screen, like the hero */
    justify-content: center;
    padding-top: 0;
  }

  /* About gets its own full screen and centers, so the bio fits without scrolling */
  .block-about {
    min-height: 100svh;
    justify-content: center;
    padding-top: 46px;   /* keep the avatar clear of the fixed header */
    padding-bottom: 20px;
  }
  .about-avatar { border-width: 3px; }
  .about-text { max-width: 100%; }
  /* font sizes come from the responsive clamps above — no fixed overrides here */

  .services-grid { grid-template-columns: 1fr; max-width: 320px; }
  .service-card { width: 100%; }

  /* touch has no hover — JS flags the card centered in view, which gets the
     same maroon wipe the desktop hover gives. Snappier on mobile so it settles
     cleanly instead of smearing when the focused card changes. */
  .service-card::before { transition: clip-path 0.32s ease; }
  .service-card.in-focus::before { clip-path: inset(0 0 0 0); }
  .service-card.in-focus,
  .service-card.in-focus .service-name,
  .service-card.in-focus .service-price,
  .service-card.in-focus .service-dur,
  .service-card.in-focus .service-tagline,
  .service-card.in-focus .service-desc,
  .service-card.in-focus .service-for,
  .service-card.in-focus .service-features li,
  .service-card.in-focus .service-select { color: var(--card); }
  .service-card.in-focus .service-features li::before { background: var(--card); }
  .service-card.in-focus .service-for { border-top-color: rgba(254, 252, 246, 0.35); }
  .services-grid .service-card:nth-child(2).in-focus { animation-play-state: paused; }

  /* no hover on touch — pin the DM hint just below the handle, always visible */
  .ig-hint { padding-bottom: 22px; }            /* reserve room for the pill */
  .ig-hint::before { display: none; }           /* drop the floating-bubble arrow */
  .ig-hint::after {
    left: 0;
    right: auto;
    top: auto;
    bottom: 0;
    margin: 0;
    transform: none;
    opacity: 1;
    padding: 2px 8px;
    font-size: 10px;
    border-radius: 999px;
  }

  /* reel: a single fixed film strip down the left, alongside the content */
  .reel {
    position: fixed;
    top: 0;
    left: 0;
    width: 28%;
    height: 100vh;
    gap: 0;
    transform: none;
    z-index: 1;
  }
  .reel-strip:nth-child(2) { display: none; }   /* only one strip on mobile */
  .film-frame { padding: 0 21px; }              /* keep the photo off the sprocket holes */

  .journal-block, .journal-block--alt { flex-direction: column; gap: 20px; text-align: center; align-items: center; }
  .journal-image { width: 220px; }
  .journal-block blockquote { font-size: 16px; }

  .contact-form { padding: 28px 20px; }

  .block-heading { display: none; }

  .site-footer { flex-direction: column; text-align: center; justify-content: center; }
  /* keep the outro content pinned to the bottom of the screen on mobile */
  .site-footer.outro { justify-content: flex-end; gap: 40px; }
  .footer-links { justify-content: center; }
  .footer-copy { text-align: center; }

  .lightbox-img { max-width: 92vw; }
  .lightbox-nav { font-size: 48px; padding: 0 8px; }
  .lightbox-close { font-size: 40px; top: 12px; right: 16px; }
}
