/* ═══════════════════════════════════════════════════════
   WHITECLIFF STUDIO — STYLESHEET
   Palette: Ivory, Deep Charcoal, Warm Taupe, Accent Slate
═══════════════════════════════════════════════════════ */

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ivory:      #F8F6F2;
  --charcoal:   #1A1A1A;
  --taupe:      #8C7B6B;
  --slate:      #3D5A73;
  --slate-light:#5A7F9F;
  --warm-mid:   #E8E2D9;
  --text:       #2C2C2C;
  --text-muted: #666;
  --border:     rgba(0,0,0,0.08);

  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans:  'Inter', system-ui, sans-serif;

  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  --nav-h: 72px;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-sans);
  background: var(--ivory);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

.container {
  width: min(90%, 1200px);
  margin-inline: auto;
}

/* ── Typography ── */
h1, h2, h3 { font-family: var(--font-serif); font-weight: 400; line-height: 1.1; }
h1 { font-size: clamp(3.2rem, 7vw, 6rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4vw, 3.4rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.4rem, 2.5vw, 1.8rem); }
em { font-style: italic; color: var(--slate); }

.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--taupe);
  margin-bottom: 1rem;
}
.eyebrow--light { color: rgba(255,255,255,0.55); }

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 5rem;
}
.section-header--light h2, .h2--light { color: #fff; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: 100px;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: all 0.25s var(--ease-out);
  white-space: nowrap;
}
.btn--primary {
  background: var(--charcoal);
  color: #fff;
}
.btn--primary:hover { background: var(--slate); transform: translateY(-2px); }

.btn--ghost {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.45);
}
.btn--ghost:hover { background: rgba(255,255,255,0.12); border-color: #fff; }

.btn--outline-light {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.5);
  padding: 0.85rem 2.5rem;
}
.btn--outline-light:hover { background: #fff; color: var(--charcoal); }

.btn--full { width: 100%; justify-content: center; }

/* ════════════════════════════════════
   NAV
════════════════════════════════════ */
.nav {
  position: fixed;
  inset: 0 0 auto;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  z-index: 1000;
  transition: background 0.3s, box-shadow 0.3s;
}

.nav.scrolled {
  background: rgba(248, 246, 242, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  transition: opacity 0.2s;
}
.nav__logo:hover { opacity: 0.75; }

.logo-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  background: var(--charcoal);
  color: #fff;
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--r-sm);
  letter-spacing: 0.05em;
  transition: background 0.25s;
}
.nav__logo:hover .logo-mark { background: var(--slate); }

.logo-text {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--charcoal);
  transition: color 0.3s;
}
.hero .nav .logo-text,
.hero ~ * .nav .logo-text { color: #fff; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav__links a {
  font-size: 0.83rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.85);
  transition: color 0.2s;
}
.nav__links a:not(.nav__cta):hover { color: #fff; }
.nav.scrolled .nav__links a { color: var(--text-muted); }
.nav.scrolled .nav__links a:not(.nav__cta):hover { color: var(--charcoal); }

.nav__cta {
  background: var(--charcoal) !important;
  color: #fff !important;
  padding: 0.55rem 1.4rem;
  border-radius: 100px;
  font-size: 0.8rem !important;
  font-weight: 500;
  transition: background 0.25s, transform 0.2s !important;
}
.nav__cta:hover { background: var(--slate) !important; transform: translateY(-1px); }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav__toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: #fff;
  transition: all 0.25s;
  transform-origin: center;
}
.nav.scrolled .nav__toggle span { background: var(--charcoal); }

/* ════════════════════════════════════
   HERO
════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 100%;
  gap: 2px;
}

.hero__grid-item {
  overflow: hidden;
  animation: fadeIn 1.2s var(--ease-out) both;
  animation-delay: var(--delay);
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(1.04); }
  to   { opacity: 1; transform: scale(1); }
}

.grid-img {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 8s ease;
}
.hero:hover .grid-img { transform: scale(1.04); }

.grid-img--1 { background-image: url('https://images.unsplash.com/photo-1542038784456-1ea8e935640e?w=800&q=70&auto=format'); background-color: #2a2a2a; }
.grid-img--2 { background-image: url('https://images.unsplash.com/photo-1574717024653-61fd2cf4d44d?w=800&q=70&auto=format'); background-color: #2a2a2a; }
.grid-img--3 { background-image: url('https://images.unsplash.com/photo-1467232004584-a241de8bcf5d?w=800&q=70&auto=format'); background-color: #2a2a2a; }
.grid-img--4 { background-image: url('https://images.unsplash.com/photo-1512941937669-90a1b58e7e9c?w=800&q=70&auto=format'); background-color: #2a2a2a; }

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(20,20,20,0.55) 0%,
    rgba(20,20,20,0.40) 50%,
    rgba(20,20,20,0.70) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: 0 8%;
  padding-top: var(--nav-h);
  color: #fff;
  max-width: 800px;
  animation: slideUp 1s 0.4s var(--ease-out) both;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero__eyebrow {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 1.5rem;
}

.hero__headline {
  color: #fff;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.2);
}

.hero__idea {
  display: block;
  font-size: clamp(5rem, 14vw, 11rem);
  font-style: italic;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 0.85;
  margin: 0;
  text-shadow: 0 4px 40px rgba(0,0,0,0.25);
}

.hero__to {
  display: block;
  font-size: clamp(2rem, 5vw, 4.5rem);
  opacity: 0.75;
  font-weight: 300;
  margin-top: 0.15em;
}

.hero__sub {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: rgba(255,255,255,0.8);
  margin-bottom: 2.5rem;
  font-weight: 300;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero__scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 8%;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 1rem;
  color: rgba(255,255,255,0.5);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: fadeIn 1s 1.2s both;
}
.hero__scroll-line {
  width: 48px;
  height: 1px;
  background: rgba(255,255,255,0.35);
  position: relative;
  overflow: hidden;
}
.hero__scroll-line::after {
  content: '';
  position: absolute;
  inset: 0;
  background: #fff;
  animation: scrollLine 2s 1.5s ease-in-out infinite;
}
@keyframes scrollLine {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(200%); }
}

/* ════════════════════════════════════
   MARQUEE
════════════════════════════════════ */
.marquee {
  background: var(--charcoal);
  overflow: hidden;
  padding: 1.1rem 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.marquee__track {
  display: flex;
  gap: 2rem;
  width: max-content;
  animation: marquee 28s linear infinite;
}
.marquee__track span {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  white-space: nowrap;
}
.marquee__track .dot { color: var(--slate-light); }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ════════════════════════════════════
   TRUSTED BY
════════════════════════════════════ */
.trusted {
  background: var(--ivory);
  padding: 3.5rem 0;
  border-bottom: 1px solid var(--border);
}

.trusted__label {
  text-align: center;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--taupe);
  margin-bottom: 2rem;
}

.trusted__logos {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2.5rem 4rem;
}

.trusted__logo-item {
  opacity: 0.55;
  transition: opacity 0.25s;
  display: flex;
  align-items: center;
}
.trusted__logo-item:hover { opacity: 1; }

.trusted__logo-item svg { height: 32px; width: auto; }

.trusted__wordmark {
  font-family: var(--font-serif);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--charcoal);
  text-align: center;
  letter-spacing: 0.01em;
}
.trusted__wordmark small {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--taupe);
}
.trusted__wordmark--mono {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ════════════════════════════════════
   SERVICES
════════════════════════════════════ */
.services {
  padding: 8rem 0;
  background: var(--ivory);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5px;
  background: var(--border);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.service-card {
  background: #fff;
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  transition: background 0.3s;
  outline-offset: -2px;
}
.service-card:hover, .service-card:focus-visible {
  background: var(--charcoal);
}
.service-card:hover h3,
.service-card:focus-visible h3 { color: #fff; }
.service-card:hover p,
.service-card:focus-visible p { color: rgba(255,255,255,0.65); }
.service-card:hover .service-card__list li,
.service-card:focus-visible .service-card__list li { color: rgba(255,255,255,0.5); border-color: rgba(255,255,255,0.12); }
.service-card:hover .service-card__link,
.service-card:focus-visible .service-card__link { color: var(--slate-light); }
.service-card:hover .service-card__num,
.service-card:focus-visible .service-card__num { color: rgba(255,255,255,0.08); }
.service-card:hover .service-card__icon,
.service-card:focus-visible .service-card__icon { color: rgba(255,255,255,0.7); }

/* Featured app prototyping card */
.service-card--featured {
  grid-column: 1 / -1;
  background: var(--charcoal);
  padding: 3rem;
}
.service-card--featured h3 { color: #fff; }
.service-card--featured > .service-card__featured-inner p { color: rgba(255,255,255,0.65); }
.service-card--featured .service-card__list li { color: rgba(255,255,255,0.5); border-color: rgba(255,255,255,0.1); }
.service-card--featured .service-card__num { color: rgba(255,255,255,0.06); }
.service-card--featured .service-card__icon { color: rgba(255,255,255,0.6); }
.service-card--featured .service-card__link { color: var(--slate-light); }
.service-card--featured:hover { background: #111; }

.service-card__featured-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: start;
}
.service-card__featured-left {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.service-card__featured-left p { color: rgba(255,255,255,0.65); }
.service-card__featured-right { padding-top: 0.5rem; }

.proto-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 1.2rem;
}
.proto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--r-md);
  overflow: hidden;
}
.proto-card {
  background: rgba(255,255,255,0.04);
  padding: 1.4rem 1.2rem;
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  transition: background 0.25s;
}
.proto-card:hover { background: rgba(255,255,255,0.09); }
.proto-card__icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: #fff;
}
.proto-card__icon--health { background: #1a6b9a; }
.proto-card__icon--edu    { background: #2a5c3f; }
.proto-card__icon--legal  { background: #6b4a1a; }
.proto-card__icon--fin    { background: #4a1a6b; }
.proto-card__icon svg { width: 18px; height: 18px; }
.proto-card > div { display: flex; flex-direction: column; gap: 0.3rem; }
.proto-card strong {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.1;
}
.proto-card span {
  font-size: 0.76rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.5;
}

.service-card--wide {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: flex-start;
  gap: 3rem;
}
.service-card--wide .service-card__text { flex: 1; }
.service-card--wide .service-card__icon { flex-shrink: 0; }

.service-card__num {
  position: absolute;
  top: 2rem;
  right: 2.5rem;
  font-family: var(--font-serif);
  font-size: 4rem;
  color: rgba(0,0,0,0.04);
  font-weight: 600;
  line-height: 1;
  transition: color 0.3s;
  pointer-events: none;
  user-select: none;
}

.service-card__icon {
  width: 44px;
  height: 44px;
  color: var(--slate);
  transition: color 0.3s;
}

.service-card h3 { margin-top: 0.5rem; transition: color 0.3s; }
.service-card p { color: var(--text-muted); font-size: 0.92rem; transition: color 0.3s; }

.service-card__list {
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.service-card__list li {
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 0.3rem 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.3s, border-color 0.3s;
}
.service-card__list--inline {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.4rem 1.2rem;
}
.service-card__list--inline li { border-bottom: none; }

.service-card__link {
  margin-top: auto;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--slate);
  transition: color 0.3s, gap 0.2s;
  align-self: flex-start;
}
.service-card--wide .service-card__link { align-self: center; flex-shrink: 0; }

/* ════════════════════════════════════
   CASE STUDIES / WORK
════════════════════════════════════ */
.work {
  background: var(--charcoal);
  padding: 8rem 0 6rem;
}

.case-studies {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* ── Featured Case Study ── */
.case-study--featured {
  position: relative;
  min-height: 600px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  overflow: hidden;
}

.case-study__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 6s ease;
}
.case-study--featured:hover .case-study__bg { transform: scale(1.04); }

.case-study__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(15,15,15,0.92) 0%,
    rgba(15,15,15,0.75) 50%,
    rgba(15,15,15,0.2) 100%
  );
}

.case-study__content {
  position: relative;
  z-index: 2;
  padding: 4rem 3.5rem 4rem 6%;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.case-study__meta {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.case-tag {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 0.25rem 0.6rem;
  border-radius: 100px;
}
.case-tag--year { color: var(--slate-light); border-color: rgba(90,127,159,0.4); }
.case-tag--dark { color: rgba(0,0,0,0.55); border-color: rgba(0,0,0,0.15); }

.case-study__title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: #fff;
  font-weight: 400;
  line-height: 1.15;
}

.case-study__desc {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
  max-width: 480px;
}

.case-study__results {
  display: flex;
  gap: 2.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  flex-wrap: wrap;
}

.case-result { display: flex; flex-direction: column; gap: 0.2rem; }
.case-result__num {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: #fff;
  font-weight: 600;
  line-height: 1;
}
.case-result__label {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.04em;
}

.case-study__screens {
  position: relative;
  z-index: 2;
  padding: 3rem 6% 3rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-end;
}

.case-study__screen {
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
}
.case-study__screen--main {
  width: 78%;
  transform: translateX(1rem) rotate(1.5deg);
  transition: transform 0.5s var(--ease-out);
}
.case-study__screen--secondary {
  width: 55%;
  transform: translateX(-1rem) rotate(-1deg);
  transition: transform 0.5s var(--ease-out);
  align-self: flex-start;
  margin-left: 3rem;
}
.case-study--featured:hover .case-study__screen--main { transform: translateX(0) rotate(0.5deg); }
.case-study--featured:hover .case-study__screen--secondary { transform: translateX(0) rotate(-0.3deg); }

.case-study__screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Phone Mockup ── */
.phone-mockup {
  position: relative;
  z-index: 2;
  align-self: center;
  filter: drop-shadow(0 32px 64px rgba(0,0,0,0.6));
}

.phone-mockup__frame {
  width: 220px;
  background: #0e0e0e;
  border-radius: 38px;
  padding: 14px;
  border: 1.5px solid rgba(255,255,255,0.12);
  position: relative;
}

.phone-mockup__notch {
  width: 80px;
  height: 26px;
  background: #0e0e0e;
  border-radius: 0 0 20px 20px;
  margin: 0 auto 8px;
  position: relative;
  z-index: 2;
}

.phone-mockup__screen {
  background: #fff;
  border-radius: 26px;
  overflow: hidden;
  height: 400px;
}

.phone-mockup__home-bar {
  width: 60px;
  height: 4px;
  background: rgba(255,255,255,0.25);
  border-radius: 2px;
  margin: 10px auto 0;
}

/* App UI inside phone */
.app-ui {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #faf8f5;
  font-family: var(--font-sans);
}

.app-ui__header {
  padding: 14px 14px 8px;
  background: #fff;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-ui__logo {
  height: 22px;
  width: auto;
  object-fit: contain;
}

.app-ui__hero {
  position: relative;
  height: 130px;
  flex-shrink: 0;
  overflow: hidden;
}

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

.app-ui__story-card {
  position: absolute;
  inset: auto 0 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75), transparent);
  padding: 10px 10px 8px;
  color: #fff;
}

.app-ui__tag {
  font-size: 7px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.7;
  display: block;
  margin-bottom: 2px;
}

.app-ui__story-title {
  font-family: var(--font-serif);
  font-size: 11px;
  line-height: 1.3;
  margin-bottom: 2px;
}

.app-ui__meta {
  font-size: 7px;
  opacity: 0.55;
}

.app-ui__section-title {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #999;
  padding: 10px 12px 4px;
}

.app-ui__list {
  flex: 1;
  overflow: hidden;
  padding: 0 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.app-ui__list-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.app-ui__list-dot {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  flex-shrink: 0;
}
.app-ui__list-dot--1 { background: linear-gradient(135deg, #c8a882, #e8d5b8); }
.app-ui__list-dot--2 { background: linear-gradient(135deg, #8ab5a0, #b8d5c8); }
.app-ui__list-dot--3 { background: linear-gradient(135deg, #a08ab5, #c8b8d5); }

.app-ui__list-name {
  font-size: 8.5px;
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1.3;
  margin-bottom: 1px;
}

.app-ui__list-sub {
  font-size: 7px;
  color: #999;
}

.app-ui__nav {
  display: flex;
  justify-content: space-around;
  padding: 8px 4px;
  background: #fff;
  border-top: 1px solid rgba(0,0,0,0.06);
  margin-top: auto;
}

.app-ui__nav-item {
  font-size: 7px;
  font-weight: 500;
  color: #bbb;
  text-align: center;
}
.app-ui__nav-item--active { color: #3D5A73; font-weight: 700; }

/* ── Case Study Card Grid ── */
.case-studies__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}

.case-study--card {
  position: relative;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  cursor: default;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s;
}
.case-study--card:hover { transform: translateY(-4px); }

/* Light card variant */
.case-study--card-light {
  background: var(--ivory);
  border: 1.5px solid rgba(0,0,0,0.06);
}
.case-study--card-light:hover { box-shadow: 0 16px 48px rgba(0,0,0,0.1); }

.case-study__card-accent {
  height: 5px;
  width: 100%;
  flex-shrink: 0;
}
.case-study__card-accent--gdpr  { background: linear-gradient(90deg, #b8860b, #d4a843); }
.case-study__card-accent--kcl   { background: linear-gradient(90deg, #1a2a6c, #4a6fa5); }
.case-study__card-accent--nhs   { background: linear-gradient(90deg, #005eb8, #41b6e6); }

.case-study__card-content {
  position: relative;
  z-index: 2;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  flex: 1;
  justify-content: flex-end;
}

.case-study__card-content h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--charcoal);
  font-weight: 400;
  line-height: 1.2;
}
.case-study__card-content p {
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.case-tag--light-card {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--taupe);
  align-self: flex-start;
}

.case-study__card-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.case-study__card-footer--light {
  border-top-color: var(--border);
}

.case-chip {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  background: rgba(255,255,255,0.06);
  padding: 0.3rem 0.65rem;
  border-radius: 100px;
}

.case-chip--light {
  color: var(--text-muted);
  background: rgba(0,0,0,0.04);
  border: 1px solid var(--border);
}

.work__cta { text-align: center; margin-top: 4rem; }

/* ════════════════════════════════════
   PHOTOGRAPHY PORTFOLIO
════════════════════════════════════ */
.portfolio {
  padding: 8rem 0 6rem;
  background: var(--ivory);
}

.portfolio__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 300px;
  gap: 6px;
  padding: 0 5%;
  margin-top: 1rem;
}

.portfolio__item {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-sm);
  background: var(--warm-mid);
  cursor: pointer;
}

.portfolio__item:nth-child(1) { grid-column: span 4; grid-row: span 2; }
.portfolio__item:nth-child(2) { grid-column: span 4; }
.portfolio__item:nth-child(3) { grid-column: span 4; }
.portfolio__item:nth-child(4) { grid-column: span 4; }
.portfolio__item:nth-child(5) { grid-column: span 4; }
.portfolio__item:nth-child(6) { grid-column: span 4; }
.portfolio__item:nth-child(7) { grid-column: span 4; }
.portfolio__item:nth-child(8) { grid-column: span 4; }

.portfolio__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease-out);
}
.portfolio__item:hover img { transform: scale(1.05); }

.portfolio__label {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  z-index: 2;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.3s, transform 0.3s;
}
.portfolio__item:hover .portfolio__label { opacity: 1; transform: translateY(0); }

.portfolio__label span {
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(6px);
  color: var(--charcoal);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border-radius: 100px;
}

.portfolio__cta { text-align: center; margin-top: 3rem; }

/* ════════════════════════════════════
   ABOUT
════════════════════════════════════ */
.about {
  padding: 8rem 0;
  background: var(--ivory);
}

.about__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

.about__visual {
  position: relative;
}

.about__photo-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  position: relative;
  z-index: 1;
}

.about__photo {
  aspect-ratio: 3/4;
  border-radius: var(--r-md);
  background-size: cover;
  background-position: center;
}

.about__photo--1 {
  background-image: url('images/jamie.jpg');
  transform: translateY(-2rem);
}
.about__photo--2 {
  background-image: url('images/mariah.jpg');
  transform: translateY(2rem);
}

.about__accent-text {
  position: absolute;
  bottom: -1.5rem;
  left: -1rem;
  font-family: var(--font-serif);
  font-size: 5rem;
  font-weight: 600;
  color: rgba(0,0,0,0.04);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

.about__content { display: flex; flex-direction: column; gap: 1.2rem; }
.about__lead { font-size: 1.1rem; font-weight: 400; color: var(--text); }
.about__content p:not(.about__lead):not(.eyebrow) { color: var(--text-muted); font-size: 0.95rem; }

.about__stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.stat { display: flex; flex-direction: column; gap: 0.2rem; }
.stat__num {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--charcoal);
  line-height: 1;
}
.stat__label {
  font-size: 0.75rem;
  color: var(--text-muted);
  max-width: 100px;
  line-height: 1.4;
}

/* ════════════════════════════════════
   PROCESS
════════════════════════════════════ */
.process {
  padding: 8rem 0;
  background: var(--warm-mid);
}

.process__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  position: relative;
}

.process__step {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  position: relative;
}

.step__circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1.5px solid var(--charcoal);
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--charcoal);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  background: var(--warm-mid);
}

.step__line {
  position: absolute;
  top: 26px;
  left: 52px;
  right: -2rem;
  height: 1px;
  background: var(--charcoal);
  opacity: 0.15;
}
.process__step:last-child .step__line { display: none; }

.process__step h3 { font-size: 1.3rem; }
.process__step p { font-size: 0.88rem; color: var(--text-muted); }

/* ════════════════════════════════════
   TESTIMONIALS
════════════════════════════════════ */
.testimonials {
  background: var(--slate);
  padding: 7rem 0 5rem;
  overflow: hidden;
}

.testimonials__carousel-wrap {
  overflow: hidden;
  margin-top: 3rem;
  cursor: grab;
  user-select: none;
}
.testimonials__carousel-wrap:active { cursor: grabbing; }

.testimonials__track {
  display: flex;
  gap: 1.5rem;
  padding: 0 calc((100vw - 1160px) / 2);
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.testimonial {
  flex: 0 0 420px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r-md);
  padding: 2.5rem;
  color: rgba(255,255,255,0.8);
  font-family: var(--font-serif);
  font-size: 1.05rem;
  line-height: 1.65;
  font-style: italic;
  transition: background 0.3s, opacity 0.5s;
}
.testimonial p { margin: 0; }
.testimonial footer {
  margin-top: 1.5rem;
  font-style: normal;
  font-family: var(--font-sans);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.testimonial footer strong { font-size: 0.85rem; font-weight: 600; color: #fff; }
.testimonial footer span { font-size: 0.75rem; color: rgba(255,255,255,0.45); letter-spacing: 0.05em; }

.testimonials__dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2.5rem;
}
.testimonials__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s, width 0.3s;
}
.testimonials__dot--active {
  background: #fff;
  width: 22px;
  border-radius: 3px;
}

/* ════════════════════════════════════
   CONTACT
════════════════════════════════════ */
.contact {
  padding: 8rem 0;
  background: var(--ivory);
}

.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 6rem;
  align-items: start;
}

.contact__text { display: flex; flex-direction: column; gap: 1.2rem; }
.contact__text p { color: var(--text-muted); font-size: 0.95rem; }

.contact__details {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.contact__link {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--slate);
  transition: color 0.2s;
}
.contact__link:hover { color: var(--charcoal); }

/* Form */
.contact__form { display: flex; flex-direction: column; gap: 1.2rem; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  background: #fff;
  font-family: var(--font-sans);
  font-size: 1rem; /* 16px — prevents iOS auto-zoom on focus */
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
  appearance: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: #bbb; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--slate); }

.form-group textarea { resize: vertical; min-height: 120px; }
.form-group select { cursor: pointer; }

/* ════════════════════════════════════
   FOOTER
════════════════════════════════════ */
.footer {
  background: var(--charcoal);
  color: rgba(255,255,255,0.6);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: 4rem;
  padding: 5rem 0 4rem;
}

.footer__brand { display: flex; flex-direction: column; gap: 1rem; }
.footer__brand .nav__logo .logo-mark { background: rgba(255,255,255,0.12); }
.footer__brand .logo-text { color: #fff; }
.footer__brand p { font-size: 0.85rem; line-height: 1.6; max-width: 240px; }

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

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.footer__col h4 {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 0.5rem;
}
.footer__col a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
  transition: color 0.2s;
}
.footer__col a:hover { color: #fff; }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 1.5rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
}

/* ════════════════════════════════════
   SCROLL REVEAL
════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ════════════════════════════════════
   RESPONSIVE
════════════════════════════════════ */
@media (max-width: 1024px) {
  .services__grid { grid-template-columns: 1fr; }
  .service-card--wide { flex-direction: column; gap: 1.5rem; }
  .service-card--wide .service-card__link { align-self: flex-start; }
  .service-card__featured-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .proto-grid { grid-template-columns: 1fr; }

  .case-study--featured { grid-template-columns: 1fr; min-height: auto; }
  .case-study__screens { display: none; }
  .case-study__content { padding: 4rem 5%; }
  .case-studies__grid { grid-template-columns: 1fr; }
  .case-study--card { min-height: 320px; }
  .portfolio__grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .portfolio__item { grid-column: span 1 !important; grid-row: span 1 !important; height: 240px; }
  .portfolio__item:nth-child(1) { grid-row: span 2 !important; height: auto; }

  .about__inner { grid-template-columns: 1fr; gap: 4rem; }
  .about__visual { max-width: 500px; margin: 0 auto; }

  .process__steps { grid-template-columns: repeat(2, 1fr); }
  .step__line { display: none; }

  .testimonials__track { padding: 0 1.5rem; }
  .testimonial { flex: 0 0 85vw; }

  .contact__inner { grid-template-columns: 1fr; gap: 3rem; }
  .footer__inner { grid-template-columns: 1fr; gap: 3rem; }
}

@media (max-width: 768px) {
  :root { --nav-h: 64px; }

  .nav__links {
    position: fixed;
    inset: var(--nav-h) 0 0;
    background: rgba(26,26,26,0.97);
    backdrop-filter: blur(16px);
    flex-direction: column;
    justify-content: center;
    gap: 2.5rem;
    transform: translateX(100%);
    transition: transform 0.4s var(--ease-out);
  }
  .nav__links.open { transform: translateX(0); }
  .nav__links a { font-size: 1.2rem; color: rgba(255,255,255,0.8) !important; }
  .nav__cta { font-size: 1.1rem !important; padding: 0.7rem 2rem; }
  .nav__toggle { display: flex; }

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

  .work__bento {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  .bento-item { grid-column: span 1 !important; grid-row: span 1 !important; height: 200px; }
  .bento-item--tall { grid-row: span 2 !important; height: auto; }
  .bento-item--wide { grid-column: span 2 !important; }

  .about__photo-wrap { grid-template-columns: 1fr 1fr; }
  .about__photo--1, .about__photo--2 { transform: none; }

  .process__steps { grid-template-columns: 1fr; gap: 2.5rem; }

  .form-row { grid-template-columns: 1fr; }

  .footer__nav { grid-template-columns: repeat(2, 1fr); }
  .footer__bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
}

@media (max-width: 480px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__grid-item:nth-child(n+2) { display: none; }
  .hero__content { padding: 0 6%; padding-top: var(--nav-h); }
  .hero__actions { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }

  .about__stats { flex-direction: column; gap: 1.5rem; }

  /* Trusted logos — horizontal scroll on small screens */
  .trusted__logos {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding: 0 1.25rem 1rem;
    gap: 2rem 3rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .trusted__logos::-webkit-scrollbar { display: none; }
  .trusted__logo-item { flex-shrink: 0; }

  /* Section headings — scale down on small screens */
  h2 { font-size: clamp(1.8rem, 6vw, 2.4rem); }

  /* Service cards — more breathing room */
  .service-card { padding: 2rem 1.5rem; }

  /* Testimonials — full width cards */
  .testimonial { flex: 0 0 92vw; }

  /* Process steps — tighter */
  .process__step { padding: 1.75rem 1.5rem; }

  /* Contact form — better tap targets */
  input, select, textarea {
    font-size: 16px; /* prevents iOS zoom on focus */
    min-height: 48px;
  }
  textarea { min-height: 120px; }
}

/* ── iPhone safe area insets (notch + home bar) ── */
@supports (padding: env(safe-area-inset-bottom)) {
  .nav {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }
  .footer__bottom {
    padding-bottom: calc(1.5rem + env(safe-area-inset-bottom));
  }
  .nav__links {
    padding-bottom: env(safe-area-inset-bottom);
  }
}

/* ── Minimum tap target size for all interactive elements ── */
@media (max-width: 768px) {
  a, button, [role="button"] {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
  .nav__links a {
    min-height: 52px;
    justify-content: center;
  }
  .testimonials__dot {
    min-width: 44px;
    min-height: 44px;
  }
}

/* ── Reduce motion for accessibility ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .marquee__track { animation: none; }
}
