@font-face { font-family: 'Onest'; font-weight: 400; font-style: normal; font-display: swap; src: url('../fonts/onest-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Onest'; font-weight: 500; font-style: normal; font-display: swap; src: url('../fonts/onest-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Onest'; font-weight: 600; font-style: normal; font-display: swap; src: url('../fonts/onest-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Onest'; font-weight: 700; font-style: normal; font-display: swap; src: url('../fonts/onest-latin-700-normal.woff2') format('woff2'); }
:root {
  --teal: #244755; --amber: #C9812F; --amber-light: #DE9A4F; --amber-dark: #8F5A1A;
  --white: #FFFFFF; --paper: #F7F5F0; --ink: #1A2328; --slate: #5B6770; --silver: #C8D0D3;
  --mist: #DCE3E6; --teal-tint: #E8EEF0; --amber-tint: #F8EBDA;
  --font: 'Onest', Arial, sans-serif;
  --wrap: 1160px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 17px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--font); font-weight: 700; color: var(--teal); letter-spacing: -0.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(32px, 5vw, 48px); line-height: 1.1; }
h2 { font-size: clamp(24px, 3vw, 30px); line-height: 1.2; }
h3 { font-size: 19px; line-height: 1.3; }
p { margin: 0 0 1em; }
a { color: var(--amber-dark); }
.wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--teal); color: var(--white); padding: 10px 16px; z-index: 100; }
.skip:focus { left: 0; }
.label { font: 600 13px var(--font); letter-spacing: .16em; text-transform: uppercase; color: var(--slate); margin: 0 0 12px; }
.dim { display: block; margin: 18px 0 22px; }
.ph { background: #FFF200; color: #000; padding: 0 3px; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--mist); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 24px; }
.logo img { height: 38px; width: auto; }
.nav ul { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav a { display: block; padding: 10px 16px; font: 500 16px var(--font); color: var(--teal); text-decoration: none; border-bottom: 3px solid transparent; }
.nav a:hover { border-bottom-color: var(--silver); }
.nav a[aria-current="page"] { border-bottom-color: var(--amber); }
.nav-toggle { display: none; background: none; border: 1.5px solid var(--teal); color: var(--teal); font: 600 15px var(--font); min-height: 44px; padding: 0 16px; border-radius: 0; cursor: pointer; }

/* buttons */
.btn { display: inline-flex; align-items: center; font: 600 15px var(--font); min-height: 44px; padding: 0 22px; border-radius: 0; text-decoration: none; cursor: pointer; border: 0; }
.btn-primary { background: var(--teal); color: var(--white); }
.btn-primary:hover { background: #1b3641; }
.btn-secondary { background: transparent; color: var(--teal); border: 1.5px solid var(--teal); }
.btn-secondary:hover { background: var(--teal-tint); }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }

/* banner */
.banner { background: var(--teal); color: var(--silver); }
.banner .wrap { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 48px; padding-block: 88px; }
.banner h1 { color: var(--paper); max-width: 16ch; }
.banner p { max-width: 52ch; font-size: 19px; }
.banner .btn-primary { background: var(--white); color: var(--teal); }
.banner .btn-primary:hover { background: var(--paper); }
.banner .btn-secondary { color: var(--paper); border-color: var(--paper); }
.banner .btn-secondary:hover { background: rgba(247,245,240,.12); }
.banner .actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.banner .mark { width: 170px; opacity: 1; }
.banner.small .wrap { padding-block: 56px; grid-template-columns: 1fr; }
.banner.small h1 { max-width: none; font-size: clamp(30px, 4vw, 40px); }

/* sections */
section.block { padding-block: 72px; }
.rule { border-top: 2px solid var(--teal); padding-top: 28px; }
.intro { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.catch { font-size: clamp(26px, 3.4vw, 36px); font-weight: 700; color: var(--teal); line-height: 1.2; letter-spacing: -0.01em; margin: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 24px; }

/* parallax project bands */
.band { position: relative; height: clamp(280px, 62vh, 560px); overflow: hidden; background: var(--teal-tint); }
.band .slot { position: absolute; inset: -12% 0; display: flex; align-items: center; justify-content: center; will-change: transform; }
.band .slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ph-label { font: 600 13px var(--font); letter-spacing: .16em; text-transform: uppercase; color: var(--slate); text-align: center; padding: 0 24px; }
.caption { font-size: 14px; color: var(--slate); margin: 10px 0 0; }
.caption-row { padding-block: 0 0; }

/* service tiles */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 32px; margin-top: 36px; }
.tile { display: block; text-decoration: none; color: var(--ink); border-top: 2px solid var(--teal); padding-top: 18px; }
.tile .img { aspect-ratio: 4/3; background: var(--teal-tint); display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; margin-bottom: 18px; }
.tile .img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease, filter .6s ease; }
.tile:hover .img img, .tile:focus-visible .img img { transform: scale(1.08); filter: blur(1.5px); }
.tile h3 { margin-bottom: 6px; }
.tile p { color: var(--slate); font-size: 16px; margin-bottom: 8px; }
.tile .more { font: 600 15px var(--font); color: var(--teal); }
.tile:hover .more { text-decoration: underline; text-decoration-color: var(--amber); text-underline-offset: 4px; }

/* content pages */
.prose { max-width: 70ch; }
.two { display: grid; grid-template-columns: 2fr 1fr; gap: 64px; }
.side .rule { margin-bottom: 32px; }
ul.plain { padding-left: 1.1em; margin: 0 0 1em; }
ul.plain li { margin-bottom: .4em; }
table { border-collapse: collapse; width: 100%; font-size: 16px; }
th { text-align: left; font-weight: 700; color: var(--teal); padding: 10px 12px 10px 0; border-bottom: 3px solid var(--teal); }
td { padding: 14px 12px 14px 0; border-bottom: 1px solid var(--mist); vertical-align: top; }
.crumb { font-size: 14px; color: var(--silver); margin-bottom: 14px; }
.crumb a { color: var(--silver); }

/* form */
form { max-width: 640px; }
.field { margin-bottom: 20px; }
label { display: block; font: 600 15px var(--font); color: var(--teal); margin-bottom: 6px; }
input, select, textarea { width: 100%; font: 400 17px var(--font); color: var(--ink); background: var(--white); border: 1.5px solid var(--slate); border-radius: 0; padding: 11px 12px; min-height: 46px; }
textarea { min-height: 150px; resize: vertical; }
.hp { position: absolute; left: -9999px; }
.form-msg { margin-top: 16px; font-weight: 600; }
.form-msg.err { color: #B4432F; }

/* footer */
.site-footer { background: var(--teal); color: var(--silver); padding-top: 64px; }
.site-footer a { color: var(--silver); }
.site-footer a:hover { color: var(--white); }
.site-footer h3 { color: var(--paper); font-size: 14px; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; margin-bottom: 14px; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1.2fr 1fr auto; gap: 48px; align-items: start; }
.foot-grid img { width: min(340px, 100%); height: auto; margin-bottom: 18px; }
.foot-grid p { margin-bottom: .5em; font-size: 16px; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; }
.foot-grid li { margin-bottom: 8px; font-size: 16px; }
.site-footer .btn-primary { background: var(--white); color: var(--teal); }
.site-footer .btn-primary:hover { background: var(--paper); }
.foot-base { margin-top: 56px; padding-block: 22px; border-top: 1px solid rgba(200,208,211,.3); font-size: 14px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .band .slot { transform: none !important; }
  html { scroll-behavior: auto; }
}

@media (max-width: 900px) {
  .banner .wrap { grid-template-columns: 1fr; padding-block: 56px; }
  .banner .mark { display: none; }
  .intro, .two { grid-template-columns: 1fr; gap: 32px; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .nav-toggle { display: inline-flex; align-items: center; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--mist); }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; padding: 8px 24px 16px; gap: 0; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--mist); }
}
@media (max-width: 560px) {
  .tiles, .foot-grid { grid-template-columns: 1fr; }
  section.block { padding-block: 48px; }
}

/* values */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 32px; margin-top: 36px; }
.value { border-top: 2px solid var(--teal); padding-top: 22px; }
.value svg { margin-bottom: 16px; }
.value p { color: var(--ink); font-size: 16px; }
@media (max-width: 900px) { .values { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .values { grid-template-columns: 1fr; } }

/* portrait photo pair (home) */
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.pf { position: relative; overflow: hidden; background: var(--teal-tint); height: clamp(300px, min(82vh, 62vw), 820px); }
.pf .slot { position: absolute; inset: -9% 0; display: flex; align-items: center; justify-content: center; will-change: transform; }
.pf .slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sidephoto { position: relative; aspect-ratio: 4/5; background: var(--teal-tint); display: flex; align-items: center; justify-content: center; overflow: hidden; margin-bottom: 32px; }
.sidephoto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 560px) { .pf { height: 300px; } }

@media (prefers-reduced-motion: reduce) { .tile .img img { transition: none; } .tile:hover .img img, .tile:focus-visible .img img { transform: none; } }

.pair.compact .pf { height: clamp(280px, 62vh, 560px); }
@media (max-width: 560px) { .pair.compact .pf { height: 260px; } }

/* About: interactive values */
.value { transition: transform .35s ease, border-color .35s ease; cursor: default; }
.value svg { transition: transform .35s ease; }
.value h3 { transition: color .35s ease; }
.value:hover, .value:focus-within { transform: translateY(-8px); border-top-color: var(--amber); }
.value:hover svg, .value:focus-within svg { transform: translateY(-3px) scale(1.12); }
.value:hover h3 { color: var(--amber-dark); }
@media (prefers-reduced-motion: reduce) { .value, .value svg { transition: none; } .value:hover, .value:focus-within, .value:hover svg { transform: none; } }

/* polish */
::selection { background: var(--teal); color: var(--paper); }
h1, h2, h3, .catch { text-wrap: balance; }
p, li { text-wrap: pretty; }
a { text-underline-offset: 3px; }
.btn { transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .1s ease; }
.btn:active { transform: translateY(1px); }
.nav a { transition: border-color .2s ease; }
.tile { transition: border-color .3s ease; }
.tile:hover, .tile:focus-visible { border-top-color: var(--amber); }
.tile .arr { display: inline-block; transition: transform .3s ease; }
.tile:hover .arr, .tile:focus-visible .arr { transform: translateX(5px); }
.tile:hover .more { text-decoration: none; }
.tiles .tile:nth-child(3n+2) { transition-delay: .08s; }
.tiles .tile:nth-child(3n+3) { transition-delay: .16s; }
.tiles .tile.reveal.in { transition-delay: 0s; }
input:user-invalid, textarea:user-invalid { border-color: #B4432F; }
.site-footer a { text-underline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .tile .arr { transition: none; } .tile:hover .arr { transform: none; } }
@media print {
  .site-header, .nav-toggle, .band, .pair, .banner .mark, .actions { display: none !important; }
  .banner, .site-footer { background: none !important; color: #000 !important; }
  .banner h1, .site-footer h3 { color: #000 !important; }
  a { color: #000; }
}
