:root {
  --navy: #16273e;
  --orange: #a03908;
  --orange-dark: #8a2f07;
  --orange-tint: #fbe6d4;
  --cream: #faf8f4;
  --white: #ffffff;
  --gray: #5f6b78;
  --gray-lt: #f3efe6;
  --line: #e7e0d3;
  --radius: 10px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Roboto', sans-serif;
  background: var(--cream);
  color: var(--navy);
  line-height: 1.6;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }

/* Deliberate focus ring, not the browser default: navy reads at 12.4:1+ on every light section it sits on. */
:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
  border-radius: 3px;
}
.contact :focus-visible,
.footer :focus-visible,
.quote-section :focus-visible {
  outline-color: var(--white);
}

/* NAV */
.nav {
  background: var(--white);
  padding: 0 48px;
  display: flex; align-items: center; justify-content: space-between;
  height: 74px;
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s;
}
.nav.scrolled { box-shadow: 0 2px 16px rgba(22,39,62,0.06); }
.nav__logo {
  font-family: 'Lora', serif;
  font-size: 21px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.01em;
}
.nav__logo span { color: var(--orange); }
.nav__links {
  display: flex; gap: 32px;
}
.nav__links a {
  color: var(--navy);
  opacity: 0.8;
  font-size: 14px;
  font-weight: 500;
  transition: opacity .2s, color .2s;
}
.nav__links a:hover { opacity: 1; color: var(--orange); }
.nav__cta {
  background: var(--orange);
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 6px;
  transition: background .2s, transform .2s;
}
.nav__cta:hover { background: var(--orange-dark); transform: translateY(-1px); }

/* Mobile nav toggle: hidden above the breakpoint, a real drawer below it. */
.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  padding: 0;
}
.nav__toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--navy);
  transition: transform .25s, opacity .25s;
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
  .nav { padding: 0 20px; }
  .nav__toggle { display: flex; }
  .nav__links {
    display: none;
    flex-direction: column;
    gap: 2px;
    position: absolute;
    top: 74px; left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 8px 20px 16px;
  }
  /* display:none (not opacity) so closed links drop out of the tab order, not just out of view */
  .nav__links.open { display: flex; }
  .nav__links a { padding: 14px 4px; border-bottom: 1px solid var(--line); opacity: 1; }
  .nav__links a:last-child { border-bottom: none; }
}

/* HERO */
.hero {
  background: var(--white);
  padding: 88px 48px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: end;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero__left { padding-bottom: 80px; }
.hero__tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--orange-tint);
  border: 1px solid rgba(160,57,8,0.25);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  color: var(--orange);
  font-weight: 600;
  margin-bottom: 28px;
}
.hero__tag .dot {
  width: 7px; height: 7px;
  background: var(--orange);
  border-radius: 50%;
  flex-shrink: 0;
}
.hero h1 {
  font-family: 'Lora', serif;
  font-size: clamp(36px, 4.6vw, 56px);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
}
.hero h1 em { font-style: normal; color: var(--orange); }
.hero__sub {
  color: var(--gray);
  font-size: 17px;
  line-height: 1.65;
  margin-bottom: 40px;
  max-width: 480px;
}
.hero__sub strong { color: var(--navy); }
.hero__btns { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-main {
  background: var(--orange);
  color: var(--white);
  padding: 14px 28px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  transition: background .2s, transform .2s;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-main:hover { background: var(--orange-dark); transform: translateY(-2px); }
.btn-outline {
  border: 1.5px solid var(--line);
  color: var(--navy);
  padding: 14px 28px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  transition: border-color .2s, background .2s, color .2s;
}
.btn-outline:hover { border-color: var(--navy); background: var(--navy); color: var(--white); }
.hero__stats {
  display: flex; gap: 40px;
  margin-top: 52px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.stat-item__num {
  font-family: 'Lora', serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
}
.stat-item__num span { color: var(--orange); }
.stat-item__label { font-size: 13px; color: var(--gray); margin-top: 4px; }
.hero__right {
  display: grid;
  grid-template-rows: 1fr;
  align-self: stretch;
}
.hero__card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: end;
  padding-bottom: 0;
}
.hero__card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 12px 12px 0 0;
  padding: 28px 24px;
  transition: background .3s, transform .3s;
}
.hero__card:hover { background: var(--orange-tint); transform: translateY(-3px); }
.hero__card--tall { padding-top: 44px; }
.hero__card-title {
  font-family: 'Lora', serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}
.hero__card-desc { font-size: 13px; color: var(--gray); line-height: 1.5; }
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding: 60px 20px 0; gap: 40px; }
  .hero__right { display: none; }
}

/* TRUST STRIP */
.marquee {
  background: var(--white);
  overflow: hidden;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.marquee__track {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}
.marquee__item {
  white-space: nowrap;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 999px;
}

/* SECTION COMMONS */
.section { padding: 96px 48px; }
.section__inner { max-width: 1200px; margin: 0 auto; }
.section__label {
  font-size: 13px;
  font-weight: 700;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}
.section__title {
  font-family: 'Lora', serif;
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
  color: var(--navy);
}
.section__sub {
  font-size: 17px;
  color: var(--gray);
  max-width: 580px;
  line-height: 1.65;
  margin-bottom: 56px;
}
@media (max-width: 768px) { .section { padding: 64px 20px; } }

/* ABOUT (deliberately text-only, no grid, to break the section rhythm) */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 768px) { .about-grid { grid-template-columns: 1fr; gap: 32px; } }

/* SERVICES */
.services { background: var(--cream); }
.services__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1.5px solid var(--line);
  padding: 40px 36px;
  transition: border-color .25s, transform .25s, box-shadow .25s;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s ease;
}
.service-card:hover::before, .service-card:focus-within::before { transform: scaleX(1); }
.service-card:hover, .service-card:focus-within { border-color: var(--orange); box-shadow: 0 8px 30px rgba(22,39,62,0.08); transform: translateY(-2px); }
.service-card__title {
  font-family: 'Lora', serif;
  font-size: 21px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.005em;
  color: var(--navy);
}
.service-card__desc { font-size: 15px; color: var(--gray); line-height: 1.65; margin-bottom: 24px; }
.service-card__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-size: 12px;
  font-weight: 500;
  padding: 5px 12px;
  background: var(--gray-lt);
  border-radius: 999px;
  color: var(--navy);
}
@media (max-width: 768px) { .services__grid { grid-template-columns: 1fr; } }

/* WORK */
.work { background: var(--white); }
.work__filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.filter-btn {
  padding: 11px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  border: 1.5px solid var(--line);
  color: var(--navy);
  transition: all .2s;
  min-height: 44px;
}
.filter-btn:hover { border-color: var(--orange); color: var(--orange); }
.filter-btn.active { background: var(--orange); color: var(--white); border-color: var(--orange); }
.filter-btn.active:hover { color: var(--white); }
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.project-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1.5px solid var(--line);
  overflow: hidden;
  transition: transform .3s, box-shadow .3s, border-color .3s;
  display: flex; flex-direction: column;
}
.project-card.hidden { display: none; }
.project-card:hover, .project-card:focus-visible { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(22,39,62,0.1); border-color: var(--orange); }
.project-card__thumb {
  aspect-ratio: 16/9;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column;
  background: var(--navy);
  padding: 24px;
  position: relative;
  border-bottom: 3px solid var(--orange);
}
.project-card__thumb-text {
  font-family: 'Lora', serif;
  font-size: 19px;
  font-weight: 700;
  color: var(--white);
  text-align: center;
  line-height: 1.25;
  letter-spacing: -0.005em;
}
.project-card__thumb-text em { color: var(--orange-tint); font-style: normal; display: block; }
.project-card__badges {
  position: absolute; top: 12px; left: 12px;
  display: flex; gap: 6px;
}
.badge {
  font-size: 11px; font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
}
.badge--accent { background: var(--orange); color: white; }
.badge--light { background: rgba(255,255,255,0.18); color: white; border: 1px solid rgba(255,255,255,0.25); }
.project-card__body {
  padding: 20px 22px 22px;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.project-card__name {
  font-family: 'Lora', serif;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 3px;
  letter-spacing: -0.005em;
  color: var(--navy);
}
.project-card__url { font-size: 12px; color: var(--gray); }
.project-card__arrow {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: all .2s;
  font-size: 14px;
  color: var(--gray);
}
.project-card:hover .project-card__arrow, .project-card:focus-visible .project-card__arrow { background: var(--orange); border-color: var(--orange); color: white; transform: rotate(-45deg); }
@media (max-width: 900px) { .projects-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .projects-grid { grid-template-columns: 1fr; } }

/* PROCESS */
.process { background: var(--cream); }
.process__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
}
.step-card {
  padding: 40px 28px;
  border-right: 1px solid var(--line);
  transition: background .25s;
}
.step-card:last-child { border-right: none; }
.step-card:hover { background: var(--orange-tint); }
.step-card__num {
  font-family: 'Lora', serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--orange);
  opacity: 0.7;
  margin-bottom: 24px;
  line-height: 1;
}
.step-card__title { font-family: 'Lora', serif; font-size: 18px; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.step-card__desc { font-size: 14px; color: var(--gray); line-height: 1.6; }
@media (max-width: 768px) { .process__steps { grid-template-columns: 1fr 1fr; } .step-card { border-bottom: 1px solid var(--line); } }

/* STACK */
.stack { background: var(--white); }
.stack__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.tool-cell {
  padding: 24px 16px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
  transition: background .2s;
}
.tool-cell:hover { background: var(--orange-tint); }
.tool-cell:nth-child(5n) { border-right: none; }
.tool-cell:nth-last-child(-n+5) { border-bottom: none; }
.tool-cell__name { font-size: 14px; font-weight: 600; color: var(--navy); }
@media (max-width: 768px) { .stack__grid { grid-template-columns: repeat(3, 1fr); } }

/* EXPERIENCE (a list, not a grid, to keep section rhythm varied) */
.experience { background: var(--cream); }
.exp-list { border-top: 1.5px solid var(--line); }
.exp-row {
  display: grid;
  grid-template-columns: 180px 1fr 1fr;
  gap: 32px;
  padding: 28px 0;
  border-bottom: 1.5px solid var(--line);
  align-items: start;
  transition: padding .25s;
  position: relative;
}
.exp-row::before {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 3px; height: 100%;
  background: var(--orange);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .3s;
}
.exp-row:hover::before { transform: scaleY(1); }
.exp-row:hover { padding-left: 14px; }
.exp-row__date { font-size: 13px; color: var(--gray); padding-top: 4px; }
.exp-row__company { font-family: 'Lora', serif; font-size: 18px; font-weight: 700; letter-spacing: -0.005em; color: var(--navy); }
.exp-row__role { font-size: 14px; color: var(--gray); line-height: 1.55; }
@media (max-width: 768px) { .exp-row { grid-template-columns: 1fr; gap: 6px; } }

/* QUOTE (a full-width statement band, breaking the grid rhythm on purpose) */
.quote-section {
  background: var(--orange);
  padding: 80px 48px;
  text-align: center;
}
.quote-section__text {
  font-family: 'Lora', serif;
  font-size: clamp(22px, 3.2vw, 40px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
  letter-spacing: -0.01em;
  max-width: 900px;
  margin: 0 auto 16px;
}
.quote-section__attr { font-size: 14px; color: rgba(255,255,255,0.85); font-weight: 600; }
@media (max-width: 768px) { .quote-section { padding: 60px 20px; } }

/* CONTACT */
.contact { background: var(--navy); }
.contact .section__title { color: var(--white); }
.contact .section__label { color: var(--orange-tint); }
.contact__grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 80px; align-items: start; }
.contact__lead { font-size: 17px; color: rgba(255,255,255,0.75); line-height: 1.7; }
.contact__channels { display: flex; flex-direction: column; gap: 0; }
.contact-channel {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  transition: padding .2s;
}
.contact-channel:first-child { border-top: 1px solid rgba(255,255,255,0.15); }
.contact-channel:hover, .contact-channel:focus-visible { padding-left: 10px; }
.contact-channel__label { font-size: 12px; color: rgba(255,255,255,0.7); font-weight: 500; }
.contact-channel__value { font-size: 15px; font-weight: 600; color: var(--white); transition: color .2s; }
.contact-channel:hover .contact-channel__value { color: var(--orange-tint); }
@media (max-width: 768px) { .contact__grid { grid-template-columns: 1fr; gap: 40px; } }

/* FOOTER */
.footer {
  background: #0f1c2e;
  padding: 24px 48px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  font-size: 13px;
  color: rgba(255,255,255,0.65);
}
@media (max-width: 768px) { .footer { padding: 20px; flex-direction: column; text-align: center; } }

/* REVEAL */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal--d1 { transition-delay: .1s; }
.reveal--d2 { transition-delay: .2s; }
.reveal--d3 { transition-delay: .3s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
