:root {
  --ink: #151515;
  --paper: #f2f0e9;
  --cream: #e5e1d4;
  --blue: #2450ff;
  --lime: #d8ff43;
  --orange: #ff6b35;
  --line: rgba(21, 21, 21, 0.24);
  --max: 1240px;
  --pad: clamp(1.25rem, 4vw, 3.5rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Arial, Helvetica, sans-serif; line-height: 1.5; }
img { display: block; max-width: 100%; }
a { color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
.skip-link { position: fixed; top: .75rem; left: .75rem; z-index: 100; transform: translateY(-180%); padding: .65rem 1rem; background: var(--ink); color: #fff; }
.skip-link:focus { transform: translateY(0); }

.site-header, .hero, .section, .contact-section, .site-footer { width: min(100%, var(--max)); margin-inline: auto; padding-inline: var(--pad); }
.site-header { position: relative; display: flex; align-items: center; justify-content: space-between; min-height: 5.25rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; font-weight: 700; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 2.25rem; aspect-ratio: 1; border-radius: 50%; background: var(--ink); color: var(--paper); font-size: .75rem; }
.site-nav { display: flex; gap: clamp(1rem, 2.5vw, 2rem); }
.site-nav a, .site-footer a { text-decoration-thickness: 1px; text-underline-offset: .28rem; }
.menu-button { display: none; }

.eyebrow, .hero-role { margin: 0; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
h1, h2, h3 { margin: 0; letter-spacing: -.06em; line-height: .95; }
.hero-stage { position: relative; min-height: clamp(43rem, calc(100svh - 7rem), 57rem); overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); isolation: isolate; }
.hero-label { position: absolute; top: 1.25rem; left: 0; z-index: 5; }
.cis-logo { position: absolute; top: .9rem; right: 0; z-index: 5; width: clamp(12rem, 18vw, 17rem); height: auto; }
.hero-title { position: absolute; inset: 5.7rem 0 auto; z-index: 1; font-size: clamp(6.5rem, 17.5vw, 14rem); line-height: .72; letter-spacing: -.085em; text-transform: uppercase; }
.hero-title span { display: block; }
.hero-title span:first-child { color: var(--blue); }
.hero-title span:last-child { margin-left: 27%; }
.hero-portrait { position: absolute; right: clamp(2rem, 8vw, 8rem); bottom: -1px; z-index: 2; height: 88%; width: auto; }
.hero-intro { position: absolute; left: 0; bottom: 2rem; z-index: 4; width: min(28rem, 44%); padding-top: 1rem; background: linear-gradient(to right, var(--paper) 75%, transparent); }
.hero-intro > p:not(.hero-role) { margin: .65rem 0 1.2rem; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 2rem; min-width: 14rem; padding: .9rem 1rem; border: 1px solid currentColor; font-weight: 700; text-decoration: none; transition: transform 160ms ease, background-color 160ms ease, color 160ms ease; }
.button:hover, .button:focus-visible { transform: translateY(-2px); }
.button-dark { background: var(--ink); color: #fff; }

.section { padding-top: clamp(5rem, 10vw, 9rem); padding-bottom: clamp(5rem, 10vw, 9rem); }
.section h2 { font-size: clamp(3.6rem, 8vw, 7rem); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 3rem; margin-bottom: 3rem; }
.section-heading > p { max-width: 24rem; margin: 0; }
.section-heading .eyebrow { margin-bottom: 1rem; }
.about { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(3rem, 8vw, 8rem); border-bottom: 1px solid var(--line); }
.about .eyebrow { margin-bottom: 1rem; }
.about-copy { align-self: end; }
.about-copy > p { margin: 0 0 2.5rem; font-size: clamp(1.15rem, 2vw, 1.45rem); }
.facts { margin: 0; border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: 7rem 1fr; gap: 1rem; padding: .85rem 0; border-bottom: 1px solid var(--line); }
.facts dt { font-weight: 700; }
.facts dd { margin: 0; }

.photography .section-heading { border-bottom: 1px solid var(--line); padding-bottom: 2rem; }
.photo-grid { display: grid; grid-template-columns: 1.35fr .65fr; gap: 1rem; }
.photo-card { margin: 0; }
.photo-card img { width: 100%; height: 100%; object-fit: cover; }
.photo-wide img { aspect-ratio: 16 / 10; }
.photo-tall { grid-row: span 2; }
.photo-tall img { aspect-ratio: 3 / 4; }
.photo-card figcaption { display: flex; justify-content: space-between; gap: 1rem; padding: .75rem 0 1.25rem; border-bottom: 1px solid var(--line); }
.photo-card figcaption span { text-align: right; }
.mountain-series { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 4rem; }
.mountain-series img { aspect-ratio: 16 / 10; }

.apps { background: var(--cream); }
.app-grid { display: grid; grid-template-columns: repeat(2, 1fr); }
.app-card { position: relative; min-height: 20rem; padding: 2rem; border: 1px solid var(--ink); color: var(--ink); text-decoration: none; transition: background-color 160ms ease, color 160ms ease; }
.app-card:nth-child(even) { border-left: 0; }
.app-card:nth-child(n+3) { border-top: 0; }
.app-card h3 { max-width: 8ch; margin: 1.25rem 0 1rem; font-size: clamp(2.4rem, 5vw, 4.7rem); }
.app-card p { max-width: 26rem; }
.app-index { font-size: .78rem; font-weight: 700; }
.app-sign { display: grid; place-items: center; width: 4.25rem; aspect-ratio: 1; margin-top: 2rem; border: 1px solid currentColor; border-radius: 50%; font-size: 1.35rem; font-weight: 800; letter-spacing: -.06em; }
.app-arrow { position: absolute; top: 1.5rem; right: 1.5rem; font-size: 1.6rem; }
.app-card:hover, .app-card:focus-visible { background: var(--blue); color: #fff; }
.app-card.accent-lime:hover, .app-card.accent-lime:focus-visible { background: var(--lime); color: var(--ink); }
.app-card.accent-orange:hover, .app-card.accent-orange:focus-visible { background: var(--orange); color: var(--ink); }
.app-wide { grid-column: 1 / -1; }

/* JavaScript supplies a new pale RGB colour on every mouse entry or keyboard focus. */
a[data-random-hover]:hover,
a[data-random-hover]:focus-visible {
  background: var(--random-hover-color) !important;
  color: var(--ink) !important;
}

.contact-section { position: relative; min-height: clamp(38rem, 60vw, 50rem); padding-top: clamp(5rem, 10vw, 9rem); padding-bottom: clamp(5rem, 10vw, 9rem); background: var(--blue); color: #fff; }
.contact-section h2 { margin: 1rem 0 2.5rem; font-size: clamp(4rem, 11vw, 8.5rem); line-height: .82; }
.contact-section > a { display: inline-block; font-size: clamp(1rem, 2.5vw, 1.75rem); font-weight: 700; text-underline-offset: .4rem; }
.signature { position: absolute; right: clamp(3rem, 10vw, 9rem); bottom: clamp(6rem, 13vw, 11rem); margin: 0; font-family: "Brush Script MT", "Segoe Script", "Bradley Hand", cursive; font-size: clamp(4rem, 8vw, 7rem); letter-spacing: -.06em; line-height: 1; transform: rotate(-6deg); }
.signature::after { content: ""; display: block; width: 108%; height: 3px; margin: .15rem 0 0 -4%; border-radius: 50%; background: currentColor; transform: rotate(-2deg); }
.site-footer { display: flex; justify-content: space-between; padding-top: 1.5rem; padding-bottom: 2rem; background: var(--ink); color: #fff; }
.site-footer p { margin: 0; }

@media (max-width: 760px) {
  .menu-button { display: grid; gap: .35rem; width: 2.5rem; padding: .75rem; border: 0; background: transparent; cursor: pointer; }
  .menu-button span:not(.sr-only) { display: block; height: 1px; background: currentColor; }
  .site-nav { position: absolute; top: 4.6rem; left: var(--pad); right: var(--pad); z-index: 20; display: none; flex-direction: column; gap: 0; padding: .5rem 1rem; background: var(--ink); color: #fff; }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: .9rem 0; }
  .hero-stage { min-height: 49rem; }
  .hero-label { max-width: 48%; }
  .cis-logo { top: 1rem; width: 9.5rem; }
  .hero-title { inset-block-start: 5.5rem; font-size: clamp(4.7rem, 22vw, 8rem); line-height: .78; }
  .hero-title span:last-child { margin-left: 10%; }
  .hero-portrait { right: -8%; bottom: 10rem; height: 61%; max-width: 78%; }
  .hero-intro { bottom: 0; width: 100%; padding: 2.5rem 1rem 1rem; background: linear-gradient(to bottom, transparent, var(--paper) 18%); }
  .hero-intro .button { width: 100%; }
  .section-heading { align-items: start; flex-direction: column; }
  .about, .photo-grid, .mountain-series, .app-grid { grid-template-columns: 1fr; }
  .photo-tall { grid-row: auto; }
  .app-card:nth-child(even) { border-left: 1px solid var(--ink); }
  .app-card:nth-child(n+2) { border-top: 0; }
  .app-wide { grid-column: auto; }
  .contact-section { min-height: 43rem; }
  .signature { right: var(--pad); bottom: 5rem; font-size: clamp(3.4rem, 17vw, 5rem); }
  .site-footer { gap: 1rem; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
