/* Jim Hannon-Tan Design — site styles

   Breakpoints follow the original Framer site:
     phone    < 810px
     tablet   810–1439px  (type steps up again from 1024px)
     desktop  ≥ 1440px
   Base rules are the desktop design; media queries below each section adjust it. */

@font-face {
  font-family: "Satoshi";
  src: url("../fonts/satoshi-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Satoshi";
  src: url("../fonts/satoshi-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Satoshi";
  src: url("../fonts/satoshi-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --black: #000;
  --white: #fff;
  --muted: rgba(0, 0, 0, 0.5);
  --menu-bg: #121212;
  --field-bg: rgba(187, 187, 187, 0.15);
  --label: #888;
  --radius: 8px;

  --gutter: 12.5vw;          /* content column is 75% of the viewport */
  --header-h: 117px;         /* space reserved above page content */

  --h2: 30px;
  --body: 18px;
  --body-lh: 1.4;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --shadow-card:
    0 0.71px 0.71px -0.35px rgba(0, 0, 0, 0.05),
    0 1.94px 1.94px -0.7px rgba(0, 0, 0, 0.055),
    0 4.25px 4.25px -1.05px rgba(0, 0, 0, 0.06),
    0 9.44px 9.44px -1.4px rgba(0, 0, 0, 0.07),
    0 24px 24px -1.75px rgba(0, 0, 0, 0.098);
  --shadow-button:
    0 0.71px 1.56px rgba(0, 0, 0, 0.01),
    0 1.94px 4.26px rgba(0, 0, 0, 0.027),
    0 4.25px 9.36px rgba(0, 0, 0, 0.063),
    0 9.44px 20.77px rgba(0, 0, 0, 0.137),
    0 24px 52.8px rgba(0, 0, 0, 0.35);
}

/* Type scale: section headings / body text
   desktop 30/18 · laptop and tablet 30–32/16 · phone 22/15 */
@media (min-width: 810px) and (max-width: 1023px) {
  :root { --body: 16px; }
}
@media (min-width: 1024px) and (max-width: 1439px) {
  :root { --h2: 32px; --body: 16px; }
}
@media (max-width: 809px) {
  :root {
    --gutter: 5vw;
    --header-h: 90px;
    --h2: 22px;
    --body: 15px;
  }
}

/* ---------- Base ---------- */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Satoshi", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: var(--body);
  line-height: var(--body-lh);
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, p, ul, figure { margin: 0; }
address { font-style: normal; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}
/* Elements with light text on a light page, or dark text on a dark panel */
.btn:focus-visible,
.contact-submit:focus-visible { outline-color: var(--black); }
.menu-close:focus-visible { outline-color: var(--white); }

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--black);
  color: var(--white);
  border-radius: var(--radius);
}
.skip-link:focus { top: 16px; }

.nowrap { white-space: nowrap; }

.container {
  width: calc(100% - 2 * var(--gutter));
  margin-inline: auto;
}
/* On tablet the original widens the home page, and the About footer, to 80% */
@media (min-width: 810px) and (max-width: 1439px) {
  .page-home main .container,
  .page-home .site-footer .container,
  .page-about .site-footer .container { width: 80%; }
}

/* Images that fill a fixed or ratio-defined frame */
.frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: #f2f2f2;
}
.frame > img,
.frame > video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.h2 {
  font-size: var(--h2);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.03em;
}
.lead { color: var(--muted); }

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  background: var(--white);
}
.site-header .container {
  position: relative;
  height: 100%;
}

.logo {
  position: absolute;
  top: 37px;
  left: 0;
  display: block;
  width: 59px;
}
.logo img { width: 100%; height: auto; }

.menu-toggle {
  position: absolute;
  top: 38px;
  right: 0;
  display: grid;
  place-items: center;
  width: 45px;
  height: 45px;
  padding: 0;
  background: var(--white);
  border: 1px solid var(--black);
  border-radius: 4px;
  cursor: pointer;
}
.menu-toggle::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--black);
  transition: transform 0.3s var(--ease);
}
.menu-toggle:hover::before { transform: scale(1.4); }

.menu {
  position: absolute;
  top: 38px;
  right: 0;
  width: min(347px, calc(100vw - 2 * var(--gutter)));
  padding: 12px 12px 35px;
  background: var(--menu-bg);
  border-radius: 4px;
  transform-origin: top right;
  transition: opacity 0.25s ease, transform 0.35s var(--ease), visibility 0s linear 0.35s;
}
.menu[hidden] {
  display: block;
  visibility: hidden;
  opacity: 0;
  transform: scale(0.96);
  pointer-events: none;
}
.menu:not([hidden]) {
  transition: opacity 0.25s ease, transform 0.35s var(--ease), visibility 0s;
}
.menu-close {
  display: block;
  width: 20px;
  height: 20px;
  margin-left: auto;
  padding: 0;
  background: var(--white);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}
.menu ul {
  display: grid;
  gap: 15px;
  margin-top: 11px;
  padding-left: 10px;
}
.menu a {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.017em;
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.2s;
}
.menu a:hover,
.menu a:focus-visible,
.menu a[aria-current="page"] { color: var(--white); }

@media (min-width: 810px) and (max-width: 1439px) {
  .site-header { height: 88px; }
  .logo { top: 22px; }
  .menu-toggle,
  .menu { top: 23px; }
}
@media (max-width: 809px) {
  .logo { top: 28px; width: 45px; }
  .menu-toggle,
  .menu { top: 23px; }
  .menu { padding-bottom: 57px; }
  .menu ul { gap: 16px; margin-top: 16px; }
  .menu a { font-size: 20px; line-height: 1.2; }
}

main { padding-top: var(--header-h); }

/* ---------- Buttons ---------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 100%;
  height: 49px;
  padding: 0 20px;
  overflow: hidden;
  font-size: 18px;
  font-weight: 400;
  color: var(--white);
  background: var(--black);
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  isolation: isolate;
}
.btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  transition: transform 0.3s var(--ease);
}
.btn:hover svg { transform: translateX(3px); }
/* The light sweep from the original site */
.btn::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -60%;
  z-index: -1;
  width: 40%;
  height: 200%;
  background: linear-gradient(270deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.35) 50%, rgba(255, 255, 255, 0) 100%);
  transform: rotate(30deg);
  transition: left 0s;
  pointer-events: none;
}
.btn:hover::after {
  left: 130%;
  transition: left 0.8s var(--ease);
}

@media (max-width: 1439px) {
  .btn { height: 44px; font-size: var(--body); }
}

.btn.btn--card {
  gap: 14px;
  height: 51px;
  font-size: 16px;
  font-weight: 500;
  border-radius: 16px;
  box-shadow: var(--shadow-button);
}

/* ---------- Reveal on scroll ---------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.9s ease, transform 0.9s var(--ease);
}
.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .btn::after { display: none; }
}

/* ---------- Home: hero ---------- */

.hero {
  display: grid;
  place-items: center;
  height: 100vh;
  height: 100svh;
  min-height: 480px;
  margin-top: calc(-1 * var(--header-h));
  text-align: center;
}
.hero h1 {
  font-size: 64px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.04em;
}
@media (min-width: 1024px) and (max-width: 1439px) {
  .hero h1 { font-size: 56px; }
}
@media (min-width: 810px) and (max-width: 1023px) {
  .hero h1 { font-size: 46px; }
}
@media (max-width: 809px) {
  .hero {
    height: 75vh;
    height: 75svh;
    min-height: 400px;
  }
  .hero h1 { font-size: 35px; }
}

/* ---------- Home: work mosaic ---------- */

.work { padding-top: 8px; }

/* Tablet and phone: three equal columns, large tiles span 2 × 2 */
.mosaic {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  width: calc(80vw - 140px);
  margin-inline: auto;
}
@media (min-width: 1440px) {
  .mosaic {
    grid-template-columns: 200fr 383fr 200fr;
    width: min(811px, 100%);
  }
}
@media (max-width: 1439px) {
  .work { padding-top: 0; }
}
@media (max-width: 809px) {
  .mosaic {
    gap: 8px;
    width: 100%;
  }
}

.tile {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: #eee;
}
.tile--sm { aspect-ratio: 1; }
.tile > img,
.tile > video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tile > video {
  opacity: 0;
  transition: opacity 0.4s ease;
}
.tile > video.is-playing { opacity: 1; }

.tile figcaption {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  font-size: 40px;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  color: var(--white);
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.tile figcaption.is-long { font-size: 35px; }
@media (hover: hover) {
  .tile:hover figcaption { opacity: 1; }
}
@media (max-width: 1439px) {
  .tile figcaption,
  .tile figcaption.is-long { font-size: clamp(14px, 2.6vw, 30px); }
}

.t-titomic   { grid-area: 1 / 1; }
.t-nfc       { grid-area: 2 / 1; }
.t-alimetry  { grid-area: 1 / 2 / 3 / 4; }
.t-schneider { grid-area: 3 / 1 / 5 / 3; }
.t-alessi    { grid-area: 3 / 3; }
.t-nesting   { grid-area: 4 / 3; }
@media (max-width: 1439px) {
  .t-alessi  { grid-area: 4 / 3; }
  .t-nesting { grid-area: 3 / 3; }
}

/* ---------- Two-column feature: text + image (home Practice, About Start a Project) ---------- */

.feature-grid {
  display: grid;
  gap: 24px;
}
.feature-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.feature-text > p { margin-top: 24px; }
.feature-text > p + p { margin-top: 12px; }
.feature-text > p:last-of-type { margin-bottom: 32px; }
.feature-statement {
  font-size: 22px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
@media (max-width: 1439px) {
  .feature-statement { font-size: 20px; }
}
@media (max-width: 809px) {
  .feature-statement { font-size: 18px; }
}
.feature-text .btn { margin-top: auto; }

.feature-title {
  font-size: var(--h2);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.03em;
}

@media (max-width: 809px) {
  .feature-grid { grid-template-columns: 1fr; gap: 28px; }
  .feature-media { order: -1; }
}

/* Home: Practice */
.feature--practice { padding-block: 236px 228px; }
.feature--practice .feature-grid { grid-template-columns: 408fr 648fr; }
.feature--practice .feature-media { min-height: 386px; }
@media (min-width: 810px) and (max-width: 1439px) {
  .feature--practice { padding-block: 125px 124px; }
  .feature--practice .feature-grid { grid-template-columns: minmax(0, 1fr) 50%; }
  .feature--practice .feature-media { min-height: 227px; }
}
@media (max-width: 809px) {
  .feature--practice { padding-block: 148px 147px; }
  .feature--practice .feature-grid { grid-template-columns: 1fr; }
  .feature--practice .feature-media { height: 223px; }
  .feature--practice .feature-text > p:first-of-type { margin-top: 14px; }
  .feature--practice .feature-text > p:last-of-type { margin-bottom: 28px; }
}

/* ---------- About ---------- */

.about-intro { padding-top: calc(200px - var(--header-h)); }

.split {
  display: grid;
  gap: 24px;
}
.split--studio { grid-template-columns: 292fr 778fr; column-gap: 10px; }
.split--bio { grid-template-columns: 548fr 508fr; margin-top: 150px; }
.split .h2 + p { margin-top: 24px; }

.media-studio { height: 481px; }
.media-portrait { height: 682px; }
.media-portrait img { object-position: 50% 0; }

@media (max-width: 1439px) {
  .split--studio,
  .split--bio { grid-template-columns: 1fr; }
  .split--studio { row-gap: 34px; }
  .split--studio .frame { order: -1; }
  .split--bio { margin-top: 120px; }
  .media-studio { height: 443px; }
  .media-studio img { object-position: 0 50%; }
}
@media (max-width: 809px) {
  .media-studio { height: 234px; }
  .media-portrait { height: 392px; }
}

.facts {
  display: grid;
  gap: 10px;
  margin-top: 90px;
}
.fact {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 10px;
}
.fact h3 {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.017em;
  color: var(--muted);
}
.fact h3 + * { padding-top: 4px; }

/* Awards & Exhibitions: year column + entries, one block per year */
.awards { margin: 0; }
.awards > div {
  display: grid;
  grid-template-columns: 4.5em minmax(0, 1fr);
  column-gap: 16px;
  padding-block: 10px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}
.awards > div:first-child { padding-top: 0; border-top: 0; }
.awards > div:last-child { padding-bottom: 0; }
.awards dt {
  grid-row: 1;
  grid-column: 1;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.awards dd {
  grid-column: 2;
  margin: 0;
}
.awards dd + dd { margin-top: 4px; }
@media (max-width: 1023px) {
  .fact h3 { font-size: 20px; }
}
@media (max-width: 809px) {
  .facts { gap: 35px; margin-top: 95px; }
  .fact { grid-template-columns: 1fr; gap: 10px; }
  .fact h3 + * { padding-top: 0; }
}

.ecosystem { padding-top: 179px; }
.ecosystem .pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 20px;
}
.ecosystem .pair .frame { height: 395px; }
.ecosystem .pair .frame:last-child img { object-position: 0 0; }
.ecosystem .pair + p { margin-top: 20px; }
@media (min-width: 810px) and (max-width: 1439px) {
  .ecosystem { padding-top: 145px; }
  .ecosystem .pair .frame { height: 225px; }
}
@media (max-width: 809px) {
  .ecosystem { padding-top: 66px; }
  .ecosystem .pair { gap: 25px; }
  .ecosystem .pair .frame { height: 182px; }
}

.feature--about { padding-block: 304px 175px; }
.feature--about .feature-grid { grid-template-columns: 1fr 1fr; }
.feature--about .feature-media { height: 395px; }
@media (min-width: 810px) and (max-width: 1439px) {
  .feature--about { padding-block: 180px 86px; }
  .feature--about .feature-media { height: 282px; }
}
@media (max-width: 809px) {
  .feature--about { padding-block: 82px 139px; }
  .feature--about .feature-grid { grid-template-columns: 1fr; }
  .feature--about .feature-media { height: 275px; }
  .feature--about .feature-text > p { margin-top: 25px; margin-bottom: 27px; }
}

/* ---------- How We Work ---------- */

.how-hero { padding-top: calc(200px - var(--header-h)); }
.how-hero .frame { aspect-ratio: 1080 / 556; }
.how-intro { margin-top: 76px; }
.how-intro p { margin-top: 16px; }

.cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  margin-top: 80px;
  padding-bottom: 139px;
}
.card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 404px;
  padding: 52px 36px 48px;
  background: var(--white);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
}
.card-title {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.017em;
}
.card-sub {
  margin-top: 14px;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.01em;
}
.card p { margin-top: 14px; }
.card .btn { margin-top: auto; }
@media (min-width: 810px) {
  .card p { max-width: 417px; }
}

@media (min-width: 810px) and (max-width: 1439px) {
  .how-intro { margin-top: 97px; }
}
@media (min-width: 1024px) and (max-width: 1439px) {
  .cards { gap: 48px; margin-top: 70px; padding-bottom: 120px; }
  .card-sub { font-size: 18px; }
}
@media (min-width: 810px) and (max-width: 1023px) {
  .cards { grid-template-columns: 1fr; gap: 80px; margin-top: 70px; padding-bottom: 50px; }
  .card-sub { font-size: 18px; }
}
@media (max-width: 1023px) {
  .card-title { font-size: 20px; }
}
@media (max-width: 809px) {
  .how-hero { padding-top: 43px; }
  .how-hero .frame { aspect-ratio: auto; height: 282px; }
  .how-intro { margin-top: 54px; }
  .cards { grid-template-columns: 1fr; gap: 24px; margin-top: 98px; padding-bottom: 95px; }
  .card-sub { font-size: 16px; }
}
@media (max-width: 359px) {
  .card { padding-inline: 24px; }
  .btn.btn--card { gap: 10px; padding-inline: 16px; }
}

/* ---------- Footer ---------- */

.site-footer {
  padding-block: 70px 83px;
  color: var(--white);
  background: var(--black);
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: -0.01em;
}
.footer-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
}
.footer-title {
  display: inline-block;
  font-size: 30px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0;
  color: var(--white);
}
.footer-title + * { margin-top: 12px; }
.site-footer a:hover { opacity: 0.7; }
.copyright { margin-top: 70px; }
.footer-connect { margin-top: 37px; }
.social {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-top: 30px;
}
.social a {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  opacity: 0.8;
}
.social a:hover { opacity: 1; }
.social svg { width: 100%; height: 100%; }

@media (max-width: 809px) {
  .site-footer { padding-block: 88px 70px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-col { display: contents; }
  .footer-call { order: 1; }
  .footer-visit { order: 2; margin-top: 82px; }
  .footer-connect { order: 3; margin-top: 64px; }
  .copyright { order: 4; margin-top: 58px; }
  .social { margin-top: 11px; gap: 7px; }
  .footer-title { font-size: 26px; }
}

/* ---------- Contact dialog ---------- */

.contact-dialog {
  width: min(550px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  overflow: auto;
  color: var(--black);
  background: var(--white);
  border: 0;
  border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}
.contact-dialog::backdrop {
  background: rgba(0, 0, 0, 0.8);
}
.contact-dialog[open] {
  animation: dialog-in 0.35s var(--ease);
}
@keyframes dialog-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .contact-dialog[open] { animation: none; }
}
@media (max-width: 809px) {
  .contact-dialog {
    width: calc(100vw - 60px);
    max-height: calc(100dvh - 126px);
    margin: 110px auto auto;
  }
}

.contact-inner { padding: 20px; }

.contact-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.contact-head h2 {
  font-size: 30px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.03em;
}
@media (max-width: 809px) {
  .contact-head h2 { font-size: var(--h2); }
}
.contact-close {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  font-size: 24px;
  line-height: 1;
  color: var(--black);
  background: transparent;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}
.contact-close:hover { background: var(--field-bg); }

.contact-form {
  display: grid;
  gap: 20px;
  margin-top: 20px;
}
.contact-form[hidden] { display: none; }
.field {
  display: grid;
  gap: 10px;
}
.field span {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--label);
}
.field input,
.field textarea {
  width: 100%;
  padding: 12px;
  font: inherit;
  font-size: 14px;
  line-height: 1.2;
  color: var(--black);
  background: var(--field-bg);
  border: 1px solid transparent;
  border-radius: 10px;
  outline: none;
  transition: border-color 0.2s;
}
/* 16px stops iOS from zooming the page when a field gets focus */
@media (pointer: coarse) {
  .field input,
  .field textarea { font-size: 16px; }
}
.field input { height: 40px; }
.field textarea { height: 145px; resize: vertical; }
.field input:focus,
.field textarea:focus { border-color: rgba(0, 0, 0, 0.35); }
.field ::placeholder { color: #999; }

.contact-submit {
  height: 40px;
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  background: #333;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s;
}
.contact-submit:hover { background: var(--black); }
.contact-submit[disabled] { opacity: 0.6; cursor: progress; }

.contact-status {
  font-size: 14px;
  line-height: 1.4;
}
.contact-status:empty { display: none; }
.contact-status.is-error { color: #b3261e; }

.contact-done {
  padding: 8px 0 16px;
}
/* After sending, show only the thank-you message (the × stays to close it) */
.contact-dialog.is-done .contact-head h2 { display: none; }
.contact-close { margin-left: auto; }
.contact-done:focus { outline: none; }
.contact-done p + p { margin-top: 8px; color: var(--muted); }

.hp { display: none !important; }

/* ---------- 404 ---------- */

.not-found {
  display: grid;
  align-content: center;
  gap: 24px;
  min-height: calc(100svh - var(--header-h) - 240px);
  padding-block: 80px;
}
.not-found .btn { width: auto; justify-self: start; }
