/* ============================================
   Olive Communications — Brand Guidelines (v2)
   A field guide to the brand.
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --navy: #00234D;
  --espresso: #4A342B;
  --olive: #7F8C43;
  --sand: #D1B69C;
  --cream: #F2EEE9;

  --rule: rgba(0, 35, 77, 0.14);
  --rule-soft: rgba(0, 35, 77, 0.08);
  --navy-wash: rgba(0, 35, 77, 0.05);
  --olive-wash: rgba(127, 140, 67, 0.12);

  --serif: 'Lora', serif;
  --sans: 'Inter', sans-serif;

  --gutter: clamp(24px, 6vw, 88px);
  --rail-w: 44px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--navy);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

::selection {
  background: var(--olive);
  color: var(--cream);
}

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

section { padding: 130px 0; position: relative; }

section + section { border-top: 1px solid var(--rule-soft); }

.eyebrow {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--olive);
  margin: 0 0 22px;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.eyebrow .num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: var(--espresso);
  letter-spacing: 0;
  text-transform: none;
  opacity: 0.55;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  margin: 0 0 24px;
  color: var(--navy);
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(36px, 4.6vw, 54px);
  line-height: 1.08;
  max-width: 780px;
}

h3 {
  font-size: 23px;
  font-weight: 600;
  font-family: var(--sans);
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}

p {
  margin: 0 0 18px;
  max-width: 660px;
  color: var(--espresso);
}

.lede {
  font-size: 20px;
  line-height: 1.6;
  max-width: 700px;
  color: var(--espresso);
}

.lede.drop-cap::first-letter {
  font-family: var(--serif);
  font-size: 4.6em;
  line-height: 0.78;
  font-weight: 500;
  float: left;
  padding: 4px 10px 0 0;
  color: var(--olive);
}

/* ============================================
   SCROLL-REVEAL
   ============================================ */

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

[data-reveal-group] > * { transition-delay: calc(var(--i, 0) * 70ms); }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============================================
   INDEX RAIL — signature navigation
   ============================================ */

.index-rail {
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.index-rail a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 34px;
  width: 34px;
  padding-right: 11px;
  background: rgba(0, 35, 77, 0.07);
  color: var(--navy);
  text-decoration: none;
  border-radius: 7px 0 0 7px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.04em;
  overflow: hidden;
  white-space: nowrap;
  transition: width 0.35s var(--ease), background-color 0.35s var(--ease), color 0.35s var(--ease);
}

.index-rail a .rail-label {
  opacity: 0;
  transform: translateX(6px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  margin-right: 10px;
}

.index-rail a .rail-num { flex-shrink: 0; }

.index-rail a:hover,
.index-rail a.active {
  width: 132px;
  background: var(--navy);
  color: var(--cream);
}

.index-rail a.active { background: var(--olive); }

.index-rail a:hover .rail-label,
.index-rail a.active .rail-label {
  opacity: 1;
  transform: none;
}

@media (max-width: 900px) {
  .index-rail { display: none; }
}

/* ============================================
   HERO — SCROLL-SCRUB (manual pin, no sticky)
   ============================================ */

.hero-scroll {
  position: relative;
  height: 320vh;
  background: var(--cream);
}

.hero-pin {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: var(--navy);
}

#hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.hero-cue {
  position: absolute;
  left: 50%;
  bottom: 44px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  z-index: 2;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--sand);
  opacity: 0.9;
}

.hero-cue-line {
  width: 1px;
  height: 38px;
  background: linear-gradient(var(--sand), transparent);
  animation: cuepulse 2s ease-in-out infinite;
  transform-origin: top;
}

@keyframes cuepulse {
  0% { transform: scaleY(0); opacity: 0; }
  45% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}

/* ============================================
   OVERVIEW
   ============================================ */

.overview-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 72px;
  align-items: start;
}

@media (max-width: 860px) {
  .overview-grid { grid-template-columns: 1fr; gap: 40px; }
}

.overview-copy p:last-child { margin-bottom: 0; }

.service-list h3 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--olive);
  font-family: var(--sans);
  margin-bottom: 4px;
}

.service-list ul {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  border-top: 1px solid var(--rule);
}

.service-list li {
  padding: 15px 2px;
  border-bottom: 1px solid var(--rule);
  color: var(--navy);
  font-family: var(--serif);
  font-size: 18px;
  transition: padding-left 0.3s var(--ease), color 0.3s var(--ease);
}

.service-list li:hover {
  padding-left: 10px;
  color: var(--olive);
}

/* ============================================
   TONE OF VOICE
   ============================================ */

.tone-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin-top: 52px;
  background: var(--rule);
  border: 1px solid var(--rule);
}

@media (max-width: 720px) {
  .tone-grid { grid-template-columns: 1fr; }
}

.tone-card {
  background: var(--cream);
  padding: 40px;
  transition: background-color 0.35s var(--ease);
}

.tone-card:hover { background: var(--navy); }

.tone-card h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 23px;
  color: var(--navy);
  transition: color 0.35s var(--ease);
}

.tone-card:hover h3 { color: var(--sand); }

.tone-card p {
  margin-bottom: 0;
  max-width: none;
  transition: color 0.35s var(--ease);
}

.tone-card:hover p { color: rgba(242, 238, 233, 0.86); }

.tone-closer {
  margin-top: 44px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 21px;
  color: var(--espresso);
  max-width: 640px;
}

/* ============================================
   LOGO SUITE
   ============================================ */

.logo-suite {
  display: flex;
  flex-direction: column;
  margin-top: 56px;
  border-top: 1px solid var(--rule);
}

.logo-card {
  display: grid;
  grid-template-columns: minmax(240px, 360px) 1fr;
  gap: 48px;
  align-items: center;
  background: var(--cream);
  padding: 44px;
  border-bottom: 1px solid var(--rule);
}

@media (max-width: 780px) {
  .logo-card { grid-template-columns: 1fr; gap: 24px; padding: 30px; }
}

.logo-display {
  aspect-ratio: 4 / 3;
  background: #fff;
  border: 1px solid var(--rule-soft);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  overflow: hidden;
}

.logo-display img {
  max-width: 100%;
  max-height: 170px;
  width: auto;
  transition: transform 0.5s var(--ease);
}

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

.logo-info .eyebrow { margin-bottom: 12px; }
.logo-info p { margin-bottom: 24px; }

.download-row { display: flex; flex-wrap: wrap; gap: 12px; }

.btn-download {
  position: relative;
  z-index: 0;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.02em;
  text-decoration: none;
  padding: 12px 20px;
  border-radius: 3px;
  border: 1.5px solid var(--navy);
  color: var(--navy);
  background: transparent;
  overflow: hidden;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.btn-download::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--navy);
  transform: translateY(101%);
  transition: transform 0.3s var(--ease);
  z-index: -1;
}

.btn-download span,
.btn-download svg {
  position: relative;
  z-index: 1;
}

.btn-download:hover { color: var(--cream); }
.btn-download:hover::before { transform: translateY(0); }

.btn-download.filled {
  background: var(--olive);
  border-color: var(--olive);
  color: var(--cream);
}

.btn-download.filled::before { background: var(--navy); }

.btn-download svg { width: 14px; height: 14px; flex-shrink: 0; }

/* ============================================
   CLEAR SPACE
   ============================================ */

.clearspace-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 52px;
  background: var(--rule);
  border: 1px solid var(--rule);
}

@media (max-width: 780px) {
  .clearspace-grid { grid-template-columns: repeat(2, 1fr); }
}

.clearspace-item {
  background: var(--cream);
  padding: 22px;
  transition: background-color 0.3s var(--ease);
}

.clearspace-item:hover { background: #fff; }

.clearspace-item img { border-radius: 2px; }

.clearspace-item span {
  display: block;
  margin-top: 14px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--olive);
  font-weight: 600;
  text-align: center;
}

/* ============================================
   LOGO DO'S & DON'TS
   ============================================ */

.do-callout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  align-items: center;
  margin-top: 52px;
  padding: 36px 40px;
  background: var(--olive-wash);
  border: 1px solid var(--rule);
  border-radius: 4px;
}

@media (max-width: 700px) {
  .do-callout { grid-template-columns: 1fr; gap: 20px; padding: 28px; }
}

.do-callout-mark {
  aspect-ratio: 4 / 3;
  background: #fff;
  border: 1px solid var(--rule-soft);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.do-callout-mark img {
  max-width: 82%;
  max-height: 82%;
  width: auto;
  height: auto;
}

.do-callout-copy p:last-child { margin-bottom: 0; max-width: 640px; }

.do-callout-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--olive);
  margin-bottom: 10px;
}

.do-callout-label svg {
  width: 16px;
  height: 16px;
  padding: 3px;
  box-sizing: content-box;
  border-radius: 50%;
  background: var(--olive);
  color: var(--cream);
}

.donts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 24px;
  background: var(--rule);
  border: 1px solid var(--rule);
}

@media (max-width: 900px) {
  .donts-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .donts-grid { grid-template-columns: 1fr; }
}

.dont-card {
  background: var(--cream);
  padding: 28px;
}

.dont-card h3 { font-size: 17px; margin-bottom: 8px; }
.dont-card p { font-size: 14.5px; margin-bottom: 0; max-width: none; }

.dont-examples {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 18px;
}

.example {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #fff;
  border: 1px solid var(--rule-soft);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  overflow: hidden;
}

.example img { max-width: 100%; max-height: 56px; width: auto; }

.example-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.example-badge svg { width: 11px; height: 11px; }

.example-badge.good { background: var(--olive); color: var(--cream); }
.example-badge.bad { background: #a34230; color: var(--cream); }

/* stretch / compress */
.mis-stretch { transform: scaleX(2.2) scaleY(0.5); }

/* rotate */
.mis-rotate { transform: rotate(-18deg); }

/* effects: drop shadow + glow */
.mis-effects {
  filter:
    drop-shadow(4px 6px 2px rgba(0,0,0,0.55))
    drop-shadow(0 0 5px var(--olive));
}

/* low-contrast / busy background */
.example.busy-bg {
  background-image: url('assets/pattern/pattern-navy.png');
  background-repeat: repeat;
  background-size: 42px auto;
  background-color: var(--sand);
}

/* crowded */
.example.crowded {
  padding: 4px;
}

.crowd-text {
  position: absolute;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 8px;
  letter-spacing: 0.06em;
  color: var(--espresso);
  opacity: 0.8;
  z-index: 1;
  line-height: 1;
}

.crowd-tl { top: 6px; right: 6px; left: auto; }
.crowd-br { bottom: 6px; left: 6px; right: auto; }

/* ============================================
   COLOR STORY
   ============================================ */

.color-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  margin-top: 52px;
  background: var(--rule);
  border: 1px solid var(--rule);
}

@media (max-width: 900px) {
  /* 5 swatches don't divide evenly into 2 columns (it leaves an
     empty orphan cell next to Cream), so stack to a single column
     instead of dropping to 2. */
  .color-grid { grid-template-columns: 1fr; }
}

.swatch {
  background: var(--cream);
  overflow: hidden;
}

.swatch-color {
  height: 120px;
  width: 100%;
  transition: transform 0.5s var(--ease);
}

.swatch:hover .swatch-color { transform: scale(1.04); }

.swatch-meta { padding: 18px 16px 14px; }

.swatch-name {
  font-weight: 600;
  font-size: 15px;
  color: var(--navy);
  margin-bottom: 10px;
  font-family: var(--sans);
}

.code-row {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
  margin: 0 -8px;
  padding: 6px 44px 6px 8px;
  border: none;
  background: transparent;
  border-radius: 4px;
  cursor: pointer;
  font-family: var(--sans);
  text-align: left;
  color: var(--navy);
  transition: background-color 0.2s var(--ease);
}

.code-row:hover { background: var(--navy-wash); }

.code-label {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
  color: var(--olive);
}

.code-value {
  font-size: 12.5px;
  color: var(--espresso);
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.code-status {
  position: absolute;
  top: 8px;
  right: 8px;
  flex-shrink: 0;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
  opacity: 0;
  transition: opacity 0.2s var(--ease);
}

.code-row:hover .code-status { opacity: 0.45; }
.code-row.copied .code-status { opacity: 1; color: var(--olive); }

.color-story-copy { margin-top: 44px; }

/* ============================================
   TYPOGRAPHY
   ============================================ */

.type-intro-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin-top: 52px;
  background: var(--rule);
  border: 1px solid var(--rule);
}

@media (max-width: 780px) {
  .type-intro-grid { grid-template-columns: 1fr; }
}

.type-intro-card { background: var(--cream); padding: 40px; }

.type-sample {
  font-size: 58px;
  line-height: 1;
  margin-bottom: 22px;
  color: var(--navy);
}

.type-sample.serif { font-family: var(--serif); }
.type-sample.sans { font-family: var(--sans); font-weight: 600; }

.type-intro-card h3 {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--olive);
}

.type-intro-card p { margin-bottom: 0; max-width: none; }

.hierarchy-list { margin-top: 60px; border-top: 1px solid var(--rule); }

.hierarchy-row {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 32px;
  padding: 34px 0;
  border-bottom: 1px solid var(--rule);
  align-items: center;
  transition: background-color 0.3s var(--ease);
}

.hierarchy-row:hover { background: var(--navy-wash); }

@media (max-width: 720px) {
  .hierarchy-row { grid-template-columns: 1fr; gap: 12px; }
}

.hierarchy-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--olive);
}

.hierarchy-label small {
  display: block;
  margin-top: 6px;
  font-family: var(--sans);
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--espresso);
  opacity: 0.75;
  font-size: 12px;
}

.hierarchy-sample-headline { font-family: var(--serif); font-size: 38px; color: var(--navy); }
.hierarchy-sample-subhead { font-family: var(--sans); font-weight: 600; font-size: 20px; color: var(--navy); }
.hierarchy-sample-body { font-family: var(--sans); font-weight: 400; font-size: 17px; color: var(--espresso); }
.hierarchy-sample-caption {
  font-family: var(--sans); font-weight: 500; font-size: 13px;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--navy);
}

/* ============================================
   PATTERN
   ============================================ */

.pattern-hero {
  margin-top: 52px;
  height: 340px;
  border-radius: 3px;
  border: 1px solid var(--rule);
  background-image: url('assets/pattern/pattern-navy.png');
  background-repeat: repeat;
  background-size: 108px auto;
  background-color: var(--cream);
  transition: background-size 0.6s var(--ease);
}

.pattern-hero:hover { background-size: 128px auto; }

/* ============================================
   BRAND IN USE — BENTO GRID
   ============================================ */

.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(140px, 220px);
  grid-auto-flow: dense;
  gap: 3px;
  margin-top: 52px;
}

.bento-item {
  overflow: hidden;
  position: relative;
  background: var(--navy);
}

.bento-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease);
}

.bento-item:hover img { transform: scale(1.07); }

.bento-1 { grid-column: span 2; grid-row: span 2; }
.bento-2 { grid-column: span 2; grid-row: span 1; }
.bento-3 { grid-column: span 1; grid-row: span 2; }
.bento-4 { grid-column: span 1; grid-row: span 1; }
.bento-5 { grid-column: span 2; grid-row: span 1; }
.bento-6 { grid-column: span 1; grid-row: span 1; }

@media (max-width: 780px) {
  .bento-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: minmax(160px, 200px); }
  .bento-1, .bento-2, .bento-3, .bento-5 { grid-column: span 2; grid-row: span 1; }
  .bento-4, .bento-6 { grid-column: span 1; }
}

/* ============================================
   THANK YOU
   ============================================ */

.thank-you { background: var(--navy); color: var(--cream); }
.thank-you .eyebrow { color: var(--sand); }
.thank-you h2 { color: var(--cream); }
.thank-you p { color: rgba(242, 238, 233, 0.85); font-size: 18px; max-width: 620px; }

.signature {
  margin-top: 32px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  color: var(--sand);
}

footer {
  background: var(--navy);
  color: rgba(242, 238, 233, 0.5);
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 30px 0;
}
