/* Hallmark v2.0.0 · theme: custom · atmospheric coastal architecture · signature: the house at the edge of the tide */
/* Critique: the title clears the glass before the camera enters the living room and the gallery rises. */
:root {
  --ink: #202522;
  --paper: #eeeee7;
  --white: #fafaf4;
  --muted: #4e5850;
  --line: #a3aaa0;
  --moss: #535e51;
  --night: #151b1a;
  --accent: #e8f2cb;
  --mist: #e3e8db;
  --fog: #fafaf440;
  --nav-dark: #161b19f2;
  --hero-top: #10171576;
  --hero-middle: #12191821;
  --hero-bottom: #101615bd;
  --focus: #956329;
  --font: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(1.25rem, 5vw, 5.5rem);
  --width: 90rem;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 400 1rem/1.5 var(--font); color: var(--ink); background: var(--paper); }
h1, h2, p { margin: 0; }
h1, h2 { min-width: 0; overflow-wrap: break-word; text-wrap: balance; font-weight: 400; letter-spacing: -.075em; line-height: .92; }
h2 { font-size: clamp(3.25rem, 7.1vw, 7.5rem); }
a { color: inherit; text-underline-offset: .25em; }
button, input, select, textarea { font: inherit; }
button, summary { cursor: pointer; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 5px; }
[hidden] { display: none !important; }
.skip, .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.skip:focus { z-index: 9; left: 1rem; top: 1rem; width: auto; height: auto; padding: .65rem 1rem; clip-path: none; background: var(--white); }
.hero { position: relative; isolation: isolate; overflow: clip; color: var(--white); background: var(--moss); min-height: 46rem; min-height: max(46rem, 95svh); display: grid; }
.hero :focus-visible, .dock :focus-visible, .studio :focus-visible, .footer :focus-visible { outline-color: var(--accent); }
.hero-image, .hero-shade { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero-image { object-fit: cover; object-position: 50% 56%; }
.hero-shot { display: none; }
.hero-shade { background: linear-gradient(180deg, var(--hero-top), var(--hero-middle) 49%, var(--hero-bottom)); }
.hero-frame { width: 100%; max-width: 112rem; margin-inline: auto; padding: 0 var(--gutter); display: grid; grid-template-rows: auto 1fr auto; }
.masthead, .hero-caption { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.masthead { min-height: 6rem; border-bottom: 1px solid var(--fog); }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; font-size: 1.3rem; font-weight: 600; letter-spacing: -.045em; }
.brand-studio { opacity: .76; font-weight: 400; margin-left: -.42rem; }
.mark { display: inline-block; position: relative; width: 1.45rem; height: 1.45rem; border: 1px solid currentColor; border-radius: 50%; flex: none; }
.mark::before, .mark::after { position: absolute; content: ""; display: block; height: 1px; width: .78rem; background: currentColor; left: .27rem; transform: rotate(-37deg); }
.mark::before { top: .48rem; }
.mark::after { top: .77rem; }
.mast-action { display: inline-flex; align-items: center; min-height: 2.75rem; gap: .7rem; text-decoration: none; font-size: .9rem; }
.mast-action:hover, .button-text:hover, .footer a:hover { text-decoration: underline; }
.mast-action span { font-size: 1.25rem; line-height: 1; }
.hero-copy { display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; gap: 2rem; padding: clamp(2.15rem, 7vh, 5.5rem) 0 clamp(2rem, 6vh, 4rem); }
.hero h1 { font-size: clamp(4.75rem, 10.3vw, 12rem); }
.hero h1 span { display: block; }
.hero h1 span + span { margin-left: clamp(0rem, 5.5vw, 7rem); }
.hero-sub { align-self: flex-end; max-width: 18rem; }
.hero-sub p { font-size: 1.08rem; line-height: 1.4; margin-bottom: 1rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: .6rem 1.25rem; border: 1px solid var(--night); background: var(--night); color: var(--white); text-decoration: none; }
.button:hover { background: var(--moss); color: var(--white); }
.button:active { transform: translateY(1px); }
button:disabled { opacity: .5; cursor: not-allowed; }
.button-light { border-color: var(--white); background: var(--white); color: var(--night); }
.button-light:hover { background: var(--accent); color: var(--night); }
.hero-caption { min-height: 4.5rem; align-items: flex-start; padding-top: .8rem; border-top: 1px solid var(--fog); font-size: .875rem; }
.dock { display: grid; grid-template-columns: 3rem 1fr 3rem; align-items: center; position: fixed; z-index: 5; left: 50%; bottom: max(1.25rem, env(safe-area-inset-bottom)); transform: translateX(-50%); width: min(18rem, calc(100% - 2.5rem)); min-height: 3.25rem; color: var(--white); border: 1px solid var(--fog); background: var(--nav-dark); }
.dock-home, .nav-menu summary { min-height: 3.1rem; display: grid; place-items: center; }
.dock-home:hover, .nav-menu summary:hover { background: var(--moss); }
.dock-home .mark { transform: scale(.8); }
.dock-label { text-align: center; font-size: .9rem; }
summary { list-style: none; }
summary::-webkit-details-marker { display: none; }
.menu-icon { width: 1rem; height: .46rem; border-block: 1px solid currentColor; }
.nav-menu[open] .menu-icon { transform: rotate(-45deg); }
.nav-panel { position: absolute; width: 100%; left: 0; bottom: calc(100% + .5rem); display: grid; padding: .35rem; border: 1px solid var(--fog); color: var(--white); background: var(--night); }
.nav-panel a { text-decoration: none; padding: .7rem .9rem; }
.nav-panel a:hover, .nav-panel a[aria-current] { background: var(--moss); }
.section { max-width: var(--width); padding-inline: var(--gutter); margin-inline: auto; }
.work, .studio-inner, .brief { padding-block: clamp(4rem, 9vw, 9rem); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; margin-bottom: 2rem; }
.section-head p { max-width: 14rem; }
.gallery-controls { display: flex; flex-wrap: wrap; gap: .55rem; margin-bottom: 1.45rem; }
.gallery-controls button { border: 1px solid var(--line); background: transparent; color: var(--ink); min-height: 2.75rem; padding: .45rem .9rem; }
.gallery-controls button:hover { border-color: var(--ink); }
.gallery-controls button[aria-pressed="true"] { background: var(--night); border-color: var(--night); color: var(--white); }
.project-grid { display: grid; gap: clamp(1.45rem, 2.6vw, 2.5rem); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.project-featured, .project-grid.is-filtered > .project { grid-column: 1 / -1; }
.project-grid.is-filtered > .project { max-width: 50rem; width: 100%; }
.project summary { display: block; }
.project img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; background: var(--moss); }
.project-featured img { aspect-ratio: 2.05; object-position: center 55%; }
.project-title { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.project-title strong, .project-title small { display: block; }
.project-title strong { font-size: clamp(1.5rem, 3vw, 2.35rem); font-weight: 400; letter-spacing: -.055em; line-height: 1.1; }
.project-title small { color: var(--muted); margin-top: .25rem; font-size: .875rem; }
.project-icon { display: grid; place-items: center; flex: none; width: 2.75rem; height: 2.75rem; border: 1px solid var(--line); border-radius: 50%; }
.project-icon::before { content: "+"; font-size: 1.25rem; }
.project-detail[open] .project-icon::before { content: "−"; }
.project summary:hover .project-icon { background: var(--night); color: var(--white); }
.project-description { padding: .9rem 0 .5rem; max-width: 41rem; }
.project-description p { margin-bottom: .5rem; }
.studio { background: var(--moss); color: var(--white); }
.studio-inner, .brief { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 6vw, 7rem); align-items: start; }
.studio-notes { border-bottom: 1px solid var(--fog); }
.studio-notes details { border-top: 1px solid var(--fog); }
.studio-notes summary { display: flex; align-items: center; justify-content: space-between; min-height: 3.6rem; gap: 1rem; font-size: 1.13rem; }
.studio-notes summary::after { content: "+"; }
.studio-notes details[open] summary::after { content: "−"; }
.studio-notes p { max-width: 28rem; padding-bottom: 1rem; }
.brief-intro p { max-width: 23rem; margin-top: 1.45rem; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1rem; }
form label { display: grid; align-content: start; gap: .4rem; font-size: .92rem; }
input, select, textarea { color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: 0; width: 100%; padding: .65rem .75rem; min-height: 2.9rem; }
textarea { resize: vertical; }
.form-actions { display: flex; flex-wrap: wrap; gap: .7rem 1.2rem; align-items: center; margin-top: 1rem; }
.button-text { min-height: 2.75rem; padding: 0; color: var(--ink); border: 0; background: none; }
.form-status { margin-top: .55rem; min-height: 1.5em; color: var(--muted); }
.footer { color: var(--white); background: var(--night); }
.footer-inner { min-height: 10rem; padding-block: 2rem 5rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.footer p { font-size: .875rem; color: var(--mist); }
.grav-site-links { display: flex; flex-wrap: wrap; gap: .6rem 1rem; }
.landing-content { padding-top: 3rem; }
.landing-content > :first-child { margin-top: 0; }
@media (max-width: 46rem) {
  .masthead { min-height: 4.65rem; }
  .hero { min-height: max(39rem, 92svh); }
  .hero-copy { padding-block: 2.6rem 1.8rem; }
  .hero h1 { font-size: clamp(3.55rem, 13vw, 6rem); }
  .hero h1 span + span { margin-left: 0; }
  .hero-sub { align-self: flex-start; }
  .hero-image { object-position: 51% 53%; }
  .hero-caption { min-height: 5rem; }
  .section-head { display: grid; }
  .section-head p { max-width: 24rem; }
  .project-grid, .studio-inner, .brief { grid-template-columns: minmax(0, 1fr); }
  .project-featured img { aspect-ratio: 3 / 2; }
  .footer-inner { display: grid; }
}
@media (max-width: 24rem) {
  .brand { font-size: 1.13rem; gap: .45rem; }
  .brand-studio { margin-left: -.35rem; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) and (min-height: 32rem) {
    body {
      --hero-height: max(46rem, 100svh);
      --camera-travel: clamp(36rem, 94svh, 55rem);
      --gallery-overlap: clamp(6rem, 19svh, 11rem);
      --scene-end: calc(var(--camera-travel) + var(--gallery-overlap));
      --approach-zoom: 2.56;
      --title-in: 11vw;
      --title-out: 30vw;
      --title-return: -24vw;
    }
    .hero-track { min-height: calc(var(--hero-height) + var(--scene-end)); }
    .hero { position: sticky; top: 0; min-height: var(--hero-height); }
    .hero-copy { padding-bottom: calc(clamp(2rem, 6vh, 4rem) + 2.5rem); }
    .hero .hero-image,
    .hero .hero-shot,
    .hero h1 span,
    .hero-caption {
      animation-duration: auto;
      animation-timing-function: linear;
      animation-fill-mode: both;
      animation-timeline: scroll(root block);
      animation-range: 0px var(--camera-travel);
    }
    .hero .hero-image {
      transform-origin: 61% 64%;
      animation-name: approach-house;
    }
    .hero .hero-shot {
      display: block;
      position: absolute;
      inset: 0;
      z-index: -1;
      background-position: center;
      background-repeat: no-repeat;
      background-size: cover;
      transform-origin: 50% 54%;
    }
    .hero-threshold {
      background-image: url("assets/shore-threshold.webp");
      animation-name: reach-glazing;
    }
    .hero-interior {
      background-image: url("assets/shore-interior.webp");
      animation-name: enter-room;
    }
    .hero h1 span {
      animation-name: headline-across;
      animation-range-end: calc(var(--camera-travel) * .49);
    }
    .hero h1 span + span { animation-name: headline-back; }
    .hero-caption { animation-name: caption-drift; animation-range-end: calc(var(--camera-travel) * .49); }
    .hero-track ~ main { position: relative; margin-top: calc(-1 * var(--gallery-overlap)); background: var(--paper); }
    .work { padding-top: clamp(2.25rem, 5svh, 4rem); }
    @media (max-width: 46rem) {
      body {
        --hero-height: max(39rem, 100svh);
        --camera-travel: clamp(25rem, 66svh, 35rem);
        --gallery-overlap: clamp(4.25rem, 13svh, 7rem);
        --approach-zoom: 2.08;
        --title-in: 6vw;
        --title-out: 23vw;
        --title-return: -17vw;
      }
      .hero-copy { padding-bottom: 3.65rem; }
      .hero h1 { font-size: clamp(3.05rem, 13vw, 6rem); }
    }
  }
}
@keyframes approach-house {
  0% { transform: scale(1); }
  23% { transform: scale(1.29); }
  50%, 100% { transform: scale(var(--approach-zoom)); }
}
@keyframes reach-glazing {
  0%, 31% { opacity: 0; transform: scale(1.03); }
  49% { opacity: 1; transform: scale(1.12); }
  79%, 100% { opacity: 1; transform: scale(1.44); }
}
@keyframes enter-room {
  0%, 60% { opacity: 0; transform: scale(1.025); }
  78% { opacity: 1; transform: scale(1.095); }
  100% { opacity: 1; transform: scale(1.18); }
}
@keyframes headline-across {
  0% { opacity: 1; transform: translate(0, 0); }
  43% { opacity: 1; transform: translate(var(--title-in), .07em); }
  72% { opacity: .72; transform: translate(calc(var(--title-out) * .66), -.08em); }
  100% { opacity: 0; transform: translate(var(--title-out), -.4em); }
}
@keyframes headline-back {
  0% { opacity: 1; transform: translate(0, 0); }
  39% { opacity: 1; transform: translate(calc(var(--title-in) * -.42), .27em); }
  72% { opacity: .82; transform: translate(calc(var(--title-return) * .49), .54em); }
  100% { opacity: 0; transform: translate(var(--title-return), .9em); }
}
@keyframes caption-drift {
  0%, 28% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(.45rem); }
}
