:root {
  --bg: #f3f1ec;
  --bg-2: #ebe7df;
  --surface: rgba(255, 255, 255, 0.62);
  --surface-strong: rgba(255, 255, 255, 0.82);
  --card: #ffffff;
  --text: #161616;
  --muted: #5f5b56;
  --line: rgba(17, 17, 17, 0.08);
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.08);
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
  --accent: #111111;
  --radius: 24px;
  --radius-sm: 18px;
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url('../images/bg-paper.jpg');
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-position: center;
  pointer-events: none;
  z-index: -2;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 18% 10%, rgba(255, 251, 244, 0.38), transparent 42%),
    linear-gradient(180deg, rgba(255, 248, 238, 0.42) 0%, rgba(255, 246, 236, 0.46) 100%),
    rgba(255, 250, 242, 0.16);
  pointer-events: none;
  z-index: -1;
}

body > * {
  position: relative;
  z-index: 1;
}
a { color: inherit; }
img { display: block; max-width: 100%; }

.site-shell {
  width: min(calc(100% - 32px), var(--max));
  margin: 18px auto 42px;
}

.topbar {
  position: sticky;
  top: 18px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 18px;
  margin-bottom: 34px;
}

.brand {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.main-nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.95rem;
}

.main-nav a:hover,
.main-nav a.is-active {
  color: var(--text);
}

.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-dropdown-toggle {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-dropdown-toggle::after {
  content: "▾";
  font-size: 0.72rem;
  line-height: 1;
  transform: translateY(-1px);
}

.nav-dropdown:hover .nav-dropdown-toggle,
.nav-dropdown.is-active .nav-dropdown-toggle {
  color: var(--text);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100%);
  left: 0;
  min-width: 240px;
  padding: 18px 10px 10px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  display: none;
  z-index: 50;
}

.nav-dropdown-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.95rem;
  white-space: nowrap;
}

.nav-dropdown-menu a:hover {
  background: rgba(17, 17, 17, 0.06);
  color: var(--text);
}

.nav-dropdown:hover .nav-dropdown-menu {
  display: block;
}

.nav-dropdown-toggle {
  cursor: pointer;
}

@media (max-width: 720px) {
  .nav-dropdown {
    width: 100%;
    display: block;
  }

  .nav-dropdown-toggle {
    width: 100%;
  }

  .nav-dropdown-menu {
    position: static;
    display: block;
    min-width: 100%;
    margin-top: 8px;
    padding: 8px 0 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .nav-dropdown-menu a {
    padding: 8px 0 8px 12px;
    border-radius: 0;
  }

  .nav-dropdown-menu a:hover {
    background: transparent;
  }
}

.text-decoration-none {
	text-decoration: none;
}

.glass {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.glass-card {
  background: var(--surface-strong);
  border: 1px solid rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.65), rgba(255,255,255,0.5));
  backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 8px 30px rgba(0,0,0,0.05);
  box-shadow: 5px 5px 10px #949494;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 28px;
  align-items: stretch;
  padding: 26px 0 20px;
}

.hero-copy {
  padding: 24px 6px 12px 6px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--muted);
  margin: 0 0 18px;
}

.case-line-height {
	line-height: 1.75;
}

h1, h2, h3 {
  letter-spacing: -0.05em;
  line-height: 0.95;
  margin: 0;
}

h1 {
  font-size: clamp(3rem, 8vw, 6.4rem);
  max-width: 10.5ch;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.7rem);
  margin-bottom: 14px;
}

h3 {
  font-size: 1.45rem;
  margin-bottom: 10px;
}

.lead {
  font-size: 1.14rem;
  line-height: 1.6;
  color: var(--muted);
  max-width: 58ch;
  margin: 22px 0 0;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-secondary {
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(17,17,17,0.08);
}

.hero-panel {
  padding: 18px;
}

.hero-panel-inner {
  background: rgba(255,255,255,0.44);
  border-radius: calc(var(--radius) - 6px);
  padding: 22px;
  border: 1px solid rgba(255,255,255,0.45);
  min-height: 100%;
}

.panel-kicker,
.case-meta {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 16px;
}

.reasons-list {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 16px;
}

.reasons-list li span,
.case-body p,
.process-item p,
.two-col p,
.case-section p,
.case-side li,
.meta-strip span,
.side-note li,
.section-heading p {
  color: var(--muted);
  line-height: 1.65;
}

.reasons-list strong,
.case-body h3,
.process-item h3,
.meta-strip strong {
  display: block;
  margin-bottom: 4px;
}

.section,
.section-tight {
  padding-top: 48px;
}

.section-heading {
  margin-bottom: 22px;
}

.section-heading.narrow,
.lead.narrow {
  max-width: 760px;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
}

.case-card {
  grid-column: span 4;
  overflow: hidden;
}

.case-card-full {
  grid-column: 1 / -1;
}

.case-card-large {
  grid-column: span 8;
}

.case-image-wrap {
  padding: 16px 16px 0;
}

.case-image-wrap img,
.case-hero-image img {
  width: 100%;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}

.case-body {
  padding: 18px;
}

.case-body a {
  font-weight: 700;
  text-decoration: none;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.process-item {
  padding: 24px;
}

.process-number {
  display: inline-block;
  margin-bottom: 18px;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--muted);
}

.quote-wrap {
  padding: 42px;
}

.quote {
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -0.05em;
  max-width: 42ch;
  margin: 0;
}

.subhero h1 {
  max-width: 12ch;
}

.two-col,
.case-study-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 28px;
}

.side-note {
  display: flex;
  flex-direction: column;
}

.side-note,
.detail-card {
  padding: 22px;
}

.side-note ul,
.detail-card ul {
  margin: 0;
  padding-left: 18px;
}

.meta-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 16px 18px;
}

.meta-strip div {
  padding: 10px 12px;
  background: rgba(255,255,255,0.38);
  border-radius: 18px;
}

.meta-strip span {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.case-section + .case-section {
  margin-top: 36px;
}

@media (max-width: 980px) {
  .hero,
  .two-col,
  .case-study-layout,
  .process-grid,
  .meta-strip {
    grid-template-columns: 1fr;
  }

  .case-card,
  .case-card-large {
    grid-column: span 12;
  }

  h1 {
    max-width: 12ch;
  }
}

@media (max-width: 720px) {
  .site-shell {
    width: min(calc(100% - 18px), var(--max));
  }

  .topbar {
    position: static;
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-copy {
    padding-top: 10px;
  }

  .quote-wrap,
  .process-item,
  .hero-panel,
  .hero-panel-inner {
    padding: 18px;
  }
}

.hero-panel-inner {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.hero-panel-art {
  margin-top: auto;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  min-height: 220px;
  overflow: hidden;
  border-radius: calc(var(--radius) - 10px);
}

.hero-panel-art img {
  display: block;
  width: min(100%, 430px);
  height: auto;
  margin: auto;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

@media (max-width: 900px) {
  .hero-panel-art {
    min-height: 160px;
  }

  .hero-panel-art img {
    width: min(100%, 320px);
  }
}


.contact-footer-band {
  position: relative;
  overflow: hidden;
  margin-top: 64px;
  padding: 64px 40px 72px;
  background: #111111;
  border-radius: var(--radius);
  color: #f3f1ec;
  box-shadow: var(--shadow);
}

.contact-footer-band .eyebrow,
.contact-footer-band .section-heading p {
  color: rgba(243, 241, 236, 0.72);
}

.contact-footer-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('../images/bg-lets-talk.jpg');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  opacity: 1.0;
  pointer-events: none;
  z-index: 0;
}

.contact-footer-band > * {
  position: relative;
  z-index: 1;
}

.contact-footer-band h2,
.contact-footer-band a {
  color: #f3f1ec;
}

.contact-footer-band .btn-primary {
  background: #f3f1ec;
  color: #111111;
}

.contact-footer-band .btn-primary:hover {
  background: #ffffff;
}

@media (max-width: 720px) {
  .contact-footer-band {
    padding: 40px 22px 48px;
  }
}

@media (max-width: 980px) {

  .case-study-layout {
    grid-template-columns: 1fr;
  }

  .case-side {
    order: -1; /* move image ABOVE text */
  }

  .case-hero-image {
    width: 100%;
    margin-bottom: 20px;
  }

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

}

@media (max-width: 980px) {
  .case-study-layout {
    grid-template-columns: 1fr !important;
    gap: 20px;
  }

  .case-study-layout > .case-side,
  .case-study-layout > .case-main {
    grid-column: 1 / -1;
    width: 100%;
    max-width: 100%;
  }

  .case-study-layout > .case-side {
    order: -1;
  }

  .case-hero-image,
  .case-hero-image img {
    width: 100%;
    max-width: 100%;
  }
}

.resume-button {
  margin-top: auto; /* THIS is the magic */
  align-self: flex-end;
  padding: 10px 16px;
  border-radius: 8px;
  background: #111;
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  transition: background 0.2s ease;
}

.resume-button:hover {
  background: #333;
}

.about-side {
  display: grid;
  gap: 18px;
}

.about-photo-card {
  padding: 14px;
}

.about-photo-card img {
	width: 100%;
	  max-height: 320px;
	  object-fit: cover;
	  border-radius: 18px;
	  display: block;
}


/* About page hero: photo aligned next to the headline */
.about-hero {
  padding-top: 48px;
}

.about-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.72fr);
  gap: 34px;
  align-items: start;
}

.about-hero-copy {
  min-width: 0;
}

.about-hero-copy h1 {
  max-width: 10.5ch;
}

.about-hero-photo {
  padding: 14px;
  align-self: start;
  margin-top: 34px;
}

.about-hero-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  max-height: 360px;
  object-fit: cover;
  object-position: center;
  border-radius: 18px;
  display: block;
}

@media (max-width: 980px) {
  .about-hero-grid {
    grid-template-columns: 1fr;
  }

  .about-hero-photo {
    margin-top: 0;
    max-width: 520px;
  }
}

/* Mobile hamburger navigation */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--text);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  box-shadow: var(--shadow-soft);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.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: 720px) {
  .topbar {
    position: sticky;
    top: 9px;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px 14px;
  }

  .brand {
    flex: 1 1 auto;
  }

  .nav-toggle {
    display: inline-flex;
    flex: 0 0 auto;
  }

  .main-nav {
    display: none;
    width: 100%;
    flex: 0 0 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding-top: 12px;
    margin-top: 8px;
    border-top: 1px solid rgba(17, 17, 17, 0.08);
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a,
  .nav-dropdown-toggle {
    display: block;
    padding: 10px 4px;
    font-size: 1rem;
  }

  .main-nav a.is-active,
  .nav-dropdown.is-active .nav-dropdown-toggle {
    color: var(--text);
    font-weight: 700;
  }

  .nav-dropdown {
    width: 100%;
    display: block;
    padding-bottom: 0;
    margin-bottom: 0;
  }

  .nav-dropdown-toggle::after {
    content: "";
  }

  .nav-dropdown-menu {
    position: static;
    display: block;
    min-width: 100%;
    margin: 0;
    padding: 0 0 8px 14px;
    background: transparent;
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .nav-dropdown-menu a {
    padding: 8px 4px;
    border-radius: 0;
    white-space: normal;
    font-size: 0.95rem;
  }

  .nav-dropdown-menu a:hover {
    background: transparent;
  }
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.work-grid img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  background: #f5f5f5;
  padding: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.work-grid img:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

/* Mobile */
@media (max-width: 768px) {
  .work-grid {
    grid-template-columns: 1fr;
  }
}
