@font-face {
  font-family: "Manrope";
  src: url("../fonts/Manrope-Variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}

@font-face {
  font-family: "Newsreader";
  src: url("../fonts/Newsreader-Variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}

@font-face {
  font-family: "Newsreader";
  src: url("../fonts/Newsreader-Italic-Variable.ttf") format("truetype");
  font-style: italic;
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --ink: #17313d;
  --paper: #fbfcfa;
  --surface: #edf4f4;
  --surface-raised: #f4f8f7;
  --header: #fff;
  --accent: #007ba3;
  --accent-hover: #006583;
  --accent-soft: #d9f0f5;
  --contact: #8bd5e7;
  --line: #c8d7d8;
  --muted: #526973;
  --display: "Newsreader", Georgia, serif;
  --sans: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

.dark {
  --ink: #ecf5f5;
  --paper: #18262d;
  --surface: #20343d;
  --surface-raised: #263b44;
  --header: #002f54;
  --accent: #72cee7;
  --accent-hover: #9addf0;
  --accent-soft: #173d4b;
  --contact: #72c9df;
  --line: #45606a;
  --muted: #bdced3;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  transition: background-color .3s var(--ease-out), color .3s var(--ease-out);
}

a { text-underline-offset: .2em; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 100;
  padding: .65rem 1rem;
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-180%);
  transition: transform .2s var(--ease-out);
}

.skip-link:focus { transform: translateY(0); }

.site-header,
.top-bar {
  background: var(--header);
  transition: background-color .3s var(--ease-out), box-shadow .3s var(--ease-out);
}

.top-bar {
  max-width: none;
  min-height: 78px;
  padding: 1.15rem clamp(1.25rem, 4vw, 4rem);
  border-bottom: 1px solid var(--line);
  flex-wrap: nowrap;
}

/* Keep Foundation's Top Bar sides on one row at every breakpoint. */
.top-bar .top-bar-left {
  flex: 1 1 auto;
  max-width: none;
  min-width: 0;
  margin-right: auto;
}

.top-bar .top-bar-right {
  flex: 0 0 auto;
  max-width: none;
  margin-left: auto;
}

/* Override Foundation's fixed #e6e6e6 menu surface. */
.top-bar ul { background: transparent; }

.brand,
.off-canvas-brand {
  display: block;
  width: 210px;
  height: 52px;
  overflow: hidden;
}

.brand img,
.off-canvas-brand img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.logo-dark { display: none !important; }
.dark .logo-light { display: none !important; }
.dark .logo-dark { display: block !important; }

.menu a {
  position: relative;
  padding: .55rem .75rem;
  color: var(--ink);
  font-size: .78rem;
  font-weight: 650;
  letter-spacing: .01em;
}

.menu a::after {
  content: "";
  position: absolute;
  right: .75rem;
  bottom: .28rem;
  left: .75rem;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .3s var(--ease-out);
}

.menu a:hover::after,
.menu a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: .6rem;
}

.theme-toggle,
.menu-toggle {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
  transition: transform .5s var(--ease-out);
}

.dark .theme-toggle svg { transform: rotate(180deg); }

.theme-toggle:hover,
.menu-toggle:hover { color: var(--accent); }

.theme-toggle:focus-visible,
.menu-toggle:focus-visible,
a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

.menu-toggle span {
  display: block;
  width: 21px;
  height: 1px;
  margin: 3px 0;
  background: currentColor;
  transition: transform .25s var(--ease-out);
}

.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.mobile-off-canvas {
  padding: 1rem;
  background: var(--header);
  color: var(--ink);
  transition-timing-function: var(--ease-out);
}

.off-canvas-content.has-transition-push {
  transition-timing-function: var(--ease-out);
}

.off-canvas-header {
  display: flex;
  min-height: 60px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.off-canvas-brand { width: 190px; height: 48px; }

.off-canvas-close {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.off-canvas-close svg { width: 22px; height: 22px; }

.off-canvas-close:hover { color: var(--accent); }

.off-canvas-close:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.off-canvas-menu { background: transparent; }

.off-canvas-menu a {
  display: flex;
  min-height: 54px;
  align-items: center;
  padding: .85rem .25rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: -.01em;
}

.off-canvas-menu a:hover,
.off-canvas-menu a:focus-visible { color: var(--accent); }

.hero {
  overflow: hidden;
  background: var(--paper);
}

.hero-copy {
  padding: clamp(4.5rem, 8vw, 6.75rem) clamp(1.25rem, 5vw, 5rem) clamp(4.5rem, 9vw, 7.5rem) max(1.25rem, calc((100vw - 1200px) / 2));
}

h1,
h2,
h3,
p { margin-top: 0; }

h1,
h2 {
  max-width: 14ch;
  margin-bottom: 1.45rem;
  font-family: var(--display);
  font-weight: 520;
  letter-spacing: -.025em;
  line-height: .98;
  text-wrap: balance;
}

h1 {
  max-width: 11ch;
  font-size: clamp(3.45rem, 6.3vw, 6rem);
}

h2 { font-size: clamp(2.65rem, 4.4vw, 4.5rem); }

h1 em,
h2 em {
  color: var(--accent);
  font-weight: 480;
}

h3 {
  margin-bottom: .35rem;
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -.015em;
  line-height: 1.35;
}

.hero-intro {
  max-width: 31rem;
  margin-bottom: 2.4rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.75rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  min-height: 48px;
  margin: 0;
  padding: .95rem 1.25rem;
  border-radius: 0;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .02em;
  white-space: nowrap;
  transition: background-color .25s var(--ease-out), color .25s var(--ease-out), transform .25s var(--ease-out), box-shadow .25s var(--ease-out);
}

.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(0); }

.button-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 24px rgba(8, 59, 77, .16);
}

.button-primary:hover,
.button-primary:focus { background: var(--accent-hover); color: #fff; }

.icon {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  transition: transform .25s var(--ease-out);
}

.button:hover .icon-arrow { transform: translate(2px, -2px); }
.text-link:hover .icon-down { transform: translateY(2px); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding-bottom: .15rem;
  border-bottom: 1px solid currentColor;
  color: var(--ink);
  font-size: .82rem;
  font-weight: 700;
  transition: color .2s ease;
}

.text-link:hover { color: var(--accent); }

.hero-image-wrap {
  align-self: stretch;
  min-height: 600px;
}

.hero-image {
  position: relative;
  height: 100%;
  min-height: 600px;
  overflow: hidden;
}

.hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, color-mix(in srgb, var(--paper) 16%, transparent), transparent 38%);
}

.hero-image img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-note {
  position: absolute;
  right: 1.75rem;
  bottom: 1.75rem;
  z-index: 1;
  color: #fff;
  font-size: .67rem;
  font-weight: 650;
  line-height: 1.6;
  letter-spacing: .09em;
  text-align: right;
  text-transform: uppercase;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .42);
}

.section { padding: clamp(5rem, 10vw, 9rem) 0; }

.approach { background: var(--surface); }
.approach-copy { padding-top: .4rem; }

.lead {
  max-width: 39rem;
  font-family: var(--display);
  font-size: clamp(1.55rem, 2.2vw, 2.05rem);
  font-weight: 430;
  line-height: 1.35;
  letter-spacing: -.015em;
}

.approach-copy p:not(.lead) {
  max-width: 65ch;
  color: var(--muted);
}

.principles { margin-top: clamp(3.5rem, 7vw, 6.5rem); }

.principles article {
  padding-top: 1.15rem;
  border-top: 1px solid var(--ink);
}

.principles p {
  max-width: 32ch;
  color: var(--muted);
  font-size: .93rem;
}

.services { background: var(--paper); }

.services .cell > p { max-width: 55ch; color: var(--muted); }

.service-list article {
  display: flex;
  gap: 1.4rem;
  padding: 1.45rem 0;
  border-top: 1px solid var(--line);
}

.service-list article:last-child { border-bottom: 1px solid var(--line); }
.service-list p { margin-bottom: 0; color: var(--muted); font-size: .9rem; }

.feature-image {
  position: relative;
  height: clamp(360px, 49vw, 670px);
  overflow: hidden;
}

.feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.84) contrast(1.03);
  transition: transform 1.2s var(--ease-out), filter .5s var(--ease-out);
}

.feature-image:hover img { transform: scale(1.018); filter: saturate(.94) contrast(1.03); }

.feature-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(4, 27, 35, .48), transparent 58%);
}

.feature-caption {
  position: absolute;
  bottom: clamp(1.5rem, 5vw, 4.5rem);
  left: clamp(1.25rem, 7vw, 8rem);
  z-index: 1;
  max-width: 13ch;
  color: #fff;
  font: 500 clamp(2.5rem, 4.5vw, 4.75rem) / .98 var(--display);
  letter-spacing: -.025em;
  text-wrap: balance;
}

.about { background: var(--surface-raised); }

.portrait-frame {
  position: relative;
  isolation: isolate;
  margin: 0 1.5rem 1.5rem 0;
}

.portrait-frame::before {
  content: "";
  position: absolute;
  right: -1.5rem;
  bottom: -1.5rem;
  z-index: -1;
  width: 62%;
  height: 62%;
  background: var(--accent);
}

.portrait-frame img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  max-width: 420px;
}

.about p:not(.signature) { max-width: 65ch; color: var(--muted); }

.signature {
  margin-top: 2rem;
  font-family: var(--display);
  font-size: 1.35rem;
  font-style: italic;
}

.contact {
  padding: clamp(5rem, 9vw, 8rem) 0;
  background: var(--contact);
  color: #092f3d;
}

.contact h2 { margin-bottom: 1.2rem; }
.contact h2 em { color: #0d5268; }
.contact p { max-width: 55ch; color: #174c5d; }

.button-light {
  background: #fff;
  color: #0b3b4b;
  box-shadow: 0 10px 28px rgba(9, 47, 61, .14);
}

.button-light:hover,
.button-light:focus { background: #eaf9fc; color: #0b3b4b; }

.contact-note { margin-top: 1rem !important; font-size: .83rem; }
.contact-note a { border-bottom: 1px solid currentColor; color: #0b3b4b; }
.contact a:focus-visible { outline-color: #092f3d; }

.site-footer {
  padding: 3rem 0 1.4rem;
  background: var(--surface);
  color: var(--ink);
}

.footer-brand {
  color: var(--ink);
  font: 700 1.1rem / 1 var(--sans);
  letter-spacing: .12em;
}

.footer-links { display: flex; align-items: flex-end; gap: 1.25rem; }
.footer-links a { color: var(--muted); font-size: .72rem; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.75rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .65rem;
  font-weight: 550;
  letter-spacing: .03em;
}

.legal { padding: clamp(4rem, 8vw, 7rem) 0; }
.legal .grid-container { max-width: 880px; }
.legal h1 { margin-bottom: 1.25rem; font-size: clamp(3.25rem, 7vw, 5.5rem); }
.legal h2 {
  margin: 3rem 0 .65rem;
  font-family: var(--sans);
  font-size: 1.2rem;
  font-weight: 750;
  letter-spacing: -.02em;
  line-height: 1.35;
}
.legal p { max-width: 70ch; }
.legal p a { color: var(--accent); font-weight: 650; }
.legal-back {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  min-height: 44px;
  margin-bottom: clamp(4rem, 8vw, 6.5rem);
  color: var(--ink);
  font-size: .85rem;
  font-weight: 650;
}
.legal-back:hover { color: var(--accent); }
.legal-back:hover .icon { transform: translateX(-2px); }
.legal-date { margin-bottom: 3rem; color: var(--muted); font-size: .85rem; }

/* One authored entrance: the first viewport resolves from copy to place. */
.motion-ready .hero-copy > * {
  animation: copy-in .8s var(--ease-out) both;
}

.motion-ready .hero-copy > :nth-child(2) { animation-delay: .08s; }
.motion-ready .hero-copy > :nth-child(3) { animation-delay: .16s; }

.motion-ready .hero-image {
  animation: image-reveal 1.15s var(--ease-out) both;
}

.motion-ready .hero-image img { animation: image-settle 1.4s var(--ease-out) both; }

@keyframes copy-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes image-reveal {
  from { clip-path: inset(0 0 100% 0); }
  to { clip-path: inset(0); }
}

@keyframes image-settle {
  from { transform: scale(1.045); filter: saturate(.75); }
  to { transform: scale(1); filter: saturate(1); }
}

@media (max-width: 63.9375em) {
  .hero-copy { padding-left: clamp(1.25rem, 5vw, 3rem); }
  .hero-image-wrap,
  .hero-image { min-height: 460px; }
  .about .cell + .cell { margin-top: 3.5rem; }
}

@media (max-width: 39.9375em) {
  .top-bar { min-height: 68px; padding: .75rem 1.15rem; }
  .brand { width: 174px; height: 44px; }
  .hero-copy { padding: 4.5rem 1.25rem 4rem; }
  h1 { font-size: clamp(3.25rem, 15vw, 4.5rem); }
  .hero-image-wrap,
  .hero-image { min-height: 360px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 1rem; }
  .principles article { margin-bottom: 2rem; }
  .services .cell + .cell { margin-top: 3.5rem; }
  .feature-caption { font-size: 2.75rem; }
  .footer-links { margin-top: 2rem; }
  .footer-bottom { flex-direction: column; }
  .about .cell + .cell { margin-top: 3rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .motion-ready .hero-copy > *,
  .motion-ready .hero-image,
  .motion-ready .hero-image img {
    opacity: 1;
    clip-path: none;
    transform: none;
  }
}
