@font-face {
  font-family: Pretendard;
  src: url("/assets/pretendard.woff2") format("woff2");
  font-weight: 45 920;
  font-display: swap;
}

:root {
  --white: #fff;
  --section-surface: var(--white);
  /* White carries the content; blue depth is reserved for openings and selected features. */
  --hero-surface: radial-gradient(ellipse at 88% 20%, rgb(61 138 203 / 19%), transparent 66%), linear-gradient(110deg, #f8fbff, #edf5fd);
  --feature-surface: linear-gradient(135deg, #f8fbff, #eef5fd);
  --paper-soft: #f1f4f7;
  --ink-deep: #1a2028;
  --quiet: #5a6370;
  --ink: #252c35;
  --muted: #4b5561;
  --line: #dfe4ea;
  --brand: #2076c3;
  --brand-hover: #1261a4;
  --brand-paper: #eef5fd;
  --blue: var(--brand);
  --blue-paper: var(--brand-paper);
  /* GICUS leads with blue; the legacy --navy token remains the dark text color. */
  --navy: #1a2028;
  /* Deep grounds use the palette's dark Neutral; the main colours light up on it (DESIGN.md Colors). */
  --charcoal: #1a2028;
  --dark: #1a2028;
  --dark-hover: #343d48;
  --dark-raised: #242b34;
  --blue-on-dark: #7cb9f0;  /* Brand Blue lifted for dark grounds: 7.6:1 on #1a2028 */
  --charcoal-line: rgb(255 255 255 / 14%);
  --on-dark: #fff;
  --on-dark-muted: #b3bcc7;
  --chrome-bg: var(--white);
  --chrome-outline: #d3d9e0;
  --chrome-hover: var(--brand-paper);
  --action: var(--brand);
  --action-hover: var(--brand-hover);
  --brand-mid: #3d8acb;
  --brand-soft: #6b9cc8;
  /* Accent Orange: the logo's colour and the premium service's mark. */
  --accent: #eb6406;        /* marks, icons, large headings (3.3:1) and any text on charcoal (5.2:1) */
  --accent-strong: #c65300; /* small orange text on white only (4.5:1) */
  --accent-hover: #d95700;
  --accent-paper: #fff0e6;
  --radius: 13px;
  --radius-lg: 22px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --grid-gap: clamp(var(--space-4), 2.4vw, var(--space-6));
  --section-space: clamp(64px, 6vw, 96px);
  /* 모서리(DESIGN.md Shapes): 내용이 담긴 면은 둥글게, 누르는 것은 알약으로. */
  --radius-media: 16px;  /* 사진·증서·화면 썸네일 */
  --radius-card: 20px;   /* 카드·펼침 목록 */
  --radius-panel: 24px;  /* 큰 패널 */
  /* 버튼: 높이는 두 가지, 모양은 알약 */
  --button-height: 48px;
  --button-height-lg: 56px;
  --button-radius: 999px;
  /* 제목 크기. 화면 폭에 따라 스스로 줄어들므로 화면 폭별로 다시 정하지 않는다. */
  --fs-h1-hero: clamp(2.25rem, 4.5vw, 4.25rem); /* 사진이 깔린 머리 */
  --fs-h1-page: clamp(2rem, 3.6vw, 3.5rem);      /* 띠 형식 머리 */
  --fs-h2: clamp(1.875rem, 3.2vw, 3rem);        /* 구간 제목 */
  --fs-h3: clamp(1.3125rem, 1.7vw, 1.5rem);     /* 카드·단계 제목 */
  /* 본문 쪽 크기 */
  --fs-lead: 1.25rem;
  --fs-body: 1.0625rem;
  --fs-ui: 1rem;
  --fs-small: .875rem;
  --fs-caption: .8125rem;
  --page-title-size: var(--fs-h1-page);
  --section-title-size: clamp(1.55rem, 3vw, 2.25rem);
  --body-size: 1.0625rem;
  --text-small: .875rem;
  --text-label: .8125rem;
  --gutter: max(clamp(20px, 4.6vw, 76px), env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
  --site-width: 1320px;
  --header-height: 80px;
  --font-sans: Pretendard, "Malgun Gothic", sans-serif;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--white);
}
/* Public product actions use brand blue, independently of the admin area. */
html:root {
  --input-border-hover: #7a8591;
  --button-state-primary: var(--brand);
  --button-state-primary-hover: var(--action-hover);
  --button-state-hover-bg: var(--brand-paper);
  --button-state-hover-border: #7a8591;
  --button-state-focus: var(--brand-mid);
}

@media (max-width: 1080px) {
  :root { --section-space: 72px; }
}
@media (max-width: 767px) {
  :root { --section-space: 56px; }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--header-height) + var(--space-5)); }
body { margin: 0; font-size: var(--body-size); font-weight: var(--fw-body); line-height: 1.7; }
::selection { background: #d0e2f5; color: var(--ink-deep); }
h1, h2, h3, h4, p, figure { margin: 0; }
h1, h2, h3, h4 { line-height: 1.24; letter-spacing: -.04em; }
a { color: inherit; text-decoration: none; }
button, input, select, option, textarea { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 4px; }
/* A field in focus draws one 2px Brand Blue line where its border is, not a second ring beside it. */
:is(input, textarea, select):focus { border-color: var(--brand); outline: 2px solid var(--brand); outline-offset: -2px; box-shadow: none; }
:is(input[type="checkbox"], input[type="radio"]):focus-visible { outline: 2px solid var(--navy); outline-offset: -2px; }
[hidden] { display: none !important; }
.container { width: min(calc(100% - 2 * var(--gutter)), var(--site-width)); margin-inline: auto; }

.media-frame {
  position: relative;
  width: 100%;
  min-width: 0;
  aspect-ratio: 3 / 2;
  overflow: clip;
  border-radius: var(--radius-media);
  background: var(--paper-soft);
}
.media-frame > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: clamp(10px, 1.15vw, 18px);
  object-fit: contain;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: var(--space-2);
  left: var(--space-3);
  transform: translateY(-180%);
  padding: 10px 18px;
  background: var(--ink);
  color: var(--white);
}
.skip-link:focus { transform: none; }

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  background: var(--chrome-bg);
  color: var(--ink-deep);
  border-bottom: 1px solid #e3e7ec;
}
.site-header-placeholder { display: none; }
.site-header :focus-visible { outline-color: var(--brand); }
.site-footer :focus-visible { outline-color: var(--on-dark); }
/* The VICTORIM mark keeps its own orange on both; the black GICUS wordmark turns white on the charcoal footer. */
.site-footer .footer-logos img.footer-gicus { filter: brightness(0) invert(1); }
.site-header-inner {
  --header-inset: 0px;
  --header-start: max(var(--header-inset), env(safe-area-inset-left));
  --header-end: max(var(--header-inset), env(safe-area-inset-right));
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  min-height: calc(var(--header-height) - 1px);
  align-items: center;
  column-gap: var(--space-4);
  padding-inline: var(--header-start) var(--header-end);
  width: min(calc(100% - 2 * var(--gutter)), var(--site-width));
  margin-inline: auto;
}
.brand { display: inline-flex; width: fit-content; align-items: center; }
.brand img { width: 112px; height: auto; }
.site-nav { display: flex; align-self: stretch; gap: clamp(24px, 2.5vw, 40px); }
.site-nav > a, .nav-trigger {
  display: flex;
  position: relative;
  align-items: center;
  font-size: .9375rem;
  font-weight: var(--fw-strong);
  white-space: nowrap;
}
.nav-group { position: relative; display: flex; }
.nav-trigger {
  gap: var(--space-1);
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
}
.ui-icon { width: 1.1em; height: 1.1em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nav-trigger .ui-icon, .menu-toggle .ui-icon { width: 14px; height: 14px; }
.nav-trigger[aria-expanded="true"] svg { transform: rotate(180deg); }
.site-header .nav-trigger:focus-visible { outline-offset: -2px; }
.site-nav > a::after, .nav-trigger::after {
  position: absolute;
  right: 0;
  bottom: calc(50% - 16px);
  left: 0;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  content: "";
}
.site-nav > a:is(:focus-visible, [aria-current])::after,
.nav-trigger:is(:focus-visible, [aria-expanded="true"], [data-current])::after { transform: scaleX(1); }
.site-nav > a:is(:focus-visible, [aria-current]),
.nav-trigger:is(:focus-visible, [aria-expanded="true"], [data-current]) { color: var(--brand); }
.nav-submenu {
  --submenu-gap: 12px;
  position: absolute;
  z-index: 1;
  inset-block-start: calc(100% + var(--submenu-gap));
  inset-inline-start: 50%;
  display: grid;
  gap: var(--space-1);
  width: max-content;
  margin: 0;
  padding: var(--space-2);
  translate: -50% 0;
  background: var(--white);
  color: var(--navy);
  border: 1px solid var(--line);
  border-radius: var(--radius-media);
  list-style: none;
}
.nav-submenu::before {
  position: absolute;
  inset: auto 0 100%;
  height: var(--submenu-gap);
  content: "";
}
.nav-submenu a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: var(--space-2) clamp(12px, 1.1vw, 20px);
  font-size: var(--text-small);
  font-weight: var(--fw-body);
  white-space: nowrap;
}
.nav-submenu a { border-radius: 10px; }
.nav-submenu a[aria-current="page"] { background: var(--brand-paper); color: var(--brand-hover); }
.nav-submenu a[aria-current="page"] { font-weight: var(--fw-heading); }
.nav-submenu a:focus-visible { outline-color: var(--brand); outline-offset: -2px; }
.site-actions { display: flex; align-items: center; justify-self: end; gap: var(--space-2); }
.header-contact {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: var(--space-2);
  padding-inline: 20px;
  border-radius: 999px;
  color: var(--white);
  background: var(--brand);
  font-size: .875rem;
  font-weight: var(--fw-heading);
  white-space: nowrap;
}
.header-contact .ui-icon { width: 16px; height: 16px; margin-right: -4px; }
/* The header's one action is GICUS itself: the site leads with the solution (DESIGN.md GICUS Blue Rule). */

:is(.button-link, .menu-toggle, .btn) {
  display: inline-flex;
  min-height: var(--button-height);
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border: 1px solid var(--line);
  border-radius: var(--button-radius);
  background: var(--white);
  color: var(--ink);
  font-size: var(--fs-ui);
  font-weight: var(--fw-heading);
  line-height: 1.4;
  text-align: center;
}
.menu-toggle { display: none; }
.nav-trigger .nav-expand-icon, .mobile-menu-backdrop { display: none; }
.menu-toggle-icon { display: block; width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: square; }
.menu-toggle-icon > path:last-child { display: none; }
.menu-toggle[aria-expanded="true"] .menu-toggle-icon > path:first-child { display: none; }
.menu-toggle[aria-expanded="true"] .menu-toggle-icon > path:last-child { display: block; }
:is(.button-primary, .btn-orange, .btn-blue) { border-color: var(--action); background: var(--action); color: var(--white); }
/* Two primary buttons carry meaning: blue goes into GICUS, charcoal to an expert. Orange stays the
   premium mark beside them; as a button ground it would need a brown tone to keep white labels legible. */
.button-consult { --action: var(--dark); --button-state-primary-hover: var(--dark-hover); }
.button-gicus { --action: var(--brand); --button-state-primary-hover: var(--brand-hover); }
.site-header .menu-toggle {
  min-height: 44px;
  padding-inline: 12px;
  border-color: var(--chrome-outline);
  background: transparent;
  color: var(--ink-deep);
  font-size: 13px;
  white-space: nowrap;
}
.site-header .menu-toggle[aria-expanded="true"] { border-color: var(--brand); background: var(--chrome-hover); color: var(--brand); }

@media (hover: hover) and (pointer: fine) {
  .site-nav > a:hover::after, .nav-trigger:hover::after { transform: scaleX(1); }
  .site-nav > a:hover, .nav-trigger:hover { color: var(--brand); }
  .nav-submenu a:hover { background: var(--brand-paper); }
  .header-contact:hover { background: var(--brand-hover); }
  :is(.button-link, .menu-toggle, .btn):where(:not(:disabled, [aria-disabled="true"], [aria-busy="true"])):hover { border-color: var(--button-state-hover-border); background: var(--button-state-hover-bg); color: var(--button-state-primary); }
  :is(.button-primary, .btn-orange, .btn-blue):where(:not(:disabled, [aria-disabled="true"], [aria-busy="true"])):hover { border-color: var(--button-state-primary-hover); background: var(--button-state-primary-hover); color: var(--white); }
  .site-header .menu-toggle:where(:not(:disabled, [aria-disabled="true"], [aria-busy="true"])):hover { border-color: var(--brand); background: var(--chrome-hover); color: var(--brand); }
}

/* A quiet closing invitation: keep the message and its actions together before the footer. */
.site-cta {
  padding-block: clamp(56px, 5vw, 80px);
  border-top: 1px solid #dce6ef;
  background: var(--brand-paper);
  color: var(--ink-deep);
}
.site-cta .container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  justify-items: start;
  gap: 32px clamp(32px, 5vw, 72px);
  text-align: left;
}
.site-cta-copy { min-width: 0; max-width: 44rem; }
.site-cta h2 { color: var(--ink-deep); font-size: clamp(1.75rem, 2.6vw, 2.5rem); font-weight: var(--fw-heading); line-height: 1.4; text-wrap: balance; word-break: keep-all; overflow-wrap: anywhere; }
.site-cta h2 em { color: var(--brand); font-style: normal; }
.site-cta .site-cta-steps { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; margin: 20px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: .9375rem; font-weight: var(--fw-body); }
.site-cta-steps li { display: inline-flex; align-items: center; gap: 20px; }
.site-cta-steps li + li::before { width: 4px; height: 4px; border-radius: 50%; background: #8fa7bd; content: ''; }
.site-cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.site-cta .button-link { min-height: 52px; padding-inline: 26px; border-color: #bdccda; background: var(--white); color: var(--ink-deep); }
.site-cta .button-primary { border-color: var(--brand); background: var(--brand); color: var(--white); }
.site-cta .button-primary.button-consult { border-color: var(--dark); background: var(--dark); color: var(--white); }
.site-cta :focus-visible { outline-color: var(--brand); outline-offset: 4px; }
@media (max-width: 960px) {
  .site-cta .container { grid-template-columns: minmax(0, 1fr); }
  .site-cta-actions { justify-content: flex-start; }
}
@media (hover: hover) and (pointer: fine) {
  .site-cta .button-link:where(:not(:disabled, [aria-disabled="true"], [aria-busy="true"])):hover { border-color: var(--brand); background: #e2effb; color: var(--brand-hover); }
  .site-cta .button-primary:where(:not(:disabled, [aria-disabled="true"], [aria-busy="true"])):hover { border-color: var(--brand-hover); background: var(--brand-hover); color: var(--white); }
  .site-cta .button-primary.button-consult:where(:not(:disabled, [aria-disabled="true"], [aria-busy="true"])):hover { border-color: var(--dark-hover); background: var(--dark-hover); color: var(--white); }
}
@media (max-width: 600px) {
  .site-cta .container { gap: 24px; }
  .site-cta-actions { width: 100%; max-width: 340px; }
  .site-cta-actions .button-link { flex: 1 1 100%; }
  .site-cta .site-cta-steps { flex-direction: column; align-items: center; gap: 6px; margin-top: 18px; font-size: .875rem; }
  .site-cta-steps li + li::before { content: none; }
}

/* The footer keeps the renewal's charcoal (the palette's Neutral #1a2028) under every page. */
.site-footer {
  background: var(--charcoal);
  color: var(--on-dark);
  padding: clamp(56px, 6vw, 88px) 0 28px;
  font-size: var(--fs-small);
  font-weight: var(--fw-body);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, minmax(105px, 1fr));
  gap: var(--grid-gap);
  padding-bottom: 48px;
}
.footer-logos { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4); margin-bottom: var(--space-4); }
.footer-logos img { width: 104px; height: auto; }
.footer-logos img.footer-gicus { width: 75px; }
.site-footer .footer-statement { margin-block: 24px; font-size: 1.25rem; font-weight: var(--fw-strong); line-height: 1.5; letter-spacing: -.025em; }
.site-footer .footer-address { margin: 0; color: var(--on-dark-muted); font-style: normal; font-size: .875rem; line-height: 1.8; }
.footer-contact { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 14px; color: var(--on-dark); overflow-wrap: anywhere; }
.footer-socials { display: flex; align-items: center; gap: 10px; margin-top: 20px; }
.site-footer .footer-social-link { display: inline-flex; width: 44px; height: 44px; flex: none; align-items: center; justify-content: center; border: 1px solid var(--white); border-radius: 50%; color: var(--social-brand); background: var(--white); box-shadow: none; text-decoration: none; transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease; }
.footer-social-link--youtube, .footer-social-link--blog { --social-brand: var(--charcoal); }
.footer-social-link svg { display: block; width: 24px; height: 24px; }
.footer-social-link svg.footer-blog-icon { width: 29px; height: 29px; }
.footer-blog-icon text { fill: var(--social-icon-detail, #fff); transition: fill 140ms ease; }
.site-footer .footer-social-link:focus-visible { --social-icon-detail: var(--social-brand); border-color: var(--white); background: var(--social-brand); color: var(--white); outline: 2px solid var(--white); outline-offset: 2px; box-shadow: none; }
@media (hover: hover) and (pointer: fine) {
  .site-footer .footer-social-link:hover { --social-icon-detail: var(--social-brand); border-color: var(--white); background: var(--social-brand); color: var(--white); text-decoration: none; }
}
@media (prefers-reduced-motion: reduce) { .site-footer .footer-social-link, .footer-blog-icon text { transition: none; } }
.footer-links h2, .footer-links h3 {
  margin: 0 0 var(--space-2);
  color: inherit;
  font-size: .875rem;
  font-weight: var(--fw-heading);
  letter-spacing: .025em;
}
.footer-links > a { display: block; width: fit-content; padding: 8px 0; color: var(--on-dark-muted); }
.footer-links > a:hover { color: var(--on-dark); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3) var(--space-5);
  padding-top: 24px;
  border-top: 1px solid var(--charcoal-line);
  color: var(--on-dark-muted);
  font-size: .8125rem;
  font-weight: var(--fw-body);
}
.footer-bottom > div { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); }
/* The privacy policy link is set apart in weight, as Korean sites are expected to. */
.footer-legal { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.footer-legal a { display: inline-flex; min-height: 32px; align-items: center; color: var(--on-dark-muted); }
.footer-legal .footer-legal-privacy { color: var(--on-dark); font-weight: var(--fw-strong); }
.site-footer a:hover { text-decoration: underline; text-underline-offset: .2em; }

@media (max-width: 960px) {
  :root { --header-height: 64px; --gutter: max(clamp(20px, 5vw, 42px), env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px)); }
  .site-header { --mobile-menu-width: min(78vw, 480px); --mobile-menu-duration: 280ms; --mobile-menu-inset: 30px; }
  .site-header[data-menu-open="true"] { position: fixed; inset: 0 0 auto; z-index: 100; }
  .site-header-placeholder { display: block; height: var(--header-height); }
  .site-header-inner { --header-inset: 0px; grid-template-columns: 1fr auto; column-gap: 0; }
  .site-header .brand { min-height: 44px; }
  .site-header .brand img { width: 96px; }
  .site-header .site-actions { position: relative; z-index: 3; gap: 12px; }
  /* The consultation link stays in the bar on small screens, next to the menu button. */
  .site-header .header-contact { min-height: 44px; padding-inline: 14px; font-size: .875rem; }
  .mobile-menu-backdrop { display: block; position: fixed; z-index: 1; inset: 0; background: rgb(11 14 18 / 62%); }
  .site-header .menu-toggle {
    display: inline-flex;
    width: 44px;
    min-width: 44px;
    min-height: 44px;
    margin-right: -10px;
    padding: 10px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--ink-deep);
    touch-action: manipulation;
  }
  .site-header .menu-toggle[aria-expanded="true"] { background: transparent; }
  .site-header .menu-toggle:focus-visible { outline-offset: -4px; }
  .site-nav {
    display: none;
    position: fixed;
    z-index: 2;
    inset: 0 0 0 auto;
    width: var(--mobile-menu-width);
    height: 100vh;
    height: 100dvh;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-block: calc(var(--header-height) + 24px) max(32px, env(safe-area-inset-bottom));
    padding-inline: var(--mobile-menu-inset);
    background: var(--chrome-bg);
  }
  .site-nav.is-open { display: block; }
  .site-nav > a, .site-nav .nav-trigger {
    width: 100%;
    min-height: 60px;
    padding-block: 12px;
    color: var(--ink-deep);
    font-size: 24px;
    font-weight: var(--fw-heading);
    line-height: 1.4;
    letter-spacing: -.035em;
  }
  .site-nav > a::after, .nav-trigger::after { display: none; }
  .site-nav > a[aria-current], .site-nav .nav-trigger:is([data-current], [aria-expanded="true"]) { color: var(--brand); text-decoration: underline; text-underline-offset: .26em; text-decoration-thickness: 2px; }
  .site-nav > a:focus-visible { outline-offset: -2px; }
  .nav-group { display: block; }
  .nav-trigger { width: 100%; justify-content: flex-start; gap: 10px; }
  .nav-trigger .nav-chevron { display: none; }
  .nav-trigger .nav-expand-icon { display: block; width: 24px; height: 24px; stroke-width: 2; color: currentColor; transform: none; }
  .nav-trigger[aria-expanded="true"] .nav-expand-icon > path:last-child { display: none; }
  .nav-submenu {
    position: static;
    display: block;
    width: auto;
    margin: 0 0 12px;
    padding: 0 0 8px;
    border-radius: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    translate: none;
  }
  .nav-submenu::before { display: none; }
  .nav-submenu a { min-height: 48px; padding: 10px 0; border-radius: 0; color: var(--muted); font-size: 18px; font-weight: var(--fw-strong); line-height: 1.5; }
  .nav-submenu a[aria-current="page"] { color: var(--brand); background: transparent; }
  .nav-submenu a:hover { background: transparent; color: var(--brand-hover); }
  .nav-submenu a:focus-visible { outline-color: var(--brand); }
}
@media (max-width: 680px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5) var(--space-4); }
  .footer-brand { grid-column: 1 / -1; }
  .brand img { width: 88px; }
}
/* A folded cover screen can be narrower than a conventional phone. */
@media (max-width: 340px) {
  .site-header-inner { width: calc(100% - 32px); column-gap: 8px; }
  .site-header .brand img { width: 80px; }
  .site-header .site-actions { gap: 8px; }
  .site-header .header-contact { padding-inline: 10px; font-size: 13px; }
}

@keyframes enter-navigation {
  from { opacity: .75; transform: translateY(-4px); }
}
@keyframes mobile-menu-in { from { transform: translateX(100%); } to { transform: translateX(0); } }
@keyframes mobile-menu-out { from { transform: translateX(0); } to { transform: translateX(100%); } }
@keyframes mobile-menu-actions-in { from { transform: translateX(var(--mobile-menu-width)); } to { transform: translateX(0); } }
@keyframes mobile-menu-actions-out { from { transform: translateX(0); } to { transform: translateX(var(--mobile-menu-width)); } }
@keyframes mobile-menu-dim-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes mobile-menu-dim-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes enter-route {
  from { opacity: .65; }
}

@media (prefers-reduced-motion: no-preference) {
  :root {
    --ease-out: cubic-bezier(.22, 1, .36, 1);
    --motion-feedback: 160ms;
  }

  .view.active .intro-copy { animation: enter-route 220ms ease-out; }
  .site-nav.is-open { animation: enter-navigation 180ms var(--ease-out); }
  .nav-submenu:not([hidden]) { animation: enter-navigation 160ms var(--ease-out); }
  .site-nav > a::after, .nav-trigger::after { transition: transform 240ms var(--ease-out); }
  .nav-trigger svg { transition: transform var(--motion-feedback) var(--ease-out); }
  :is(.button-link, .header-contact, .menu-toggle, .nav-submenu a, .btn, .sub-nav a, .svc2 .col) {
    transition: background-color var(--motion-feedback) ease, border-color var(--motion-feedback) ease, color var(--motion-feedback) ease;
  }
}

@media (max-width: 960px) and (prefers-reduced-motion: no-preference) {
  .site-nav.is-open { animation: mobile-menu-in var(--mobile-menu-duration) var(--ease-out) both; }
  .site-header[data-menu-open="true"] .site-actions { animation: mobile-menu-actions-in var(--mobile-menu-duration) var(--ease-out) both; }
  .mobile-menu-backdrop { animation: mobile-menu-dim-in var(--mobile-menu-duration) ease both; }
  .site-header[data-menu-closing="true"] .site-nav { animation-name: mobile-menu-out; }
  .site-header[data-menu-closing="true"] .site-actions { animation-name: mobile-menu-actions-out; }
  .site-header[data-menu-closing="true"] .mobile-menu-backdrop { animation-name: mobile-menu-dim-out; }
}
