/* ═══════════════════════════════════════════
   KOTRYNA CREATES — rebuilt to match Lofty Lab
   Exact color tokens, fonts and layout from the template source
   ═══════════════════════════════════════════ */

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
img  { display: block; max-width: 100%; }
a    { text-decoration: none; color: inherit; }
ul   { list-style: none; }

/* ── DESIGN TOKENS — new colour palette ── */
:root {
  --blue:    #b0c8ff;
  --blue-bg: #b0c8ff;
  --orange:  #facce3;   /* blush pink */
  --green:   #99c583;   /* sage green */
  --yellow:  #fcf5c0;   /* cream */
  --purple:  #d9c2ff;   /* lavender */
  --amber:   #f9d27a;   /* warm amber */
  --navy:    #173360;   /* dark navy */
  --dark:    #173360;
  --grey:    #596078;
  --lgrey:   #9a9da6;
  --border:  #d3d5d9;
  --bg:      #f1f2f3;
  --white:   #ffffff;
  --on-orange: #173360;
  --on-green:  #173360;
  --on-yellow: #173360;
  --on-purple: #173360;
  --font-title: 'New Title', sans-serif;
  --font-body:  'Inter', sans-serif;
  --font-hand:  'Caveat', cursive;
}

body { font-family: var(--font-body); background: var(--white); color: var(--navy); overflow-x: hidden; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ═══ NAVIGATION ═══ */
.nav-wrap {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 16px 24px; display: flex; justify-content: center; pointer-events: none;
}
.nav-pill {
  pointer-events: all;
  position: relative;
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 20px 32px rgba(3,15,46,0.1);
  padding: 12px 12px 12px 24px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px; width: 100%; max-width: 900px;
}
.nav-logo { font-weight: 700; font-size: 16px; color: var(--navy); letter-spacing: -0.03em; white-space: nowrap; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-btn {
  display: flex; align-items: center; justify-content: center;
  padding: 0 16px; height: 58px; border-radius: 12px; white-space: nowrap;
  font-weight: 700; font-size: 14px; letter-spacing: -0.04em; color: var(--navy);
  transition: background 0.2s, color 0.2s; text-align: center;
}
.nav-btn--active, .nav-btn:hover { background: var(--blue); color: var(--white); }

/* hamburger toggle — hidden on desktop, shown on mobile */
.nav-toggle {
  display: none;
  flex-direction: column; justify-content: center; gap: 5px;
  width: 46px; height: 46px; padding: 0 11px;
  background: transparent; border: none; border-radius: 12px; cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block; height: 2.5px; width: 100%;
  background: var(--blue); border-radius: 2px;
  transition: transform 0.25s, opacity 0.2s;
}
.nav-pill.open .nav-toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-pill.open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-pill.open .nav-toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ═══ BUTTONS ═══ */
.btn-primary {
  display: inline-flex; align-items: center;
  background: var(--blue); color: var(--white);
  font-weight: 700; font-size: 18px; letter-spacing: -0.04em;
  padding: 16px 32px; border-radius: 100px; border: 2px solid var(--navy);
  transition: transform 0.2s, box-shadow 0.2s; box-shadow: 0 4px 20px rgba(3,15,46,0.2);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 10px 32px rgba(3,15,46,0.28); }
.btn-primary--large { font-size: 20px; padding: 20px 44px; }

.btn-ghost-white {
  display: inline-flex; align-items: center;
  background: transparent; color: var(--white);
  font-weight: 700; font-size: 18px; letter-spacing: -0.04em;
  padding: 16px 32px; border-radius: 100px; border: 1px solid rgba(255,255,255,0.5);
  transition: background 0.2s, border-color 0.2s;
}
.btn-ghost-white:hover { background: rgba(255,255,255,0.15); border-color: var(--white); }

.btn-ghost-dark {
  display: inline-flex; align-items: center;
  background: transparent; color: var(--navy);
  font-weight: 700; font-size: 16px; letter-spacing: -0.03em;
  padding: 12px 22px; border-radius: 100px; border: 1px solid rgba(3,15,46,0.2);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  flex-shrink: 0; align-self: flex-end;
}
.btn-ghost-dark:hover { background: var(--blue); color: var(--white); border-color: var(--navy); }

/* CTA pill — matches the hero buttons: blue + shadow + yellow text,
   turns yellow with navy text on hover */
.btn-cta {
  display: inline-flex; align-items: center;
  background: var(--blue); color: var(--white);
  font-weight: 700; font-size: 16px; letter-spacing: -0.04em;
  padding: 14px 30px; border-radius: 100px; border: none;
  box-shadow: 0 4px 20px rgba(3,15,46,0.2);
  transition: background 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
  flex-shrink: 0; align-self: flex-end;
}
.btn-cta:hover {
  background: var(--yellow); color: var(--navy);
  transform: translateY(-3px); box-shadow: 0 10px 32px rgba(3,15,46,0.28);
}

/* ═══ SHARED ═══ */
.section-label { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue); margin-bottom: 20px; }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 48px; }

.section-title {
  font-family: var(--font-title);
  font-size: clamp(72px, 9vw, 150px);
  font-weight: 700; line-height: 0.82; letter-spacing: 0em;
  text-transform: uppercase; color: var(--navy);
}

.chip { display: inline-block; font-weight: 700; font-size: 14px; letter-spacing: -0.03em; padding: 8px 18px; border-radius: 24px; white-space: nowrap; }
.chip-blue   { background: var(--blue);   color: var(--navy); }
.chip-orange { background: var(--orange); color: var(--on-orange); }
.chip-green  { background: var(--green);  color: var(--on-green); }
.chip-yellow { background: var(--yellow); color: var(--on-yellow); }
.chip-purple { background: var(--purple); color: var(--on-purple); }

/* ═══ CLOUD DIVIDER ═══ */
.cloud-divider { position: absolute; bottom: -2px; left: 0; right: 0; display: flex; align-items: flex-end; pointer-events: none; z-index: 2; }
.cloud-blob { flex: 1; height: 80px; border-radius: 50% 50% 0 0; }
.cloud-blob--wide { flex: 1.5; height: 60px; }
.cloud-divider--white .cloud-blob { background: var(--white); }
.cloud-divider--dark  .cloud-blob { background: var(--blue); }

/* ═══ HERO ═══ */
.hero { position: relative; min-height: 100vh; background: var(--blue-bg); display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.hero-cloud-bg {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 65% 55% at 85% 15%, rgba(255,255,255,0.18) 0%, transparent 65%),
              radial-gradient(ellipse 45% 40% at 5% 85%,  rgba(3,15,46,0.12)    0%, transparent 60%);
}
.hero-inner {
  position: relative; z-index: 2;
  max-width: 1200px; margin: 0 auto; width: 100%;
  padding: 130px 24px 130px;
  height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
}

.hero-title {
  font-family: var(--font-title);
  font-size: clamp(44px, 7vw, 100px);
  font-weight: 700; line-height: 0.9; letter-spacing: 0em;
  text-transform: uppercase; color: var(--white);
  margin-bottom: 26px; display: flex; flex-direction: column;
}
.hero-line { display: block; opacity: 0; transform: translateY(32px); animation: slideUp 0.7s cubic-bezier(0.22,1,0.36,1) forwards; }
.hero-line:nth-child(1) { animation-delay: 0.1s; }
.hero-line:nth-child(2) { animation-delay: 0.25s; }
.hero-line:nth-child(3) { animation-delay: 0.4s; }
.hero-line--accent { color: var(--yellow); }
@keyframes slideUp { to { opacity: 1; transform: none; } }

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; opacity: 0; animation: slideUp 0.6s ease forwards 0.6s; }
.hero-actions .btn-primary,
.hero-actions .btn-ghost-white { font-size: 16px; padding: 13px 26px; }

/* ═══ ABOUT ═══ */
.about-section { background: var(--white); padding: 100px 0 0; }

.about-bigtext {
  font-size: clamp(18px, 2.1vw, 28px);
  font-weight: 500; line-height: 1.4; letter-spacing: -0.02em;
  color: var(--navy); margin-bottom: 40px; max-width: 820px;
}
.about-bigtext em { font-style: normal; color: var(--blue); }

.about-photo-block {
  position: relative; margin-top: 40px;
  height: auto; aspect-ratio: auto;
  overflow: hidden; border-radius: 40px 40px 0 0;
}
.about-photo-img { width: 100%; height: auto; background: var(--bg); }
.about-photo-img img { width: 100%; height: auto; display: block; object-fit: cover; }

.about-tag {
  position: absolute;
  font-family: var(--font-hand);
  font-size: 22px;
  font-weight: 700;
  padding: 14px 24px;
  white-space: nowrap;
}

/* Organic blob shapes — inspired by the K logo's fluid rounded forms */
.about-tag--orange {
  background: var(--orange);
  color: var(--on-orange);
  top: 12%;
  left: 6%;
  transform: rotate(-8deg);
  border-radius: 62% 38% 55% 45% / 48% 60% 40% 52%;
}

.about-tag--yellow {
  background: var(--yellow);
  color: var(--on-yellow);
  bottom: 12%;
  right: 6%;
  transform: rotate(7deg);
  border-radius: 45% 55% 38% 62% / 58% 42% 58% 42%;
}

/* ═══ WORK ═══ */
.work-section { background: var(--blue-bg); padding: 100px 0 120px; }
.work-section .section-head { margin-bottom: 56px; }
.work-stack { padding: 0 24px; }

.work-card {
  position: sticky; top: 90px;
  background: var(--white); border-radius: 40px;
  padding: 56px 52px; overflow: hidden;
  display: grid; grid-template-columns: 1fr 1fr; column-gap: 56px;
  margin-bottom: 16px;
  box-shadow: 0 12px 48px rgba(3,15,46,0.10);
  will-change: transform; transform-origin: center top;
}
.work-card:nth-child(1) { z-index: 1; }
.work-card:nth-child(2) { z-index: 2; }
.work-card:nth-child(3) { z-index: 3; }
.work-card:nth-child(4) { z-index: 4; }
.work-card:nth-child(5) { z-index: 5; }
.work-card:last-child { margin-bottom: 0; }

.work-header { display: flex; flex-direction: column; gap: 16px; }
.work-category { font-weight: 700; font-size: clamp(32px, 4vw, 56px); letter-spacing: -0.04em; color: var(--navy); line-height: 1; }
.work-projects { display: flex; flex-direction: column; }
.work-projects li {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 4px;
  border-bottom: 1px solid rgba(3,15,46,0.12);
  color: var(--navy);
  font-size: clamp(17px, 1.7vw, 23px); font-weight: 700; letter-spacing: -0.03em;
  line-height: 1.1; cursor: pointer;
  transition: color 0.2s, padding 0.25s cubic-bezier(0.34,1.4,0.64,1);
}
.work-projects li:first-child { border-top: 1px solid rgba(3,15,46,0.12); }
/* always-visible arrow — signals each row opens a project page */
.work-projects li::after {
  content: "→";
  flex-shrink: 0; font-size: 19px; font-weight: 700;
  color: rgba(3,15,46,0.3);
  transition: transform 0.25s cubic-bezier(0.34,1.4,0.64,1), color 0.2s;
}
.work-projects li:hover { color: var(--blue); padding-left: 12px; }
.work-projects li:hover::after { color: var(--blue); transform: translateX(5px); }
.work-icon { display: none; }

.work-image { overflow: hidden; border-radius: 32px; aspect-ratio: 16 / 9; }
.work-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.work-card:hover .work-image img { transform: scale(1.04); }

/* same slide-in values as the template */
.card[data-dir="left"]  { opacity: 0; transform: translate3d(-180px, 0, 0) scale(0.85); transition: transform 0.75s cubic-bezier(0.34,1.2,0.64,1), opacity 0.5s ease; }
.card[data-dir="right"] { opacity: 0; transform: translate3d(180px, 0, 0)  scale(0.85); transition: transform 0.75s cubic-bezier(0.34,1.2,0.64,1), opacity 0.5s ease; }
.card[data-dir].in-view { opacity: 1; transform: translate3d(0,0,0) scale(1); }

.card { display: flex; flex-direction: column; border-radius: 24px; overflow: hidden; background: var(--bg); cursor: pointer; will-change: transform; transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1); }
.card:hover { transform: translateY(-8px) scale(1.01); }

.card-img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--white); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.card:hover .card-img img { transform: scale(1.06); }
.card-img--empty { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #e8e8e8, #d8d8d8); font-size: 13px; color: #bbb; font-weight: 600; letter-spacing: 0.03em; }

.card-ov { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(3,15,46,0); font-weight: 700; font-size: 15px; color: transparent; transition: background 0.3s, color 0.3s; }
.card:hover .card-ov { background: rgba(3,15,46,0.42); color: var(--white); }

.card-info { padding: 20px 24px; display: flex; flex-direction: column; gap: 6px; }
.card-cat  { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--lgrey); }
.card-name { font-size: 20px; font-weight: 700; letter-spacing: -0.04em; color: var(--navy); line-height: 1.1; }
.card-year { font-size: 13px; color: var(--lgrey); }

/* ═══ SERVICES ═══ */
.services-section { background: var(--blue-bg); padding-top: 100px; }
.services-section .section-head { margin-bottom: 56px; }
.services-stack { padding: 0 24px 120px; }

.svc-card {
  position: sticky; top: 90px;
  height: 68vh; min-height: 460px;
  border-radius: 40px 24px; overflow: hidden;
  display: grid; grid-template-columns: 1fr 1fr;
  margin-bottom: 16px;
  box-shadow: 0 12px 48px rgba(3,15,46,0.10);
  will-change: transform; transform-origin: center top;
}
.svc-card:nth-child(1) { z-index: 1; }
.svc-card:nth-child(2) { z-index: 2; }
.svc-card:nth-child(3) { z-index: 3; }
.svc-card:nth-child(4) { z-index: 4; }
.svc-card:nth-child(5) { z-index: 5; }
.svc-card:last-child   { margin-bottom: 0; }

.svc-card--blue   { background: var(--blue); }
.svc-card--orange { background: var(--orange); }
.svc-card--green  { background: var(--green); }
.svc-card--yellow { background: var(--yellow); }
.svc-card--purple { background: var(--purple); }

.svc-left { padding: 56px 52px; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.svc-header { display: flex; flex-direction: column; gap: 16px; }
.svc-title { font-weight: 700; font-size: clamp(32px, 4vw, 56px); letter-spacing: -0.04em; color: var(--navy); line-height: 1; }
.svc-desc  { font-size: 17px; line-height: 1.65; color: rgba(3,15,46,0.65); max-width: 380px; }
.svc-list  { }
.svc-list li { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid rgba(3,15,46,0.10); font-size: 16px; font-weight: 600; color: var(--navy); }
.svc-list li:last-child { border-bottom: none; }
.svc-num   { font-size: 12px; font-weight: 700; letter-spacing: 0.05em; color: rgba(3,15,46,0.35); min-width: 28px; }
.svc-right { overflow: hidden; }
.svc-right img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.svc-card:hover .svc-right img { transform: scale(1.04); }
.svc-right--empty { background: rgba(3,15,46,0.06); }

/* ═══ SKILLS TICKER ═══ */
.skills-section { background: var(--white); padding: 100px 0 40px; }
.skills-section .section-title { margin-bottom: 56px; }
.ticker-mask {
  position: relative;
  overflow: hidden;
}
.ticker-mask::before,
.ticker-mask::after {
  content: "";
  position: absolute; top: 0; bottom: 0;
  width: 90px; z-index: 2; pointer-events: none;
}
.ticker-mask::before { left: 0;  background: linear-gradient(90deg,  var(--white), rgba(255,255,255,0)); }
.ticker-mask::after  { right: 0; background: linear-gradient(270deg, var(--white), rgba(255,255,255,0)); }
.ticker-track { display: flex; gap: 12px; width: max-content; animation: ticker 28s linear infinite; padding: 8px 0; backface-visibility: hidden; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ═══ PROCESS ═══ */
.process-section { background: var(--white); padding: 40px 0 100px; }
.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.process-card { border-radius: 40px; padding: 40px 32px; display: flex; flex-direction: column; gap: 20px; min-height: 320px; }
.process-card--green  { background: var(--green); }
.process-card--blue   { background: var(--blue); }
.process-card--orange { background: var(--amber); }
.process-num  { font-size: 14px; font-weight: 700; letter-spacing: 0.05em; color: rgba(3,15,46,0.45); }
.process-name { font-size: clamp(28px, 3vw, 40px); font-weight: 700; letter-spacing: -0.04em; color: var(--navy); line-height: 1; margin-top: auto; }
.process-desc { font-size: 16px; line-height: 1.65; color: rgba(3,15,46,0.65); font-weight: 500; }

/* ═══ CTA ═══ */
.cta-section { background: var(--blue); padding: 120px 24px; text-align: center; }
.cta-inner   { display: flex; flex-direction: column; align-items: center; }
.cta-eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.4); margin-bottom: 24px; }
.cta-title { font-family: var(--font-title); font-size: clamp(48px, 8vw, 104px); font-weight: 700; line-height: 0.88; text-transform: uppercase; color: var(--white); margin-bottom: 28px; }
.cta-pill-row { display: block; }
.cta-pill { display: inline-block; background: var(--white); color: var(--navy); border-radius: 100px; padding: 0 24px; }
.cta-sub { font-size: 18px; color: rgba(255,255,255,0.5); max-width: 440px; line-height: 1.65; margin-bottom: 48px; }
.cta-section .btn-primary { background: var(--blue); border-color: var(--blue); color: var(--yellow); }
.cta-section .btn-primary:hover { background: var(--white); border-color: var(--white); }

/* ═══ FOOTER ═══ */
.footer { background: var(--white); border-radius: 24px 24px 0 0; padding: 48px 0 32px; }
.footer-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 40px; }
.footer-card { display: flex; align-items: flex-end; padding: 28px 24px; border-radius: 24px; font-family: var(--font-title); font-size: clamp(28px, 3.5vw, 56px); font-weight: 700; text-transform: uppercase; color: var(--navy); min-height: 160px; transition: transform 0.2s, box-shadow 0.2s; }
.footer-card:hover { transform: translateY(-5px); box-shadow: 0 12px 32px rgba(3,15,46,0.18); }
.footer-card--blue   { background: var(--blue); }
.footer-card--orange { background: var(--amber); }
.footer-card--green  { background: var(--green); }
.footer-card--purple { background: var(--purple); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 24px; border-top: 1px solid rgba(3,15,46,0.1); }
.footer-id { display: flex; flex-direction: column; gap: 4px; }
.footer-name  { font-weight: 700; font-size: 16px; color: var(--navy); letter-spacing: -0.03em; }
.footer-email { font-size: 13px; color: rgba(3,15,46,0.5); transition: color 0.2s; }
.footer-email:hover { color: var(--navy); }
.footer-copy  { font-size: 13px; color: rgba(3,15,46,0.4); }
.footer-socials { display: flex; gap: 20px; }
.footer-socials a { font-size: 14px; font-weight: 500; color: rgba(3,15,46,0.5); transition: color 0.2s; }
.footer-socials a:hover { color: var(--navy); }

/* ═══ MODAL ═══ */
.modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity 0.25s; }
.modal.open { opacity: 1; pointer-events: all; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(3,15,46,0.75); backdrop-filter: blur(8px); cursor: pointer; }
.modal-box { position: relative; z-index: 1; background: var(--white); border-radius: 40px; max-width: 900px; width: calc(100% - 48px); max-height: 88vh; overflow-y: auto; padding: 48px; transform: scale(0.9) translateY(32px); transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1); }
.modal.open .modal-box { transform: none; }
.modal-close { position: absolute; top: 20px; right: 20px; width: 40px; height: 40px; border-radius: 50%; background: var(--bg); border: none; font-size: 17px; cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--navy); transition: background 0.2s; }
.modal-close:hover { background: var(--border); }
.modal-meta { display: flex; gap: 12px; margin-bottom: 12px; }
.modal-cat  { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--grey); background: var(--bg); padding: 4px 12px; border-radius: 100px; }
.modal-year { font-size: 14px; color: var(--lgrey); }
.modal-title { font-family: var(--font-title); font-size: clamp(36px, 5vw, 64px); text-transform: uppercase; color: var(--navy); margin-bottom: 24px; line-height: 0.9; }
.modal-desc  { font-size: 16px; line-height: 1.7; color: var(--grey); margin-bottom: 32px; }
.modal-images { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.modal-images img { width: 100%; border-radius: 16px; object-fit: cover; }

/* ═══ SCROLL REVEAL ═══ */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ═══ RESPONSIVE ═══ */
@media (max-width: 900px) {
  /* text left, image right — taller card so text has room; image fills full height */
  .svc-card { grid-template-columns: 1.5fr 1fr; height: auto; min-height: 420px; align-items: stretch; }
  .svc-right { height: 100%; }
  .svc-right img { width: 100%; height: 100%; object-fit: cover; }
  .svc-left  { padding: 30px 24px; gap: 18px; }
  .svc-title { font-size: clamp(19px, 4vw, 28px); }
  .svc-desc  { font-size: 14px; }
  .svc-list li { padding: 9px 0; font-size: 14px; }
  .services-stack { padding-bottom: 36px; }
  .work-section { padding-top: 48px; }

  /* Work cards: uniform height so the sticky stack hides each card cleanly.
     Image sits on top and fills the spare space (stays big, no empty gap);
     text sits below. */
  .work-card {
    display: flex; flex-direction: column;
    height: 500px; padding: 0; column-gap: 0; overflow: hidden;
  }
  .work-image {
    order: -1; flex: 1 1 auto; min-height: 150px;
    aspect-ratio: auto; border-radius: 0;
  }
  .work-image img { height: 100%; object-fit: cover; }
  .work-header { padding: 22px 26px 26px; gap: 10px; }
  .work-category { font-size: 24px; }
  .work-projects li { padding: 11px 2px; font-size: 16px; }
  .work-projects li::after { font-size: 16px; }

  .process-grid { grid-template-columns: 1fr; }
  .process-section { padding-bottom: 40px; }
  .brands-section { padding-top: 32px; }
  .footer-cards { grid-template-columns: repeat(2, 1fr); }

  /* mobile nav — hamburger toggles a dropdown of the links */
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute; top: calc(100% + 10px); left: 0; right: 0;
    flex-direction: column; gap: 4px;
    background: var(--white); border-radius: 16px;
    box-shadow: 0 20px 32px rgba(3,15,46,0.12);
    padding: 10px;
  }
  .nav-pill.open .nav-links { display: flex; }
  .nav-links .nav-btn {
    width: 100%; height: auto; padding: 14px 18px;
    justify-content: flex-start; border-radius: 10px; font-size: 16px;
  }
}
@media (max-width: 768px) {
  .nav-btn { width: auto; padding: 8px 14px; }
  .hero-title { font-size: clamp(60px, 18vw, 120px); }
  .footer-cards { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
  .cta-title { font-size: clamp(56px, 14vw, 100px); }
}

/* ═══ LOGO ═══ */
/* Nav: navy circle wraps the yellow logo so it's visible on white */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 16px;
  color: var(--navy);
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.nav-logo-icon {
  width: 58px;
  height: 58px;
  background: var(--blue);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  flex-shrink: 0;
}

.nav-logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Footer: logo sits on a navy square so the pale logo stays visible on white */
.footer-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  background: var(--navy);
  border-radius: 12px;
  padding: 8px;
}

/* Hero logo — sits above the title text */
.hero-logo {
  width: 50px;
  height: 50px;
  object-fit: contain;
  margin-bottom: 24px;
  opacity: 0;
  animation: slideUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards 0.0s;
}

/* Hero buttons — turn yellow on hover */
.hero .btn-primary {
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, border-color 0.2s, color 0.2s;
}
.hero .btn-primary:hover {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--navy);
}

.hero .btn-ghost-white {
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.hero .btn-ghost-white:hover {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--navy);
}

/* Remove border on hero primary button */
.hero .btn-primary {
  border-color: transparent;
}

/* Match shadow on both hero buttons */
.hero .btn-ghost-white {
  box-shadow: 0 4px 20px rgba(3,15,46,0.2);
}

/* Remove border from hero ghost button */
.hero .btn-ghost-white {
  border-color: transparent;
}

.hero-title { align-items: center; }
.hero-actions { justify-content: center; }

/* ═══ HERO STICKY + PARALLAX — same as template ═══
   Hero sticks at the top while the white about section
   scrolls over it from below, hiding it underneath */
.hero {
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 1;
}

/* About and everything after sits on top of the sticky hero */
.about-section,
.work-section,
.services-section,
.skills-section,
.process-section,
.brands-section,
.cta-section,
.footer {
  position: relative;
  z-index: 2;
}

/* ═══ ORGANIC CLOUD EDGE ═══
   Lives at the top of the about section so it moves WITH the white
   section as you scroll — not stuck inside the sticky hero */
.hero-cloud-edge {
  position: absolute;
  top: -108px;       /* pulls the SVG upward to overlap the blue hero */
  left: 0;
  right: 0;
  line-height: 0;    /* removes any gap below inline SVG */
  z-index: 3;
  pointer-events: none;
}

.hero-cloud-edge svg {
  width: 100%;
  height: 110px;
  display: block;
}

/* Remove old cloud-divider styles that are no longer used */
.cloud-divider { display: none; }

.hero-logo { margin-bottom: 40px; }

/* About section — blue button, turns yellow on hover */
.about-section .btn-ghost-dark {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}
.about-section .btn-ghost-dark:hover {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--navy);
}

/* Nav Contact button — blue bg + yellow text, inverts on hover */
.nav-btn--active {
  background: var(--blue);
  color: var(--yellow);
  transition: background 0.2s, color 0.2s;
}
.nav-btn--active:hover {
  background: var(--yellow);
  color: var(--blue);
}

/* CTA keyword — yellow text, no background */
.cta-keyword {
  color: var(--yellow);
  display: block;
}

/* CTA email button — turns yellow on hover */
.cta-section .btn-primary:hover {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--navy);
  transform: translateY(-3px);
}

/* ═══ BRANDS TICKER ═══ */
.brands-section {
  background: var(--white);
  padding: 64px 0;
}

.brands-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lgrey);
  text-align: center;
  margin-bottom: 40px;
}

/* edge fade via gradient overlays (avoids the Safari mask-image + animation
   repaint bug that made the strip flicker / disappear) */
.brands-mask {
  position: relative;
  overflow: hidden;
}
.brands-mask::before,
.brands-mask::after {
  content: "";
  position: absolute; top: 0; bottom: 0;
  width: 90px; z-index: 2; pointer-events: none;
}
.brands-mask::before { left: 0;  background: linear-gradient(90deg,  var(--white), rgba(255,255,255,0)); }
.brands-mask::after  { right: 0; background: linear-gradient(270deg, var(--white), rgba(255,255,255,0)); }

.brands-track {
  display: flex;
  align-items: center;
  gap: 56px;
  width: max-content;
  animation: brands-scroll 28s linear infinite;
  padding: 8px 0;
  list-style: none;
  will-change: transform;
  backface-visibility: hidden;
}

@keyframes brands-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Placeholder logo blocks — grey rounded rectangles */
.brand-logo {
  height: 48px;
  width: auto;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.brand-logo img {
  height: 48px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  opacity: 0.35;
  transition: opacity 0.3s;
  display: block;
}

.brand-logo img:hover {
  opacity: 0.35;
}

/* Hover image — fades in over the cover on hover */
.card-img-hover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.45s ease;
}
.card:hover .card-img-hover { opacity: 1; }

/* White layer that fades in on hover — sits under the hover image,
   covering the cover so transparent PNGs show on white */
.card-img::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--white);
  opacity: 0;
  z-index: 1;
  transition: opacity 0.45s ease;
}
.card:hover .card-img::before { opacity: 1; }

/* Ensure hover image is above the white layer */
.card-img-hover { z-index: 2; }

/* Ensure overlay stays on top of everything */
.card-ov { z-index: 3; }

/* Services stack background matches the blue section */
.services-stack { background: var(--blue-bg); }

.svc-card--white { background: var(--white); }

