/* ============================================================
   CUSTOM PROPERTIES
============================================================ */
:root {
  --bg:          #ebe8e0;
  --green:       #86b58f;
  --green-dark:  #6fa579;
  --dark:        #261407;
  --body:        #33302d;
  --cream:       #f4f2ec;
  --light-green: #ebf7ed;
  --card-bg:     #dbe5e7;
  --white:       #ffffff;
  --green-brand: #229959;

  --sans:   'Manrope', 'DM Sans', 'Maison Neue', -apple-system, BlinkMacSystemFont, sans-serif;
  --script: 'Dancing Script', 'SignPainter', cursive;

  --max-w: 1284px;
  --pad:   clamp(20px, 4vw, 80px);
}

/* ============================================================
   RESET
============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body { background: var(--bg); color: var(--dark); font-family: var(--sans); line-height: 1.5; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
em { font-style: normal; }

/* ============================================================
   CONTAINER
============================================================ */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* ============================================================
   TYPOGRAPHY HELPERS
============================================================ */
.script        { font-family: var(--script); }
.script-green  { color: var(--green); }
.script-cream  { color: var(--cream); }

/* ============================================================
   BUTTONS
============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: opacity .2s;
}
.btn:hover { opacity: .85; }
.btn-green       { background: var(--green); color: #000; padding: 8px 24px; }
.btn-coming-soon { background: transparent; color: var(--dark); border: 1.5px solid var(--dark); padding: 8px 24px; opacity: 0.45; pointer-events: none; cursor: default; }
.btn-light  { background: var(--light-green); color: #000; padding: 12px 24px; }
.btn-light[aria-disabled="true"] { opacity: 0.45; pointer-events: none; cursor: default; }
.btn-beige  { background: var(--bg);          color: #000; padding: 8px 24px; }

/* ============================================================
   NAV
============================================================ */
.nav {
  position: relative;
  z-index: 10;
  padding: 21px 0;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
/* Logo: exact Figma size, never stretch */
.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.nav-logo img {
  width: 62px;
  height: 38px;
  object-fit: contain;
  display: block;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-link {
  font-size: 18px;
  font-weight: 400;
  color: #000;
  line-height: normal;
  transition: opacity .2s;
}
.nav-link:hover { opacity: .6; }
.nav-link.active { font-weight: 600; opacity: 1; border-bottom: 2px solid var(--dark); padding-bottom: 2px; }
.nav-btn {
  font-size: 18px;
  font-weight: 400;
  color: #000;
  background: var(--green);
  padding: 8px 16px;
  border-radius: 4px;
  line-height: normal;
  white-space: nowrap;
}

/* ============================================================
   HERO  — two-column (pill left | text right)
============================================================ */
.hero {
  height: 85vh;
  background: var(--green);
  display: flex;
  flex-direction: column;
}

/* Content wrapper: same max-width + centering as nav container */
.hero-content {
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  padding: 120px var(--pad) 0 0;
  display: flex;
}

/* Flex container for pill and text. */
.hero-body {
  display: flex;
  align-items: flex-start;
  width: 100%;
}

/* ---- Left pill ---- */
@keyframes pillEnter {
  from {
    opacity: 0;
    transform: translateX(-48px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

.hero-left {
  flex-shrink: 0;
  align-self: flex-start;
  width: clamp(280px, 49vw, 520px);
  margin-right: clamp(32px, 8vw, 120px);
  height: 287px;
  background: var(--bg);
  border-radius: 0 999px 999px 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  opacity: 0;
  animation: pillEnter 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) 0.15s both;
}

@media (prefers-reduced-motion: reduce) {
  .hero-left { animation: none; opacity: 1; }
}

/* At wide viewports: pill background extends left to viewport edge */
@media (min-width: 1285px) {
  .hero-left {
    margin-left: calc(-1 * (100vw - var(--max-w)) / 2);
  }

  .hero-left::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: calc((100vw - var(--max-w)) / 2);
    background: var(--bg);
    z-index: -1;
  }
}

/* ── Logo smiley: appear + eyebrow raise loop ── */
@keyframes logoAppear {
  from {
    opacity: 0;
    transform: scale(0.82) translateY(14px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Wrapper keeps logo + "Hi, I'm" together */
.hero-logo-wrap {
  position: relative;
  width: clamp(180px, 44%, 315px);
  flex-shrink: 0;
  opacity: 0;
  animation: logoAppear 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) 0.4s both;
}

.hero-logo-wrap.logo-floating {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .hero-logo-wrap,
  .hero-logo-wrap.logo-floating {
    animation: none;
    opacity: 1;
  }
}

/* Cătă calligraphy */
.hero-logo-img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

/* "Hi, I'm" */
.hero-hi-text {
  font-family: var(--script);
  font-size: clamp(16px, 1.8vw, 28px);
  color: var(--body);
  opacity: 0.9;
  line-height: normal;
  position: absolute;
  left: 74%;
  top: -1em;
  white-space: nowrap;
}

/* ---- Right text ---- */
.hero-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 33px;
  padding: 0 0 0 clamp(32px, 8vw, 120px);
}

/* Headline */
.hero-headline {
  font-weight: 700;
  font-size: 4vw;
  line-height: 1.08;
  color: var(--dark);
  letter-spacing: -2.46px;
  white-space: nowrap;
  margin: 0;
}
.hero-headline .hl-script {
  font-family: var(--script);
  font-size: 1.18em;
  color: var(--cream);
  letter-spacing: -1.93px;
}

/* Bio copy */
.hero-bio {
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: var(--body);
  opacity: .9;
  max-width: clamp(220px, 22vw, 320px);
  margin: 0;
}
.hero-bio strong { font-weight: 700; }

/* --- Fading lines after hero --- */
.hero-lines { display: flex; flex-direction: column; gap: 8px; padding-top: 8px; }
.hero-lines div { width: 100%; background: var(--green-dark); }
.hl1 { height: 32px; opacity: 1.0; }
.hl2 { height: 24px; opacity: 0.9; }
.hl3 { height: 16px; opacity: 0.7; }
.hl4 { height: 8px;  opacity: 0.4; }
.hl5 { height: 4px;  opacity: 0.2; }

/* ============================================================
   FEATURED
============================================================ */
.featured-section {
  margin-top: -28vh;
  position: relative;
  z-index: 1;
  overflow: hidden;
}
.featured-inner {
  max-width: var(--max-w);
  margin: 46px auto;
  padding-left: var(--pad);
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 31px;
}
.rotator-card {
  background: var(--card-bg);
  border-radius: 24px 24px 0 0;
  width: clamp(380px, 66vw, 846px);
  height: 826px;
  padding: 0;
  flex-shrink: 0;
  align-self: flex-end;
  overflow: hidden;
  position: relative;
}

/* ── Subtle gradient scrim so the bar always reads over any video frame ── */
.rotator-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 56px;
  background: linear-gradient(to top, rgba(0,0,0,0.38) 0%, transparent 100%);
  pointer-events: none;
  z-index: 9;
}

/* ── Progress bar — TikTok/Instagram style ── */
.video-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 20px;           /* tall invisible hit zone for easy tap/click */
  display: flex;
  align-items: flex-end;
  cursor: pointer;
  z-index: 10;
}

.video-progress-track {
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.22);
  position: relative;
  transition: height 0.18s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  flex-shrink: 0;
}

.video-progress:hover .video-progress-track {
  height: 4px;
}

.video-progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 0%;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 0 1px 1px 0;
  will-change: width;
}
.rotator-screenshot {
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.rotator-screenshot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.rotator-screenshot video {
  width: 100%;
  height: 100%;
  object-fit: fill;
  display: block;
}
.me-arch {
  width: clamp(200px, 32vw, 408px);
  height: clamp(340px, 54vw, 690px);
  border-radius: 999px 999px 0 0;
  overflow: hidden;
  flex-shrink: 0;
  align-self: flex-end;
}
.me-arch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 19% 45%;
}

/* ============================================================
   TRANSFORMING / ABOUT SECTION
============================================================ */
.about-section {
  background: var(--bg);
  margin-top: 200px;
  padding: 0 0 80px;
}
.about-grid {
  display: flex;
  gap: clamp(24px, 3vw, 42px);
  align-items: flex-end;
  justify-content: space-between;
}

/* Logos card — Figma: 839px × 398px */
.logos-card {
  background: var(--white);
  border-radius: 12px;
  display: flex;
  padding: 40px 0;
  width: clamp(400px, 65vw, 839px);
  height: 398px;
  flex-shrink: 0;
}
.logos-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.logo-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 clamp(16px, 5vw, 64px);
}
.logo-cell img {
  width: auto;
  max-width: 85%;
  object-fit: contain;
  opacity: .9;
  filter: grayscale(100%);
  transition: filter .35s ease, opacity .35s ease;
}
.logo-cell:hover img { filter: none; opacity: 1; }

/* About text (right column): heading + body + button */
.about-text {
  flex-shrink: 0;
  width: clamp(240px, 26vw, 337px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
}
.transform-heading {
  font-weight: 700;
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1.14;
  letter-spacing: -1.12px;
  color: var(--dark);
}
.transform-heading .th-script {
  font-family: var(--script);
  font-size: clamp(44px, 4.8vw, 66.44px);
  color: var(--green);
  letter-spacing: -1.33px;
}
.about-text p {
  font-size: 18px;
  font-weight: 400;
  line-height: 27px;
  color: var(--body);
  opacity: .9;
  margin: 0;
}

/* ============================================================
   SELECTED WORK
============================================================ */
.work-section {
  background: var(--bg);
  padding: 40px 0 80px;
}
.work-title {
  font-weight: 700;
  font-size: clamp(48px, 5vw, 75px);
  line-height: 1.04;
  letter-spacing: -1.5px;
  color: var(--dark);
  margin-bottom: 41px;
}

/* Project card */
.project-card { margin-bottom: 32px; }
.project-bg {
  position: relative;
  background-size: cover;
  background-position: center;
  border-radius: 16px;
  overflow: hidden;
  min-height: 612px;
}
.project-overlay {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  pointer-events: none;
}
.project-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 44px 62px;
  min-height: 612px;
  gap: 40px;
}
.project-text {
  display: flex;
  flex-direction: column;
  gap: 31px;
  max-width: 394px;
  flex-shrink: 0;
}
.project-logo img {
  max-height: 43px;
  width: auto;
  object-fit: contain;
}
.project-title {
  font-weight: 700;
  font-size: clamp(32px, 3.8vw, 56px);
  line-height: 1.09;
  letter-spacing: -1.12px;
  color: #fff;

}

/* Phones (Project 1) */
.project-phones {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-shrink: 0;
}

/* Laptop (Project 2) */
.project-laptop {
  flex-shrink: 0;
  max-width: 560px;
}
.project-laptop img {
  width: 100%;
  height: auto;
}

/* Branding grid (Project 4) */
.branding-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: clamp(240px, 25vw, 386px);
  flex-shrink: 0;
}
.brand-tile {
  aspect-ratio: 1;
  border-radius: 30px;
  overflow: hidden;
}
.brand-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.brand-tile-green {
  background: var(--green-brand);
  display: flex;
  align-items: center;
  justify-content: center;
}
.brand-tile-green img {
  width: 60%;
  height: 60%;
  object-fit: contain;
}

/* ============================================================
   PLAYGROUND
============================================================ */
.playground-section {
  background: var(--bg);
  position: relative;
  margin-top: 200px;
  padding: 120px 0 160px;
  overflow: hidden;
}
.playground-deco {
  position: absolute;
  pointer-events: none;
}
.deco-tl { top: 16%;   left:  clamp(60px,  16.5vw, 317px); width: clamp(100px, 10vw, 193px); }
.deco-tr { top: -2%;   right: clamp(20px,   7.4vw, 143px); width: clamp(160px, 19vw, 364px); }
.deco-bl { bottom: 0;  left:  clamp(30px,   5.2vw, 100px); width: clamp(130px, 15vw, 289px); }
.deco-br { bottom: 0;  right: clamp(80px,  16.4vw, 314px); width: clamp(80px,  9.8vw, 188px); }

.playground-content { text-align: center; }

.playground-label {
  font-family: var(--script);
  font-size: clamp(40px, 5vw, 64px);
  color: var(--green);
  line-height: 1.1;
  letter-spacing: -1.41px;
  display: block;
  margin-bottom: 0;
}
.playground-label .label-word {
  letter-spacing: -1.28px;
}
.playground-heading {
  font-weight: 700;
  font-size: clamp(48px, 7vw, 100px);
  line-height: 1.2;
  letter-spacing: -1.41px;
  color: var(--dark);
  max-width: 814px;
  margin: 0 auto 40px;
}
.playground-content .btn {
  align-self: center;
}

/* ============================================================
   FOOTER
============================================================ */
.footer {
  background: var(--bg);
  margin-top: 200px;
  padding-bottom: 60px;
}

/* ── Braun radio chassis — stadium/pill shape ── */
.footer-card {
  max-width: calc(var(--max-w) + 200px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 350px;
  /* horizontal padding must exceed half the card height to keep content in the straight section */
  padding: clamp(44px, 5vw, 72px) max(230px, 18vw);
  min-height: 460px;

  background: #eae8e0;
  border-radius: 999px;
  outline: 1px solid rgba(26, 24, 20, 0.2);
  outline-offset: 10px;
}

/* Left column */
.footer-left {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
}

.footer-connect { display: flex; flex-direction: column; line-height: 1; }

.footer-lets {
  font-family: var(--script);
  font-size: clamp(38px, 4vw, 64px);
  color: var(--green);
  letter-spacing: -1.28px;
  display: block;
  line-height: 1.05;
}
.footer-connect-heading {
  font-weight: 700;
  font-size: clamp(56px, 7vw, 100px);
  letter-spacing: -2px;
  color: var(--dark);
  line-height: 0.92;
  margin: 0;
}

/* Nav cols — separated from heading by a chassis score line */
.footer-nav-cols {
  display: flex;
  gap: clamp(32px, 5vw, 80px);
  border-top: 1px solid rgba(38, 20, 7, 0.14);
  padding-top: 20px;
}
.footer-nav-col {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.footer-nav-col a {
  font-weight: 700;
  font-size: clamp(20px, 2.2vw, 36px);
  color: var(--dark);
  line-height: 1.25;
  text-decoration: none;
}
.footer-nav-col a:hover { color: var(--green); }

/* Right column */
.footer-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

/* Dial button container */
.dial-button-container {
  position: relative;         /* anchors .dial-indicator's position: absolute */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Chassis LED indicator — sits above the button */
.dial-indicator {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  pointer-events: none;
}

.indicator-dot {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ── Dial Button Wrapper ── */
.dial-button-wrapper {
  position: relative;
  width: 340px;
  height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 54px;
}

.dial-bezel {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 1;
}

.bezel-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ════════════════════════════════════════════
   DIAL BUTTON — Figma design with image assets
   ════════════════════════════════════════════ */

.dial-btn {
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  padding: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  z-index: 2;
  transition: transform 0.12s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.button-center {
  position: absolute;
  width: 26px;
  height: 26px;
  left: 129px;
  top: 82px;
  object-fit: contain;
}

.dial-level {
  position: absolute;
  width: 304px;
  height: 304px;
  left: 16px;
  top: 23px;
  object-fit: contain;
}

.dial-base {
  position: absolute;
  width: 340px;
  height: 340px;
  left: 10px;
  top: 20px;
  object-fit: contain;
}

/* Press — subtle scale down */
.dial-btn.pressed {
  transform: scale(0.97);
}

/* Hover — very slight rise */
.dial-btn:hover:not(.pressed) {
  transform: scale(1.015);
}

/* Label + contact info under dial */
.dial-label {
  font-family: var(--script);
  font-size: 30px;
  color: var(--green);
  letter-spacing: -0.6px;
  display: block;
  text-align: center;
  margin-top: 2px;
}
.footer-location {
  font-size: 14px;
  font-weight: 400;
  color: rgba(38, 20, 7, 0.55);
  text-align: center;
  margin: 0;
  letter-spacing: 0.02em;
}
.footer-email {
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
  text-align: center;
  margin: 0;
  display: block;
  transition: opacity .2s;
}
.footer-email:hover { opacity: .6; }

/* Copyright */
.footer-copyright {
  margin-top: 40px;
  text-align: center;
}
.footer-copyright p {
  font-weight: 600;
  font-size: 16px;
  color: #000;
}
.footer-copyright span { font-weight: 400; }

/* ============================================================
   CONTACT MODAL
============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  padding: 20px;
}
.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}
.modal-card {
  background: var(--bg);
  border-radius: 20px;
  padding: clamp(32px, 4vw, 48px);
  max-width: 860px;
  width: 100%;
  position: relative;
  transform: translateY(32px) scale(0.97);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.modal-overlay.active .modal-card { transform: translateY(0) scale(1); }

.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: rgba(38, 20, 7, 0.35);
  line-height: 1;
  transition: color 0.15s;
}
.modal-close:hover { color: var(--dark); }

/* Two-column layout */
.modal-body {
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: clamp(32px, 5vw, 56px);
  align-items: start;
}
.modal-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--green);
  margin: 0 0 8px;
}
.modal-heading {
  font-weight: 700;
  font-size: clamp(26px, 3.5vw, 38px);
  letter-spacing: -1px;
  color: var(--dark);
  margin: 0 0 22px;
  line-height: 1.1;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.contact-form label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(38, 20, 7, 0.45);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 13px 16px;
  background: rgba(38, 20, 7, 0.04);
  border: 1px solid rgba(38, 20, 7, 0.12);
  border-radius: 10px;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--dark);
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  box-sizing: border-box;
  resize: vertical;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: rgba(38, 20, 7, 0.28); }
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--green);
  background: rgba(38, 20, 7, 0.02);
}
.form-error {
  font-size: 13px;
  color: #b94040;
  margin: 0;
}
.form-error[hidden] { display: none; }
.btn-full { width: 100%; text-align: center; justify-content: center; }

/* Info column */
.modal-info-col {
  border-left: 1px solid rgba(38, 20, 7, 0.08);
  padding-left: clamp(20px, 3vw, 32px);
  padding-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.modal-info-block { display: flex; flex-direction: column; gap: 4px; }
.modal-info-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(38, 20, 7, 0.35);
}
.modal-info-value { font-size: 14px; color: var(--dark); }
.modal-info-link {
  font-size: 14px;
  color: var(--dark);
  text-decoration: none;
}
.modal-info-link:hover { color: var(--green); }
.modal-info-links { display: flex; flex-direction: column; gap: 5px; }
.modal-info-links a {
  font-size: 14px;
  color: rgba(38, 20, 7, 0.6);
  text-decoration: none;
  transition: color 0.15s;
}
.modal-info-links a:hover { color: var(--green); }

/* Success state */
.modal-success[hidden] { display: none; }
.modal-success {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 8px 0;
}
.success-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(134, 181, 143, 0.15);
  border: 1px solid rgba(134, 181, 143, 0.35);
  color: var(--green);
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-success-text { font-size: 16px; color: rgba(38, 20, 7, 0.55); margin: 0; }

@media (max-width: 640px) {
  .modal-body { grid-template-columns: 1fr; gap: 28px; }
  .modal-info-col {
    border-left: none;
    border-top: 1px solid rgba(38, 20, 7, 0.08);
    padding-left: 0;
    padding-top: 20px;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px;
  }
  .form-row { grid-template-columns: 1fr; }
}

/* ============================================================
   UTILITY CLASSES FOR INLINE STYLES
============================================================ */

/* Logo heights — always width:auto so aspect ratio is never distorted */
.logo-h-47   { height: 32px; width: auto; }
.logo-h-51   { height: 51px; width: 161px; object-fit: contain; }
.logo-h-55   { height: 48px; width: auto; }
.logo-h-56   { height: 56px; width: auto; }
.logo-h-57   { height: 57px; width: auto; opacity: 0.9; }
.logo-h-43   { height: 43px; width: auto; opacity: 0.9; }
.logo-h-21   { height: 21px; width: auto; opacity: 0.9; }
.logo-h-87   { height: 56px; width: auto; }

/* Logo color utilities */
.logo-white { filter: brightness(0) invert(1); }

/* Object fit */
.object-contain { width: auto; object-fit: contain; }
.object-contain-full { height: 100%; width: auto; object-fit: contain; }

/* Image dimensions */
.img-phone-1 { height: 517px; width: auto; }
.img-phone-2 { height: 514px; width: auto; }

/* Opacity */
.opacity-9 { opacity: 0.9; }

/* Flexbox utilities */
.flex-center { display: flex; align-items: center; gap: 10px; }

/* Text styling for OSS */
.oss-text {
  font-family: 'DM Sans', 'Akzidenz-Grotesk Next', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: #fff;
}

/* ============================================================
   HERO HEADLINE — letter-by-letter reveal
============================================================ */
@keyframes charIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-headline .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(12px);
  animation: charIn 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  will-change: transform, opacity;
}

.hero-bio.bio-anim {
  opacity: 0;
  transform: translateY(8px);
  animation: fadeUp 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* ============================================================
   SCROLL REVEAL — Apple-style
============================================================ */

/* Default: fade up */
[data-reveal] {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity  0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Scale variant: fade up + scale in */
[data-reveal="scale"] {
  transform: translateY(28px) scale(0.96);
  transition:
    opacity  1s   cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 1s   cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Fade only — no movement (decorative elements) */
[data-reveal="fade"] {
  transform: none;
  transition: opacity 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Revealed state */
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* Stagger delays */
[data-reveal-delay="1"] { transition-delay: 0.12s; }
[data-reveal-delay="2"] { transition-delay: 0.22s; }
[data-reveal-delay="3"] { transition-delay: 0.34s; }
[data-reveal-delay="4"] { transition-delay: 0.46s; }

/* Honour reduced-motion */
@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ============================================================
   FOOTER — MOBILE  (≤ 600px)
   Layout: single column
   Order: Let's Connect → nav cols → dial button + contact
   Pill shape → rounded card (32px) so tall column doesn't look odd
============================================================ */

@media (max-width: 600px) {
  .footer {
    margin-top: 80px;
    padding-bottom: 40px;
  }

  /* Pill → card with room for outline */
  .footer-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 36px;
    padding: 44px 32px;
    border-radius: 32px;
    min-height: auto;
    margin: 0 16px;
  }

  .footer-left {
    width: 100%;
    gap: 24px;
  }

  /* Dial button area: center-align under the left content */
  .footer-right {
    width: 100%;
    align-items: center;
  }

  /* Scale dial from 340px → 272px (0.8×) to fit viewport
     transform-origin: center → 34px extra space top & bottom
     Compensate with negative margin-top + reduced margin-bottom  */
  .dial-button-wrapper {
    transform: scale(0.8);
    margin-top: -34px;
    margin-bottom: 20px; /* was 54px; 54 - 34 = 20 */
  }

  /* Modal form: stack name+email to single column */
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   INDEX PAGE — MOBILE  (≤ 480px)

   Priority fixes (in order of impact):
   1. Hero: stack pill over text, allow headline to wrap, scale type
   2. Featured: collapse to single card, hide arch photo
   3. About section: single column, logos card full-width
   4. Work cards: text-only layout, hide decorative phone/laptop/grid
   5. Playground: compress vertical whitespace, scale heading
============================================================ */

@media (max-width: 480px) {

  /* ── NAV — index page mobile: matches hero green, fixed, compressed ── */
  .nav {
    background: var(--green);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 14px 0;
  }
  .nav-link {
    font-size: 13px;
    color: var(--dark);
  }
  .nav-links {
    gap: 12px;
  }
  .nav-btn {
    font-size: 13px;
    background: #F4F2EC;
    color: var(--dark);
    padding: 6px 12px;
  }

  /* Index page: logo always visible in nav */
  .page-index .nav-logo {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  /* ── HERO ── */
  /* Remove fixed height — let content determine height */
  .hero {
    height: auto;
    min-height: 0;
    padding-bottom: 0;
    padding-top: 66px; /* offset fixed nav */
  }

  .hero-content {
    padding: 40px var(--pad) 56px;
  }

  /* Stack: pill above, headline below */
  .hero-body {
    flex-direction: column;
    align-items: flex-start;
    gap: 64px;
  }

  /* Pill: cream pill bleeding to left viewport edge, right side rounded — matches Figma */
  .hero-left {
    width: calc(85% + var(--pad));
    margin-left: calc(-1 * var(--pad));
    height: 220px;
    background: var(--bg);
    border-radius: 0 999px 999px 0;
    overflow: hidden;
    justify-content: flex-end;
    padding: 0 40px 0 0;
    margin-right: 0;
  }

  /* Logo sits in the right portion of the pill — never stretch the calligraphy */
  .hero-logo-wrap {
    width: 200px;
    align-self: center;
    overflow: visible;
  }

  .hero-logo-img {
    width: 100%;
    height: auto;
  }

  /* "Hi, I'm" — upper right of the logo */
  .hero-hi-text {
    font-size: 14px;
    top: -1.3em;
    left: 56%;
    white-space: nowrap;
    overflow: visible;
  }

  /* Headline: allow wrapping, scale down */
  .hero-headline {
    font-size: 8vw;
    white-space: normal;
    letter-spacing: -0.8px;
    line-height: 1.6;
  }

  .hero-right {
    padding: 0;
    gap: 20px;
  }

  .hero-bio {
    max-width: 100%;
    font-size: 15px;
    line-height: 1.6;
  }

  /* Fading lines: compress */
  .hero-lines {
    gap: 4px;
    padding-top: 4px;
  }
  .hl1 { height: 20px; }
  .hl2 { height: 14px; }
  .hl3 { height: 10px; }
  .hl4 { height: 6px; }
  .hl5 { height: 3px; }

  /* ── FEATURED SECTION ── */
  /* Negative margin pulls up to overlap the hero fading stripes */
  .featured-section {
    margin-top: -52px;
  }

  /* Column layout: me-arch first (CSS order), rotator below */
  .featured-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-left: var(--pad);
    padding-right: var(--pad);
    justify-content: flex-start;
  }

  /* Arch photo: show again, full-width portrait crop, pinned first, keep pill shape */
  .me-arch {
    display: block;
    order: -1;
    width: 100%;
    height: 400px;
    border-radius: 999px 999px 0 0;
  }

  .me-arch img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 19% 20%;
  }

  /* Rotator: same width + corners as project cards */
  .rotator-card {
    order: 1;
    width: 100%;
    min-width: 0;
    height: 380px;
    padding: 0;
    border-radius: 12px;
    margin-top: 16px;
  }

  .rotator-screenshot {
    width: 100%;
    height: 100%;
  }

  .rotator-screenshot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
  }

  .rotator-screenshot video {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  /* ── ABOUT / LOGOS SECTION ── */
  .about-section {
    margin-top: 60px;
    padding-bottom: 48px;
  }

  .about-grid {
    flex-direction: column;
    gap: 32px;
    align-items: stretch;
  }

  /* Logos card: fill width, reduce fixed height */
  .logos-card {
    width: 100%;
    min-width: 0;
    height: auto;
    min-height: 0;
    padding: 28px 0;
    gap: 0;
  }

  .logos-col {
    gap: 16px;
  }

  .logo-cell {
    padding: 0 clamp(12px, 4vw, 32px);
  }

  /* About text: fill width */
  .about-text {
    width: 100%;
    min-width: 0;
    gap: 20px;
  }

  .transform-heading {
    font-size: clamp(32px, 9vw, 44px);
  }

  .about-text p {
    font-size: 15px;
    line-height: 1.65;
  }

  /* ── SELECTED WORK ── */
  .work-section {
    padding: 32px 0 48px;
  }

  .work-title {
    font-size: clamp(32px, 9vw, 48px);
    margin-bottom: 28px;
    letter-spacing: -0.8px;
  }

  /* Cards: text-only portrait layout */
  .project-card {
    margin-bottom: 20px;
  }

  .project-bg {
    aspect-ratio: 5 / 7;
    min-height: unset;
    border-radius: 12px;
  }

  .project-overlay {
    border-radius: 12px;
  }

  /* Fill the aspect-ratio container absolutely */
  .project-inner {
    position: absolute;
    inset: 0;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 28px 24px;
    min-height: unset;
    gap: 0;
    /* gradient covers bottom so text is always legible */
    background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0) 60%);
  }

  .project-text {
    max-width: 100%;
    gap: 16px;
  }

  .project-title {
    font-size: clamp(22px, 6.5vw, 30px);
    letter-spacing: -0.5px;
  }

  /* Hide decorative elements — phones, laptop, branding grid */
  .project-phones,
  .project-laptop,
  .branding-grid {
    display: none;
  }

  /* ── PLAYGROUND ── */
  .playground-section {
    margin-top: 64px;
    padding: 60px 0 80px;
  }

  /* Decos: 20% bigger than previous mobile size, natural positions restored */
  .deco-tl { width: 53px; top: 8%; }
  .deco-tr { width: 65px; top: 0; }
  .deco-bl { width: 60px; }
  .deco-br { width: 46px; }

  /* Text always above deco images */
  .playground-content {
    position: relative;
    z-index: 2;
  }

  .playground-label {
    font-size: clamp(28px, 8vw, 40px);
  }

  .playground-heading {
    font-size: clamp(28px, 8.5vw, 44px);
    letter-spacing: -0.8px;
    margin-bottom: 28px;
  }

  /* Buttons: wrap tightly around text */
  .btn,
  .btn-green,
  .btn-light,
  .btn-beige {
    padding: 12px;
  }

  .playground-content .btn {
    width: auto;
  }
}

/* ============================================================
   TABLET PORTRAIT + LANDSCAPE  768px – 1024px

   Decisions:
   · Hero: 2-col preserved, pill constrained to 30vw so right
     column has ≥380px for text; headline gets a clamp floor
   · Featured: rotator fills remaining space, portrait becomes accent
   · Work cards: show phone/laptop visuals at tablet-scaled heights
   · Playground: tighten 200px margin → 120px
   · Footer: CRITICAL — gap 350px fixed + padding max(230px,18vw)
     = ~810px non-content in 834px. Switch to fluid gap + proportional
     padding + space-between.
============================================================ */

@media (min-width: 768px) and (max-width: 1024px) {

  /* ── NAV ── */
  .nav-links { gap: 24px; }
  .nav-link,
  .nav-btn { font-size: 16px; }

  /* ── HERO ── */
  .hero { height: auto; min-height: 38vh; }

  .hero-content { padding-top: 80px; }

  .hero-left {
    width: clamp(200px, 30vw, 280px);     /* was clamp(280px,49vw,520px) */
    margin-right: clamp(20px, 3.5vw, 40px);
    height: 220px;
  }

  .hero-logo-wrap { width: clamp(130px, 35%, 200px); }

  .hero-right { padding-left: 0; }

  .hero-headline {
    font-size: 4vw;
    white-space: normal;
    letter-spacing: -1px;
  }

  .hero-bio { max-width: 380px; }

  /* ── FEATURED ── */
  .featured-section { margin-top: -12vh; }

  .featured-inner {
    gap: clamp(12px, 2vw, 24px);
    align-items: flex-end;
    justify-content: flex-start;
    padding-right: var(--pad);
  }

  /* Rotator: 670/981 ≈ 68.3% of combined card width */
  .rotator-card {
    flex: 0 0 clamp(380px, 65.4vw, 670px);
    width: clamp(380px, 65.4vw, 670px);
    height: clamp(460px, 63.9vw, 654px);
  }

  /* Me arch: 311/981 ≈ 31.7% of combined card width */
  .me-arch {
    flex: 0 0 clamp(190px, 30.4vw, 311px);
    width: clamp(190px, 30.4vw, 311px);
    height: clamp(320px, 51.6vw, 528px);
  }

  /* Keep face centred — pull vertical position up so face stays in frame */
  .me-arch img {
    object-position: 30% 12%;
  }

  /* ── ABOUT / LOGOS SECTION ── */
  .about-section { margin-top: 120px; }

  .logos-card {
    width: clamp(280px, 46vw, 460px);
    height: 320px;
  }

  .about-text { width: clamp(200px, 28vw, 300px); }

  /* ── WORK ── */
  .work-section { padding: 40px 0 60px; }

  .project-bg { min-height: 480px; }

  .project-inner {
    padding: 36px 40px;
    gap: 24px;
    min-height: 480px;
  }

  .project-text { max-width: 300px; }

  /* Show project visuals — screens are wide enough to present them */
  .project-phones { display: flex; }
  .img-phone-1 { height: clamp(260px, 34vw, 430px); }
  .img-phone-2 { height: clamp(257px, 34vw, 427px); }
  .project-laptop { max-width: clamp(260px, 36vw, 460px); }
  .branding-grid { width: clamp(160px, 22vw, 300px); }

  /* ── PLAYGROUND ── */
  .playground-section {
    margin-top: 120px;
    padding: 80px 0 100px;
  }

  .playground-heading {
    font-size: clamp(36px, 6vw, 72px);
    max-width: 600px;
  }

  /* ── FOOTER — CRITICAL FIX ── */
  .footer { margin-top: 120px; }

  .footer-card {
    gap: clamp(32px, 5vw, 64px);
    padding: clamp(44px, 5vw, 64px) clamp(48px, 7vw, 96px);
    justify-content: space-between;
  }

  .footer-connect-heading { font-size: clamp(40px, 6vw, 64px); }

  /* Scale dial using transform — preserves all internal asset positions */
  .dial-button-wrapper {
    transform: scale(0.75);
    margin-top: -42px;   /* 340×(1−0.75)/2 ≈ 42px absorbed */
    margin-bottom: 12px; /* 54px original − 42px */
  }
}

/* ============================================================
   SMALL LAPTOP  1025px – 1280px

   Desktop layout holds; targeted fixes only:
   · Footer gap/padding still breaks at 1100–1280px
   · Typography floors on a few vw-only values
   · Section spacing slightly tighter than full desktop
============================================================ */

@media (min-width: 1025px) and (max-width: 1280px) {

  /* ── HERO ── */
  .hero-left {
    width: clamp(280px, 38vw, 420px);
    margin-right: clamp(32px, 5vw, 80px);
  }

  /* ── FEATURED — keep 2-col proportions into small laptop ── */
  .featured-inner {
    gap: clamp(16px, 2vw, 32px);
    align-items: flex-end;
    justify-content: flex-start;
    padding-right: var(--pad);
  }

  .rotator-card {
    flex: 0 0 clamp(600px, 60vw, 780px);
    width: clamp(600px, 60vw, 780px);
    height: clamp(580px, 58.8vw, 762px);
  }

  .me-arch {
    flex: 0 0 clamp(260px, 27vw, 350px);
    width: clamp(260px, 27vw, 350px);
    height: clamp(440px, 45.9vw, 595px);
  }

  .me-arch img {
    object-position: 30% 12%;
  }

  /* ── ABOUT ── */
  .about-section { margin-top: 160px; }

  /* ── PLAYGROUND ── */
  .playground-section { margin-top: 160px; }

  /* ── FOOTER ── */
  .footer { margin-top: 160px; }

  .footer-card {
    gap: clamp(80px, 8vw, 180px);
    padding: clamp(44px, 5vw, 72px) clamp(80px, 10vw, 160px);
  }

  .footer-connect-heading { font-size: clamp(48px, 6.5vw, 80px); }

  /* Slight dial scale-down so it doesn't crowd the pill at narrow desktop */
  .dial-button-wrapper {
    transform: scale(0.88);
    margin-top: -20px;   /* 340×(1−0.88)/2 ≈ 20px */
    margin-bottom: 34px; /* 54px − 20px */
  }
}
