:root {
  --navy: #1b215b;
  --navy-light: #2c3480;
  --navy-deep: #12153f;
  --olive: #b7cd51;
  --olive-light: #d3df8f;
  --olive-dark: #7c8f2e;
  --lavender: #eaebf6;
  --cream: #e0dfd6;
  --white: #ffffff;
  --ink: #23263a;

  --font-serif: 'Playfair Display', Georgia, serif;
  --font-body: 'Crimson Text', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-hand: 'Caveat', cursive;

  --max-width: 1200px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--lavender);
  background: var(--navy);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

/* Header / Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  padding-bottom: 20px;
}

.logo {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--white);
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  color: var(--lavender);
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  border-bottom-color: var(--olive);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  margin: 5px 0;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 140px 0 120px;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  text-align: center;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  z-index: 0;
  animation: drift 14s ease-in-out infinite;
}

.hero::before {
  width: 460px;
  height: 460px;
  background: var(--olive);
  opacity: 0.35;
  top: -160px;
  right: -120px;
}

.hero::after {
  width: 360px;
  height: 360px;
  background: var(--lavender);
  opacity: 0.12;
  bottom: -140px;
  left: -100px;
  animation-delay: -6s;
  animation-duration: 18s;
}

@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-24px, 22px) scale(1.06); }
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(48px, 9vw, 108px);
  font-weight: 500;
  color: var(--white);
  margin: 0 0 24px;
  line-height: 0.98;
  letter-spacing: -0.02em;
}

.hero-subhead {
  font-size: 20px;
  color: var(--lavender);
  max-width: 620px;
  margin: 0 auto 28px;
}

.pillars {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--lavender);
  text-transform: uppercase;
}

.pillars .dot {
  color: var(--olive);
  margin: 0 14px;
  font-weight: 700;
}

/* Sections */
section {
  padding: 88px 0;
  position: relative;
  isolation: isolate;
}

section.alt,
.cta {
  background: none;
}

section.alt::before,
.cta::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -48px;
  bottom: -20px;
  z-index: 0;
  transform: skewY(-2.5deg);
}

section.alt::before {
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 100%);
}

.cta::before {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
}

section.alt .container,
.cta .container {
  position: relative;
  z-index: 1;
}

section.alt .trigger-list li::before {
  color: rgba(255, 255, 255, 0.12);
}

section.alt .associate-card {
  border-top-color: rgba(255, 255, 255, 0.18);
}

/* Grain texture overlay */
.grain-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.5;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

/* Hand-drawn scribble accents */
.scribble-wrap {
  position: relative;
  display: inline-block;
}

.scribble-wrap svg {
  position: absolute;
  left: -2%;
  bottom: -0.12em;
  width: 104%;
  height: 0.3em;
  overflow: visible;
}

.doodle {
  position: absolute;
  pointer-events: none;
  z-index: 2;
}

.doodle-caption {
  font-family: var(--font-hand);
  font-size: 28px;
  color: var(--olive);
  line-height: 1;
  white-space: nowrap;
}

.doodle-arrow {
  display: block;
  width: 90px;
  height: 60px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(32px, 5.5vw, 56px);
  font-weight: 500;
  color: var(--white);
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin: 0 0 16px;
}

.section-title.statement-title {
  font-size: clamp(20px, 2.6vw, 26px);
  line-height: 1.45;
  letter-spacing: -0.005em;
  max-width: 560px;
}

.section-subtitle {
  font-size: 18px;
  color: var(--lavender);
  max-width: 720px;
  margin: 0 0 48px;
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 56px;
}

.section-header .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

/* Single feature block (asymmetric, tech-style) */
.eyebrow {
  font-family: var(--font-sans);
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--olive);
  margin: 0 0 18px;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 72px;
  align-items: center;
}

.feature-text .section-title {
  margin-bottom: 20px;
}

.feature-text .section-subtitle {
  margin-bottom: 36px;
}

.feature-visual {
  position: relative;
  max-width: 380px;
  margin: 0 auto;
}

.blob-shape {
  border-radius: 46% 54% 62% 38% / 46% 56% 44% 54%;
  box-shadow: 0 40px 70px -24px rgba(0, 0, 0, 0.55);
  transform: rotate(-3deg);
  transition: transform 0.4s ease;
}

.feature-visual:hover .blob-shape {
  transform: rotate(-1deg) scale(1.02);
}

/* Duotone photo treatment: navy/olive by default, real color on hover */
.duotone {
  position: relative;
  overflow: hidden;
}

.duotone img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
  transition: filter 0.6s ease;
}

.duotone::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--navy) 15%, var(--olive) 100%);
  mix-blend-mode: color;
  opacity: 0.92;
  transition: opacity 0.6s ease;
  pointer-events: none;
}

.duotone:hover img,
.duotone.is-active img,
.card:hover .duotone img,
.founder-card:hover .duotone img {
  filter: grayscale(0) contrast(1);
}

.duotone:hover::after,
.duotone.is-active::after,
.card:hover .duotone::after,
.founder-card:hover .duotone::after {
  opacity: 0;
}

/* Triggers list */
.trigger-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.trigger-list li {
  position: relative;
  padding-top: 28px;
  font-size: 17px;
  color: var(--white);
  transition: transform 0.3s ease;
}

.trigger-list li:hover {
  transform: translateY(-6px);
}

.trigger-list li::before {
  content: attr(data-index);
  display: block;
  font-family: var(--font-serif);
  font-size: 42px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.15);
  margin-bottom: 14px;
}

.trigger-list li::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  background: var(--olive);
  margin: 16px 0 20px;
}

/* Compact icon-led areas grid */
.areas-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.areas-grid li {
  text-align: center;
  padding: 22px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.areas-grid li:hover {
  transform: translateY(-4px);
  border-color: rgba(183, 205, 81, 0.45);
}

.areas-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-bottom: 10px;
  color: var(--olive);
}

.areas-icon svg {
  width: 100%;
  height: 100%;
}

.areas-grid h3 {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
  margin: 0 0 4px;
}

.areas-grid p {
  font-size: 12.5px;
  color: var(--lavender);
  opacity: 0.75;
  margin: 0;
}

/* Editorial case-study list (Work page) */
.editorial-list {
  display: flex;
  flex-direction: column;
}

.editorial-entry {
  display: flex;
  align-items: center;
  gap: 64px;
  padding: 64px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.editorial-entry:first-child {
  padding-top: 0;
}

.editorial-entry:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.editorial-entry:nth-child(even) {
  flex-direction: row-reverse;
}

.editorial-visual {
  flex: 0 0 42%;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.editorial-content {
  flex: 1;
  min-width: 0;
}

.editorial-index {
  display: block;
  font-family: var(--font-serif);
  font-size: 40px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.18);
  margin-bottom: -6px;
}

.editorial-tags {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--olive);
  display: block;
  margin-bottom: 14px;
}

.editorial-content h3 {
  font-family: var(--font-serif);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 500;
  color: var(--white);
  line-height: 1.15;
  margin: 0 0 16px;
}

.editorial-description {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.editorial-content p {
  margin: 0 0 24px;
  max-width: 480px;
}

.read-more-toggle {
  background: none;
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding: 12px 0 0;
  margin: 0;
  cursor: pointer;
  text-align: left;
}

.read-more-toggle .arrow {
  transition: transform 0.2s ease;
}

.editorial-entry.is-open .read-more-toggle .arrow {
  transform: rotate(90deg);
}

/* Single randomized featured case study (Home) */
.featured-case-link {
  display: block;
}

.featured-case-visual {
  aspect-ratio: 21 / 9;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  margin-bottom: 28px;
}

.featured-case-caption h3 {
  font-family: var(--font-serif);
  font-size: clamp(24px, 3.2vw, 34px);
  font-weight: 500;
  color: var(--white);
  line-height: 1.2;
  max-width: 720px;
  margin: 0 0 14px;
}

.featured-case-caption p {
  max-width: 620px;
  margin: 0;
}

/* Card grid (Volans-style, staggered for a less boxy feel) */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.card-grid .card:nth-child(3n+2) {
  margin-top: 56px;
}

.card-grid .card:nth-child(3n+3) {
  margin-top: 20px;
}

.card {
  display: flex;
  flex-direction: column;
  transition: transform 0.35s ease;
}

.card:hover {
  transform: translateY(-8px);
}

.card-image {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  margin-bottom: 20px;
  background: var(--navy-light);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
}

.card-image.compact {
  aspect-ratio: 16 / 10;
  margin-bottom: 0;
}

.card-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  background: linear-gradient(180deg, rgba(18, 21, 63, 0) 45%, rgba(18, 21, 63, 0.94) 100%);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.card:hover .card-overlay {
  opacity: 1;
}

.card-overlay .card-tags {
  margin-bottom: 10px;
}

.card-overlay h3 {
  margin: 0;
  font-size: 18px;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card:hover .card-image img {
  transform: scale(1.06);
}

.card-tags {
  display: flex;
  gap: 16px;
  margin-bottom: 14px;
}

.card-tags span {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lavender);
  padding-bottom: 6px;
  border-bottom: 2px solid var(--olive);
}

.card-tags span.tag-alt {
  border-bottom-color: rgba(255, 255, 255, 0.4);
}

.card h3 {
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  margin: 0 0 16px;
  flex-grow: 1;
}

.read-more {
  font-family: var(--font-sans);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 12px;
}

.read-more .arrow {
  transition: transform 0.2s ease;
}

.card:hover .read-more .arrow {
  transform: translateX(4px);
}

/* Buttons */
.btn {
  font-family: var(--font-sans);
  display: inline-block;
  background: var(--olive);
  color: var(--navy);
  font-weight: 700;
  font-size: 15px;
  padding: 14px 32px;
  border-radius: 2px;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  background: var(--olive-light);
  transform: translateY(-3px);
  box-shadow: 0 16px 28px -12px rgba(0, 0, 0, 0.45);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--white);
  color: var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--navy);
}

.cta {
  text-align: center;
}

.cta.cta-photo::before {
  background:
    linear-gradient(135deg, rgba(27, 33, 91, 0.88) 0%, rgba(44, 52, 128, 0.86) 100%),
    url('../assets/janissa-cta-bg.jpg') center 30% / cover;
}

/* Full-bleed culture/team photo section */
.culture-section {
  position: relative;
  min-height: 440px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 100px 0;
}

.culture-section .bg-image {
  position: absolute;
  inset: 0;
  background: url('../assets/team-workshop.jpg') center 30% / cover;
}

.culture-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 21, 63, 0.55) 0%, rgba(18, 21, 63, 0.85) 100%);
}

.culture-section .container {
  position: relative;
  z-index: 1;
}

.culture-section .section-title {
  color: var(--white);
  max-width: 820px;
  margin: 0 auto 16px;
}

.culture-section .section-subtitle {
  max-width: 620px;
  margin: 0 auto;
  color: var(--lavender);
}

.cta p {
  max-width: 600px;
  margin: 0 auto 32px;
}

/* Team / Associates */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px;
  align-items: start;
}

.founder-card {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  margin-bottom: 64px;
}

.founder-card .card-image {
  width: 220px;
  flex-shrink: 0;
  aspect-ratio: 1;
  margin-bottom: 0;
}

.founder-card h3 {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 500;
  color: var(--white);
  margin: 0 0 4px;
}

.founder-card .role {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--olive);
  margin: 0 0 16px;
}

.associate-card {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding-top: 24px;
}

.associate-card h4 {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 500;
  color: var(--white);
  margin: 0 0 4px;
}

.associate-card .role {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--olive);
  margin: 0 0 12px;
  display: block;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}

.contact-details p {
  margin: 0 0 8px;
}

.contact-details .label {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--olive);
  margin: 24px 0 8px;
}

.contact-details .label:first-child {
  margin-top: 0;
}

form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

form label {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--lavender);
  margin-bottom: 8px;
  display: block;
}

form input,
form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 2px;
  font-family: var(--font-sans);
  font-size: 15px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
}

form input::placeholder,
form textarea::placeholder {
  color: rgba(234, 235, 246, 0.4);
}

form textarea {
  min-height: 140px;
  resize: vertical;
}

/* Footer */
.site-footer {
  position: relative;
  z-index: 2;
  background: var(--navy-deep);
  color: var(--lavender);
  padding: 48px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.site-footer .logo {
  color: var(--white);
}

.footer-links {
  display: flex;
  gap: 28px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links a {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--lavender);
}

.footer-links a:hover {
  color: var(--olive);
}

.copyright {
  font-family: var(--font-sans);
  font-size: 13px;
  color: rgba(234, 235, 246, 0.6);
  width: 100%;
  margin-top: 24px;
  text-align: center;
}

/* Scroll reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Page hero (non-home) */
.page-hero {
  position: relative;
  padding: 80px 0 64px;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
}

.page-hero.hero-photo {
  overflow: hidden;
  padding: 130px 0 100px;
}

.page-hero.hero-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(160deg, rgba(18, 21, 63, 0.7) 0%, rgba(27, 33, 91, 0.88) 100%),
    url('../assets/team-workshop.jpg') center 35% / cover;
}

.page-hero.hero-photo.hero-photo-about::before {
  background:
    linear-gradient(160deg, rgba(18, 21, 63, 0.7) 0%, rgba(27, 33, 91, 0.88) 100%),
    url('../assets/about-hero.jpg') center 45% / cover;
}

.page-hero.hero-photo.hero-photo-contact::before {
  background:
    linear-gradient(160deg, rgba(18, 21, 63, 0.7) 0%, rgba(27, 33, 91, 0.88) 100%),
    url('../assets/contact-hero.jpg') center 20% / cover;
}

.page-hero.hero-photo .container {
  position: relative;
  z-index: 1;
}

.page-hero .section-title {
  margin-bottom: 20px;
}

.page-hero .section-subtitle {
  margin-bottom: 0;
  font-size: 19px;
}

/* Responsive */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy);
    padding: 16px 32px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  .nav-toggle { display: block; }
  .feature-grid,
  .team-grid,
  .contact-grid { grid-template-columns: 1fr; }
  .feature-grid { gap: 40px; }
  .feature-visual { order: -1; }
  .card-grid { grid-template-columns: 1fr; }
  .card-grid .card:nth-child(3n+2),
  .card-grid .card:nth-child(3n+3) { margin-top: 0; }
  .trigger-list { grid-template-columns: 1fr; }
  .areas-grid { grid-template-columns: repeat(2, 1fr); }
  .founder-card { flex-direction: column; }
  .doodle { display: none; }
  .editorial-entry,
  .editorial-entry:nth-child(even) {
    flex-direction: column;
    align-items: stretch;
    gap: 28px;
    padding: 40px 0;
  }
  .editorial-visual { flex: none; width: 100%; }
  .editorial-content p { max-width: none; }
}
