:root {
  --bg: #fff;
  --ink: #171c26;
  --muted: #535d6d;
  --brand: #006EFF;
  --accent: #0063e6;
  --brand-deep: color-mix(in srgb, var(--brand) 34%, #000509);
  --brand-light: color-mix(in srgb, var(--brand) 34%, white);
  --action: #006EFF;
  --surface: #fff;
  --line: #d9e0eb;
  --font-pretendard: "Pretendard Variable", "Noto Sans KR", "Malgun Gothic", sans-serif;
  --font-noto-sans: "Noto Sans KR", "Malgun Gothic", sans-serif;
  --font-noto-serif: "Noto Serif KR", "Batang", serif;
  --font-gowun-dodum: "Gowun Dodum", "Pretendard Variable", "Malgun Gothic", sans-serif;
  --font-gowun-batang: "Gowun Batang", "Noto Serif KR", "Batang", serif;
  --font-hahmlet: "Hahmlet", "Noto Serif KR", "Batang", serif;
  --font-display: var(--font-pretendard);
  --font-body: var(--font-pretendard);
  --display-weight: 700;
  --display-tracking: -.055em;
  --t-h2: clamp(2rem, 4.5vw, 4.4rem);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { color: var(--ink); background: var(--bg); font-family: var(--font-body); }
body { margin: 0; }
img { display: block; max-width: 100%; object-fit: contain; }
p, h1, h2, h3 { margin: 0; }
p { line-height: 1.65; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.wrap { width: min(1280px, calc(100% - 104px)); margin-inline: auto; }
.skip-link { position: absolute; z-index: 3; top: 12px; left: 12px; padding: 12px; background: #fff; transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.site-header { position: relative; z-index: 1; background: var(--bg); box-shadow: 0 4px 14px rgb(18 28 46 / 10%); }
.nav-row { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.logo { min-height: 44px; display: grid; place-items: center; }
.logo img { height: 42px; width: 126px; }
nav { display: flex; align-items: center; gap: clamp(12px, 2.3vw, 34px); }
nav a, .admin-link { min-height: 44px; display: inline-flex; align-items: center; font-size: .9rem; font-weight: 700; }
#site-nav { gap: clamp(6px, 1.3vw, 20px); }
#site-nav a { position: relative; justify-content: center; min-height: 52px; padding: 13px 12px 16px; border: 0; border-radius: 0; background: transparent; color: var(--ink); font-size: 1.04rem; font-weight: 800; letter-spacing: -.035em; line-height: 1.25; white-space: nowrap; text-decoration: none; box-shadow: none; }
#site-nav a::after { content: ''; position: absolute; left: calc(50% - 2.5px); bottom: 5px; width: 5px; height: 5px; border-radius: 50%; background: var(--action); opacity: 0; transform: scale(.4); }
#site-nav a:is(:hover, :focus-visible), #site-nav a[aria-current="page"] { background: transparent; color: var(--action); box-shadow: none; }
#site-nav a[aria-current="page"]::after { opacity: 1; transform: scale(1); }
#site-nav a:active { translate: 0 1px; }
@media (prefers-reduced-motion: no-preference) {
  #site-nav a { transition: color 180ms ease, translate 180ms ease; }
  #site-nav a::after { transition: opacity 180ms ease, transform 180ms ease; }
  #site-nav a:hover { translate: 0 -2px; }
  #site-nav a:hover::after { opacity: 1; transform: scale(1); }
}
.about-nav a:hover, .text-link:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.admin-link { color: var(--accent); white-space: nowrap; }
.mobile-menu { display: none !important; }
.hero { min-height: calc(100svh - 76px); display: grid; align-items: center; padding-block: clamp(44px, 8vh, 108px); background: var(--bg); }
.hero-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(22px, 5vw, 78px); align-items: center; }
.eyebrow { color: var(--accent); font-size: .85rem; font-weight: 700; letter-spacing: .06em; line-height: 1.45; }
h1, h2, h3, .preview-headline { font-family: var(--font-display); }
.hero h1 { margin-block: 18px 22px; font-size: clamp(2.45rem, 4.7vw, 4.7rem); font-weight: 750; letter-spacing: -.045em; line-height: 1.12; }
main > .section h1 { font-size: clamp(2.15rem, 4.2vw, 3.8rem); line-height: 1.15; letter-spacing: -.04em; }
h2 { font-size: clamp(2rem, 3.5vw, 3.4rem); line-height: 1.18; letter-spacing: -.035em; }
.home-title { white-space: pre-line; word-break: keep-all; overflow-wrap: anywhere; }
.hero-lead { color: var(--muted); font-size: clamp(1rem, 1.45vw, 1.25rem); max-width: 32ch; white-space: pre-line; overflow-wrap: anywhere; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 27px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 16px; border: 1px solid transparent; border-radius: 6px; font-weight: 700; font-size: .94rem; white-space: nowrap; }
.btn--primary { color: #fff; background: var(--action); }
html:not([data-motion="off"]) body .btn--primary:hover { background: color-mix(in srgb, var(--action) 89%, black); }
.btn--secondary { background: var(--bg); color: var(--ink); border-color: var(--line); }
.hero-media { position: relative; overflow: hidden; aspect-ratio: 1600 / 671; background: var(--surface); border-radius: 8px; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.showreel { position: absolute; bottom: 18px; left: 18px; min-height: 46px; padding: 0 16px; border-radius: 6px; display: inline-flex; align-items: center; gap: 10px; color: #fff; background: var(--action); font-weight: 700; }
.showreel:hover { background: var(--brand-deep); }
.about-section { background: var(--surface); }
.about-nav { gap: 8px 20px; flex-wrap: wrap; margin-block: 14px 24px; }
.about-nav a { color: var(--accent); }
.about-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.about-video-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.5vw, 30px); }
.about-video-card, .about-card { border-radius: 8px; background: var(--bg); box-shadow: 0 2px 5px rgb(0 0 0 / 7%), 0 9px 26px rgb(0 0 0 / 9%); }
.about-video-card { overflow: hidden; }
.about-video-card iframe { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; background: #141414; }
.about-video-copy { padding: clamp(16px, 2.7vw, 30px); }
.about-video-copy h3 { margin-block: 7px; font-size: clamp(1.2rem, 2.3vw, 1.75rem); line-height: 1.3; word-break: keep-all; }
.about-video-copy p:not(.eyebrow) { color: var(--muted); white-space: pre-line; }
.about-card { padding: clamp(16px, 2vw, 24px); }
.about-card h3, .about-card h4 { font: 750 1.13rem/1.35 var(--font-display); margin: 8px 0; word-break: keep-all; }
.about-card p:not(.eyebrow) { color: var(--muted); white-space: pre-line; }
.about-greeting { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); align-items: start; gap: clamp(24px, 6vw, 86px); margin-top: clamp(52px, 8vw, 116px); }
.about-greeting img { width: 100%; height: auto; max-height: 550px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 6px; }
.about-greeting h3, .about-vision h3 { font-size: clamp(1.65rem, 3.2vw, 2.65rem); line-height: 1.2; letter-spacing: -.035em; }
.greeting-lead { color: var(--accent); font-size: clamp(1.16rem, 2vw, 1.5rem); font-weight: 750; margin-top: 15px; }
.greeting-copy { display: grid; gap: 13px; margin-top: 18px; color: var(--muted); }
.greeting-copy p { white-space: pre-line; }
.greeting-signature { margin-top: 20px; font-weight: 750; }
.about-vision { margin-top: clamp(52px, 8vw, 116px); }
.about-vision h3 { margin-block: 6px 16px; }
.about-editor-layout { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); align-items: start; gap: clamp(16px, 4vw, 44px); margin-top: 24px; }
.about-editor #about-fields { display: grid; gap: 16px; }
.about-edit-group { display: grid; gap: 14px; min-width: 0; padding: 16px; margin: 0; border: 1px solid var(--line); border-radius: 8px; }
.about-edit-group legend { padding-inline: 6px; font-weight: 750; }
.about-edit-photo { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 14px; align-items: start; }
.about-edit-photo img { width: 100px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 6px; }
.about-edit-photo button { margin-top: 8px; }
.about-editor-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 18px; }
.about-editor-actions .form-status { flex-basis: 100%; }
.about-live-preview { position: sticky; top: 16px; min-width: 0; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); box-shadow: 0 8px 26px rgb(0 0 0 / 10%); }
.about-live-preview summary { padding: 12px 14px 10px; font-weight: 750; cursor: pointer; }
:is(#about-preview-label, .editor-preview-label) { min-height: 1.65em; margin: 0 14px 10px; color: var(--accent); font-size: .84rem; overflow-wrap: anywhere; }
.about-preview-scroll { height: min(66vh, 680px); overflow: auto; overscroll-behavior: contain; border-top: 1px solid var(--line); border-radius: 0 0 10px 10px; container-type: inline-size; }
.editor-full-page { position: relative; overflow: hidden; }
.editor-full-page > iframe { position: absolute; inset: 0 auto auto 0; display: block; border: 0; transform-origin: top left; }
html:has([data-editor-page], #about) { scrollbar-gutter: stable; }
.page-edit-links { margin-top: 0; }
.is-about-preview-target { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }
.is-about-preview-target:empty:not(img) { min-height: 1em; }
@media (max-width: 760px) {
  .about-editor-layout { grid-template-columns: 1fr; }
  .about-live-preview { grid-row: 1; top: 6px; z-index: 2; }
  .about-preview-scroll { height: clamp(130px, 31vh, 280px); }
}
@media (max-width: 960px) { .about-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .about-grid, .about-video-grid, .about-greeting { grid-template-columns: 1fr; }
  .about-greeting img { max-height: 280px; object-position: center 55%; }
}
.section { padding-block: clamp(60px, 9vw, 130px); }
.section h2 { margin-top: 8px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-block: 25px 26px; }
.filters [aria-pressed="true"] { background: var(--action); color: #fff; border-color: var(--action); }
.work-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.project-card { width: 100%; background: #fff; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; padding: 0; color: var(--ink); text-align: left; }
.project-card:hover { border-color: var(--accent); }
.card-image, .preview-frame { display: grid; place-items: center; aspect-ratio: 16 / 9; background: var(--surface); overflow: hidden; }
.card-image img, .preview-frame img { width: 100%; height: 100%; object-fit: cover; }
.card-body { display: grid; gap: 5px; padding: 16px; }
.card-body strong { font-size: 1.13rem; }
.meta, .note { color: var(--muted); font-size: .88rem; }
.contact { background: var(--surface); }
.contact-grid, .editor-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(22px, 5vw, 76px); }
.contact-grid h1 + p { margin-top: 18px; }
.contact-form, .fields { display: grid; gap: 14px; align-content: start; }
.contact-form .btn { justify-self: start; }
.contact-methods { min-width: 0; border: 1px solid var(--line); border-radius: 5px; padding: 16px; margin: 0; }
.contact-methods legend { padding: 0 6px; font-size: .9rem; font-weight: 700; }
.contact-method-options { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 8px; }
.contact-method-options label { display: flex; align-items: center; gap: 9px; min-height: 44px; cursor: pointer; }
.contact-method-options input { width: 20px; height: 20px; min-height: 0; margin: 0; padding: 0; accent-color: var(--action); flex-shrink: 0; }
.contact-consent { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 18px; padding-block: 8px; }
.contact-consent label { display: flex; align-items: center; gap: 9px; min-height: 44px; cursor: pointer; }
.contact-consent input { width: 20px; height: 20px; min-height: 0; margin: 0; padding: 0; accent-color: var(--action); flex-shrink: 0; }
.consent-details { color: var(--action); background: transparent; border: 0; padding: 10px 0; font: inherit; font-size: .88rem; cursor: pointer; }
.consent-details:hover { font-weight: 700; }
#contact-privacy { max-width: 650px; }
.privacy-copy { max-height: 60dvh; }
.privacy-copy p + p, .faq-answer p + p { margin-top: 14px; }
.contact-faq { margin-top: clamp(64px, 9vw, 120px); }
.contact-faq h2 { margin-bottom: 28px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 23px 0; font-size: clamp(1rem, 2vw, 1.2rem); font-weight: 700; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; color: var(--action); font-size: 1.5rem; flex-shrink: 0; }
.faq-list details[open] summary::after { content: '−'; }
.faq-answer { max-width: 900px; padding-bottom: 26px; line-height: 1.8; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
label { display: block; font-size: .9rem; font-weight: 700; min-width: 0; }
label small { display: block; color: var(--muted); font-size: .78rem; font-weight: 400; margin-top: 6px; }
input, textarea, select { display: block; width: 100%; min-height: 44px; color: var(--ink); background: #fff; border: 1px solid #a7b4c7; border-radius: 5px; padding: 10px 11px; margin-top: 6px; }
textarea { resize: vertical; }
.required { color: var(--accent); font-size: .76rem; margin-left: 3px; }
.form-status { color: var(--action); font-size: .88rem; }
.admin { border-top: 1px solid var(--line); }
.settings-summary { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; border-bottom: 1px solid var(--line); margin-bottom: 30px; padding-bottom: 24px; }
.settings-summary h1 { margin: 0 0 8px; }
.admin-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-block: 4px 12px; }
.admin-list { padding: 0; list-style: none; border-top: 1px solid var(--line); margin-top: 22px; }
.admin-item { display: grid; grid-template-columns: 90px 1fr auto; align-items: center; gap: 15px; border-bottom: 1px solid var(--line); padding: 10px 0; }
.admin-item img { width: 90px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 4px; }
.admin-item .meta { display: block; margin-top: 4px; }
.admin-item-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.project-position { display: flex; align-items: center; gap: 8px; }
.project-position select { width: 76px; margin: 0; }
.project-manager-disclosure { margin-top: 20px; border: 1px solid var(--line); border-radius: 8px; padding: 0 18px; }
.project-manager-disclosure > summary { display: flex; align-items: center; gap: 14px; min-height: 64px; font-weight: 750; cursor: pointer; list-style: none; }
.project-manager-disclosure > summary::-webkit-details-marker { display: none; }
.project-manager-disclosure > summary::after { content: '⌄'; margin-left: auto; font-size: 1.4rem; transition: transform 180ms ease; }
.project-manager-disclosure[open] > summary::after { transform: rotate(180deg); }
.project-manager-disclosure .admin-list { margin-top: 12px; }
.project-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 20px 0; }
.project-pagination [aria-current="page"] { background: var(--action); border-color: var(--action); color: #fff; }
.project-pagination .btn:disabled { opacity: .4; cursor: default; transform: none; }
.admin-item-actions .btn:disabled { opacity: .4; cursor: default; transform: none; }
@media (max-width: 600px) { .admin-item-actions { justify-content: flex-start; } .admin-item .admin-item-actions { grid-column: 1 / -1; } }
.site-footer { background: #000; color: #fff; padding: clamp(35px, 6vw, 72px) 0 28px; font-size: .94rem; }
.site-footer h2 { font-size: 1.1rem; letter-spacing: 0; margin-bottom: 12px; }
.site-footer address { font-style: normal; line-height: 1.65; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer a:focus-visible { outline-color: #fff; }
.footer-main { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 26px 44px; padding-bottom: clamp(22px, 4vw, 45px); }
.footer-details { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px 36px; }
.footer-contact { display: grid; gap: 7px; line-height: 1.55; overflow-wrap: anywhere; }
.footer-nav ul { display: flex; flex-wrap: wrap; gap: 4px; }
.footer-nav a { min-height: 44px; padding: 12px; border-radius: 5px; font-size: 1.05rem; font-weight: 700; line-height: 1.25; }
.footer-nav a:is(:hover, :focus-visible) { background: var(--action); color: #fff; font-weight: 800; }
@media (prefers-reduced-motion: no-preference) {
  .footer-nav a { transition: background-color 160ms ease, font-weight 160ms ease, translate 160ms ease; }
  .footer-nav a:hover { translate: 0 -3px; }
}
.footer-legal { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 25px; border-top: 1px solid #3b3b3b; padding-top: 19px; }
.footer-legal > a { font-weight: 750; }
.footer-company { display: flex; flex-wrap: wrap; gap: 4px 16px; color: #ccc; font-size: .85rem; }
@media (max-width: 1080px) { .footer-main { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .site-footer { padding: 26px 0 18px; font-size: .8rem; }
  .site-footer h2 { font-size: .88rem; margin-bottom: 6px; }
  .site-footer address { line-height: 1.6; }
  .footer-main { gap: 14px; padding-bottom: 14px; }
  .footer-details { grid-template-columns: 1fr; }
  .footer-details { gap: 16px; }
  .footer-contact { gap: 2px; line-height: 1.65; }
  .footer-nav ul { gap: 0 6px; }
  .footer-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 6px; font-size: .82rem; }
  .footer-legal { gap: 10px; padding-top: 12px; }
  .footer-legal > a { font-size: .75rem; }
  .footer-company { flex-direction: row; gap: 3px 12px; font-size: .7rem; line-height: 1.6; }
}
dialog { width: min(880px, calc(100% - 30px)); max-height: min(88dvh, 860px); padding: 0; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: #fff; }
dialog::backdrop { background: rgba(12, 23, 19, .67); }
#project-form, #home-form { display: flex; flex-direction: column; max-height: inherit; }
#project-detail[open] { display: flex; flex-direction: column; height: min(88dvh, 860px); max-height: calc(100dvh - 24px); overflow: hidden; }
#project-detail .dialog-heading { max-height: 35dvh; overflow-y: auto; align-items: flex-start; }
#project-detail .dialog-heading > div { min-width: 0; overflow-wrap: anywhere; }
#detail-content { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }
.detail-video-options { display: flex; flex-wrap: wrap; gap: 8px; }
.detail-video-options [aria-pressed="true"] { background: var(--action); border-color: var(--action); color: #fff; }
.dialog-heading, .dialog-footer { display: flex; align-items: center; gap: 10px; padding: 14px 22px; background: #fff; flex-shrink: 0; }
.dialog-heading { justify-content: space-between; border-bottom: 1px solid var(--line); }
.dialog-heading h2 { font-size: clamp(1.35rem, 3.2vw, 2.05rem); margin-top: 4px; }
.dialog-heading .meta { margin-top: 4px; }
.dialog-content { overflow-y: auto; padding: 20px 22px; min-height: 0; }
.dialog-footer { justify-content: flex-end; border-top: 1px solid var(--line); flex-wrap: wrap; }
.dialog-footer .form-status { margin-right: auto; }
.editor-grid { grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 24px; }
.editor-preview { position: sticky; top: 0; align-self: start; min-width: 0; }
.home-preview { background: var(--surface); border-radius: 8px; padding: 16px; margin-top: 8px; font-family: var(--font-body); overflow-wrap: anywhere; }
.dialog-preview-panel { top: 0; }
.dialog-preview-scroll { height: min(49vh, 460px); }
.dialog-preview-scroll .home-preview { margin-top: 0; }
.dialog-preview-scroll .detail-copy { gap: 14px; }
.dialog-preview-scroll .detail-copy p:empty { min-height: .85em; }
.preview-hero-media { position: relative; margin-top: 14px; }
.preview-hero-media img { width: 100%; height: auto; border-radius: 4px; }
.preview-hero-media .preview-reel { position: absolute; bottom: 7px; left: 7px; margin: 0; padding: 4px 7px; border-radius: 4px; background: var(--action); color: #fff; }
.brand-field { margin: 0; padding: 12px; border: 1px solid var(--line); border-radius: 8px; min-width: 0; }
.brand-field legend { padding-inline: 5px; font-weight: 750; font-size: .92rem; }
.brand-inputs { display: grid; grid-template-columns: minmax(78px, 1fr) minmax(110px, 2fr); gap: 12px; }
.brand-inputs input[type="color"] { padding: 3px; cursor: pointer; }
.brand-inputs input[name="brandColor"] { font-family: ui-monospace, monospace; }
.brand-swatches { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.brand-swatch { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 5px 8px; border: 1px solid var(--line); border-radius: 5px; background: #fff; color: var(--ink); font-size: .8rem; }
.brand-swatch[aria-pressed="true"] { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.brand-swatch span, .preview-brand span:first-child { width: 16px; height: 16px; border-radius: 50%; background: var(--swatch, var(--brand)); border: 1px solid var(--line); }
.preview-brand { display: flex; align-items: center; gap: 7px; margin-bottom: 12px; color: var(--muted); font: .82rem ui-monospace, monospace; }
.home-preview .preview-headline { font-size: clamp(1.45rem, 3vw, 2rem); line-height: 1.15; letter-spacing: -.04em; font-weight: 750; margin-block: 10px; }
.home-preview .hero-lead { font-size: .95rem; }
.home-preview .actions { margin-block: 14px 0; }
.home-preview .btn, .hero .actions .btn { white-space: normal; text-align: center; }
.preview-reel { color: var(--accent); margin-top: 12px; font-size: .86rem; font-weight: 700; }
.preview-frame { margin-top: 8px; border-radius: 6px; font-size: .83rem; color: var(--muted); }
.preview-title { font-weight: 700; margin-top: 9px; overflow-wrap: anywhere; }
.text-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--accent); font-size: .85rem; }
.icon-button { width: 44px; height: 44px; flex: 0 0 44px; border: 1px solid var(--line); border-radius: 6px; background: #fff; font-size: 1.5rem; }
.detail-video { display: grid; position: relative; width: 100%; aspect-ratio: 16 / 9; border: 0; padding: 0; background: var(--surface); }
.detail-video img, .detail-video iframe { width: 100%; height: 100%; object-fit: cover; border: 0; }
.detail-video img { object-fit: contain; background: #161918; }
.detail-video .play { position: absolute; min-height: 44px; border: 0; inset: auto auto 15px 15px; background: #161918; color: #fff; padding: 11px 15px; border-radius: 6px; }
.detail-copy { display: grid; gap: 22px; margin-top: 20px; }
.detail-media { display: grid; gap: 12px; }
.detail-media .detail-video:not(:first-child) { margin-top: 20px; }
.detail-copy h3 { font-size: 1.05rem; margin-bottom: 6px; }
.detail-copy p { white-space: pre-wrap; overflow-wrap: anywhere; }
.detail-copy { gap: 36px; margin-top: 36px; }
.detail-text-section { border-top: 1px solid var(--line); padding-top: 22px; }
.detail-copy .detail-section-label { font-size: .86rem; font-weight: 800; color: var(--action); margin: 0 0 18px; letter-spacing: .025em; }
.detail-copy .detail-story-title { font-size: clamp(1.3rem, 3vw, 1.8rem); font-weight: 800; line-height: 1.4; letter-spacing: -.035em; margin: 0 0 16px; overflow-wrap: anywhere; }
.detail-copy .detail-story-meta { color: var(--muted); font-size: .88rem; font-weight: 600; line-height: 1.65; margin: 0 0 5px; }
.detail-copy .detail-story-paragraph { font-size: 1rem; font-weight: 500; line-height: 1.9; margin: 0; word-break: keep-all; }
.detail-section-body > .detail-story-paragraph + .detail-story-paragraph { margin-top: 18px; }
.detail-section-body > .detail-story-meta + .detail-story-paragraph { margin-top: 26px; }
#project-editor { width: min(1480px, calc(100% - 32px)); max-height: calc(100dvh - 32px); }
#project-editor #project-form { height: min(94dvh, 1100px); max-height: calc(100dvh - 34px); }
#project-editor .editor-grid { display: grid; grid-template-columns: minmax(320px, 1fr) minmax(0, 1.2fr); flex: 1; gap: 24px; padding: 24px; overflow: hidden; }
.project-edit-fields { overflow-y: auto; min-height: 0; padding-right: 14px; overscroll-behavior: contain; }
.project-edit-section { min-width: 0; margin: 0; padding: 20px; border: 1px solid var(--line); border-radius: 8px; display: grid; gap: 18px; }
.project-edit-section legend { padding: 0 8px; font-weight: 800; font-size: 1rem; }
.project-edit-section textarea { font-family: var(--font-body); font-size: 1rem; font-weight: 500; line-height: 1.8; min-height: 180px; }
.project-extra-videos summary { cursor: pointer; font-weight: 700; padding-block: 8px; }
.project-extra-videos label { margin-top: 14px; }
.project-live-preview { min-width: 0; min-height: 0; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; }
.project-preview-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px; border-bottom: 1px solid var(--line); }
.project-preview-note { margin: 12px 14px 8px; }
#project-preview-scroll { min-height: 0; flex: 1; overflow: auto; overscroll-behavior: contain; background: #f5f5f5; }
#project-preview-stage { position: relative; width: 100%; }
#project-preview-surface { position: absolute; top: 0; left: 0; transform-origin: top left; border: 1px solid var(--line); background: #fff; }
.project-preview-body { scrollbar-gutter: stable; overflow-y: auto; }
#project-preview-surface h2 { font-size: clamp(1.35rem, 3.2vw, 2.05rem); }
#project-preview-surface .detail-copy { gap: 36px; margin-top: 36px; }
#project-preview-surface #preview-thumbnail { overflow: hidden; }
#project-preview-surface #editor-empty { align-self: center; justify-self: center; color: var(--muted); }
@media (max-width: 900px) {
  #project-editor .editor-grid { grid-template-columns: minmax(0, 1fr); overflow-y: auto; padding: 14px; }
  .project-edit-fields { overflow: visible; padding-right: 0; }
  .project-live-preview { min-height: 480px; }
  #project-preview-scroll { flex: none; height: 420px; }
  .project-edit-section { padding: 14px; }
}
/* Shared editor workspace: independent form/preview scrolling, fixed actions. */
:is(#edit-page, #edit-company):not([hidden]) { position: fixed; inset: 18px; z-index: 100; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 0 0 100vmax rgb(0 0 0 / 40%); overflow: hidden; }
:is(#edit-page, #edit-company) > .about-editor { width: 100%; max-width: 1480px; height: 100%; margin: auto; display: flex; flex-direction: column; }
:is(#edit-page, #edit-company) h1 { font-size: clamp(1.4rem, 2.2vw, 2rem); margin: 0; }
:is(#edit-page, #edit-company) .page-intro { font-size: .9rem; margin-top: 8px; }
:is(#edit-page, #edit-company) .about-editor-layout { grid-template-columns: minmax(320px, 1fr) minmax(0, 1.2fr); align-items: stretch; gap: 24px; flex: 1; min-height: 0; margin-top: 20px; }
:is(#page-edit-form, #about-form) { display: flex; flex-direction: column; min-height: 0; }
:is(#page-edit-form, #about-form) #about-fields { flex: 1; min-height: 0; overflow-y: auto; padding-right: 12px; align-content: start; overscroll-behavior: contain; }
:is(#page-edit-form, #about-form) .about-editor-actions { flex-shrink: 0; border-top: 1px solid var(--line); padding-top: 14px; margin-top: 14px; }
:is(#edit-page, #edit-company, #edit-landing) textarea { font-family: var(--font-body); font-size: 1rem; line-height: 1.8; min-height: 130px; }
:is(#edit-page, #edit-company) .about-live-preview { position: static; min-height: 0; height: 100%; align-self: stretch; display: flex; box-shadow: none; }
:is(#edit-page, #edit-company) .about-live-preview > details { display: block; width: 100%; height: 100%; min-height: 0; }
:is(#edit-page, #edit-company) .about-preview-scroll { height: calc(100% - 92px); min-height: 200px; border-radius: 0; }
body:has(:is(#edit-page, #edit-company):not([hidden])) { overflow: hidden; }
#edit-landing, #news-editor { width: min(1480px, calc(100% - 32px)); max-height: calc(100dvh - 32px); }
#edit-landing #home-form, #news-form { display: flex; flex-direction: column; height: min(94dvh, 1100px); max-height: calc(100dvh - 34px); }
:is(#edit-landing, #news-editor) .editor-grid { display: grid; grid-template-columns: minmax(320px, 1fr) minmax(0, 1.2fr); flex: 1; gap: 24px; padding: 24px; overflow: hidden; }
#edit-landing .editor-grid > .fields { min-height: 0; overflow-y: auto; padding-right: 14px; }
#edit-landing .dialog-preview-panel { position: static; min-height: 0; height: 100%; }
#edit-landing .dialog-preview-panel > details { height: 100%; }
#edit-landing .dialog-preview-scroll { height: calc(100% - 94px); }
#news-preview-scroll { flex: 1; min-height: 0; height: auto; }
.news-photo-row { display: grid; grid-template-columns: 90px 72px auto; align-items: center; gap: 12px; margin-bottom: 12px; }
.news-photo-row img { width: 90px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 4px; }
.news-photo-row select { margin: 0; }
.news-no-image { display: grid; place-items: center; width: 90px; aspect-ratio: 16 / 9; background: #f5f5f5; font-size: .8rem; color: var(--muted); }
.news-manager-toolbar { margin-block: 30px 14px; }
.news-gallery { display: grid; gap: 16px; align-content: start; }
.news-content.news-content--text { grid-template-columns: 1fr; }
.news-copy p { white-space: pre-wrap; }
#news-delete-dialog { max-width: 520px; }
#news-delete-dialog h2 { font-size: 1.5rem; margin-bottom: 16px; }
#news-delete-dialog p + p { margin-top: 12px; }
@media (max-width: 900px) {
  :is(#edit-page, #edit-company):not([hidden]) { inset: 8px; padding: 14px; overflow-y: auto; }
  :is(#edit-page, #edit-company) > .about-editor { height: auto; min-height: 100%; }
  :is(#edit-page, #edit-company) .about-editor-layout { display: flex; flex-direction: column; }
  :is(#page-edit-form, #about-form) #about-fields { overflow: visible; padding-right: 0; }
  :is(#page-edit-form, #about-form) .about-editor-actions { position: sticky; bottom: 0; background: #fff; z-index: 2; padding-bottom: 10px; }
  :is(#edit-page, #edit-company) .about-live-preview { min-height: 0; height: calc(75dvh + 92px); order: 0; }
  :is(#edit-page, #edit-company) .about-preview-scroll { height: 75dvh; }
  :is(#edit-landing, #news-editor) .editor-grid { grid-template-columns: minmax(0, 1fr); overflow-y: auto; padding: 14px; }
  #edit-landing .editor-grid > .fields, #news-editor .project-edit-fields { overflow: visible; padding-right: 0; }
  #edit-landing .dialog-preview-panel { min-height: 0; height: calc(75dvh + 94px); }
  #edit-landing .dialog-preview-scroll, #news-preview-scroll { height: 75dvh; flex: none; }
  #news-editor .project-live-preview { min-height: 0; }
}
@media (max-width: 820px) {
  .wrap { width: calc(100% - 48px); }
  .nav-row { gap: 10px; }
  nav { gap: 14px; }
  nav a, .admin-link { font-size: .82rem; }
  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 641px) and (max-width: 960px) {
  .site-header .nav-row { flex-wrap: wrap; padding-block: 10px; }
  .nav-row > .admin-link { margin-left: auto; }
  #site-nav { order: 4; width: 100%; justify-content: space-between; }
  #site-nav a { flex: 1; padding-inline: 8px; font-size: .9rem; }
}
@media (max-width: 640px) {
  .wrap { width: calc(100% - 32px); }
  .nav-row { flex-wrap: wrap; gap: 4px 10px; padding-block: 8px; }
  .mobile-menu { display: none !important; }
  .nav-row > .admin-link { margin-left: auto; }
  .site-header .wrap { width: calc(100% - 24px); }
  #site-nav, #site-nav.open { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); width: 100%; order: 4; gap: 4px; border-top: 0; margin-top: 4px; }
  #site-nav a { justify-content: center; min-width: 0; padding: 10px 0 15px; min-height: 48px; font-size: clamp(.7rem, 3.4vw, .86rem); font-weight: 800; white-space: nowrap; border-radius: 0; }
  .hero { min-height: 0; padding-block: 52px 40px; }
  .hero-grid, .contact-grid, .work-grid { grid-template-columns: 1fr; }
  .hero-media { aspect-ratio: 1600 / 671; }
  .actions .btn { flex: 1; padding-inline: 8px; }
  .editor-grid { grid-template-columns: 1fr; }
  .editor-preview { position: static; }
  .dialog-preview-panel { grid-row: 1; position: sticky; top: 0; z-index: 2; }
  .dialog-preview-scroll { height: clamp(110px, 25vh, 190px); }
  .dialog-heading, .dialog-content, .dialog-footer { padding-inline: 13px; }
}
@media (max-width: 370px) { .pair { grid-template-columns: 1fr; } }

.hero-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.hero-media { border-radius: 4px; box-shadow: 0 20px 46px color-mix(in srgb, var(--brand-deep) 16%, transparent); }
.hero-media img { transform: scale(var(--hero-scale, 1)); }
.home-progress { position: fixed; pointer-events: none; }
.home-progress { inset: 0 0 auto; z-index: 4; height: 3px; background: var(--brand); transform: scaleX(var(--home-progress, 0)); transform-origin: left; }
.services { color: #fff; background: var(--brand-deep); }
.services-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); align-items: start; gap: clamp(26px, 8vw, 120px); }
.services-intro { position: sticky; top: 56px; }
.services-intro > p { color: var(--brand-light); margin-top: 15px; }
.service-readout { display: none; padding-top: 18px; margin-top: 36px; border-top: 1px solid color-mix(in srgb, var(--brand-light) 48%, var(--brand-deep)); gap: 14px; color: var(--brand-light); }
.home-motion-enabled .service-readout { display: flex; align-items: baseline; flex-wrap: wrap; }
#service-count, .chapter-number { font-variant-numeric: tabular-nums; font-weight: 750; color: var(--brand-light); }
.service-chapter {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(14px, 3vw, 38px);
  align-content: center;
  min-height: clamp(185px, 30vh, 300px);
  padding: 24px clamp(14px, 3vw, 38px);
  border-top: 1px solid color-mix(in srgb, var(--brand-light) 48%, var(--brand-deep));
  transition: background-color 260ms ease, border-color 260ms ease;
}
.service-chapter:last-child { border-bottom: 1px solid color-mix(in srgb, var(--brand-light) 48%, var(--brand-deep)); }
.service-chapter.is-current { background: color-mix(in srgb, var(--brand-deep) 84%, white); border-top-color: var(--brand-light); }
.service-chapter h3 { font-size: clamp(1.4rem, 2.7vw, 2.5rem); line-height: 1.2; letter-spacing: -.04em; }
.service-tier { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; color: var(--brand-light); font-weight: 750; margin-bottom: 7px; }
.service-badge { font-size: .8rem; border: 1px solid currentColor; border-radius: 99px; padding: 2px 8px; }
.service-items { padding-inline-start: 1.25em; margin-block: 14px 18px; color: #f2f6fc; line-height: 1.65; }

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  :is(.hero, #portfolio, .contact) :is(.btn, .showreel, .project-card) {
    transition: translate 180ms ease, box-shadow 180ms ease, background-color 180ms ease, border-color 180ms ease;
  }
  :is(.hero, #portfolio, .contact) :is(.btn, .showreel, .project-card):hover {
    translate: 0 -3px;
    box-shadow: 0 7px 18px color-mix(in srgb, var(--brand-deep) 18%, transparent);
  }
  :is(.hero, #portfolio, .contact) :is(.btn, .showreel, .project-card):active {
    translate: 0 1px;
    box-shadow: none;
  }
  #portfolio .card-image img { transition: scale 360ms ease; }
  #portfolio .project-card:hover img { scale: 1.035; }
}
@media (max-width: 760px) {
  .hero-grid, .services-grid { grid-template-columns: 1fr; }
  .services-intro { position: static; }
  .home-motion-enabled .service-readout { display: none; }
  .service-chapter { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .home-progress, .home-motion-enabled .service-readout { display: none; }
  .hero-media img { transform: none; }
  .service-chapter { transition: none; }
}

.page-intro { color: var(--muted); margin-top: 14px; }
body:has([data-editor-page="news"]:not([hidden])) {
  display: grid;
  grid-template-rows: auto minmax(210px, 1fr) auto;
  height: 100svh;
}
body:has([data-editor-page="news"]:not([hidden])) > main {
  overflow-y: auto;
  scrollbar-gutter: stable;
}
.news-list { list-style: none; padding: 0; margin: 28px 0 0; border-top: 1px solid var(--line); }
.news-item { border-bottom: 1px solid var(--line); }
.news-entry { display: grid; grid-template-columns: 8rem minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 24px clamp(10px, 2vw, 22px); cursor: pointer; list-style: none; }
.news-entry::-webkit-details-marker { display: none; }
.news-entry time { font-variant-numeric: tabular-nums; color: var(--muted); }
.news-title, .location-card h2, .location-map h2 { font-size: clamp(1.12rem, 2.1vw, 1.65rem); margin: 0; }
.news-title { font-family: var(--font-display); font-weight: 750; }
.news-entry:hover, .news-item[open] .news-entry, .location-card a:not(.btn):hover { color: var(--accent); }
.news-toggle { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid currentColor; border-radius: 50%; }
.news-toggle::before { content: '+'; font-size: 1.2rem; line-height: 1; }
.news-item[open] .news-toggle::before { content: '−'; }
.news-content { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: start; gap: clamp(16px, 4vw, 42px); padding: 0 clamp(10px, 2vw, 22px) clamp(22px, 4vw, 40px); }
.news-item:not([open]) .news-panel { display: none; }
.news-panel.is-animating { overflow: hidden; }
.news-content img { width: 100%; height: auto; border-radius: 6px; }
.news-copy { display: grid; gap: 10px; color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
.news-copy p { white-space: pre-wrap; }
.editor-workspace-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.location-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 24px; }
.location-map { margin-top: 24px; }
.location-map-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; margin-bottom: 6px; }
.location-map iframe { display: block; width: 100%; height: clamp(300px, 47vw, 460px); border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.location-map-viewport { position: relative; height: clamp(300px, 47vw, 460px); overflow: hidden; border: 1px solid var(--line); border-radius: 8px; }
.location-map-viewport iframe { position: absolute; inset: -120px 0 auto; height: calc(100% + 120px); border: 0; border-radius: 0; }
.location-card { padding: clamp(18px, 4vw, 35px); border: 1px solid #e5e5e5; border-radius: 8px; background: #fff; overflow-wrap: anywhere; }
.location-card h2 { padding-bottom: 12px; border-bottom: 1px solid #fff; box-shadow: 0 1px 0 #e5e5e5; }
.location-card address { font-style: normal; margin-block: 14px 10px; line-height: 1.65; }
.location-card h2 + p { margin-top: 14px; }
@media (max-width: 640px) {
  body:has([data-editor-page="news"]:not([hidden])) {
    height: auto;
    min-height: 100svh;
    grid-template-rows: auto 1fr auto;
  }
  body:has([data-editor-page="news"]:not([hidden])) > main {
    overflow: visible;
    min-height: 0;
  }
  .location-grid { grid-template-columns: 1fr; }
  .news-entry { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 14px; }
  .news-entry time { grid-column: 1 / -1; }
  .news-content { grid-template-columns: 1fr; }
}

/* Give preview frames a definite height before measuring their viewport. */
.page-preview-layout { display: grid; grid-template-rows: auto auto minmax(0, 1fr); width: 100%; height: 100%; min-height: 0; overflow: hidden; }
.page-preview-heading { padding: 12px 14px 10px; font-weight: 750; }
:is(#edit-page, #edit-company, #edit-landing) .page-preview-layout > .about-preview-scroll { width: 100%; height: 100%; min-height: 0; }
#news-editor .project-live-preview { display: grid; grid-template-rows: auto auto minmax(0, 1fr); align-self: stretch; height: 100%; }
#news-preview-scroll { width: 100%; height: 100%; min-height: 0; flex: none; }
.editor-full-page > iframe { visibility: visible; background: #fff; }
.privacy-document { max-width: 960px; }
.privacy-document h1 { font-size: clamp(2rem, 4.5vw, 3.6rem); }
.privacy-draft-note { margin-top: 24px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); font-size: .9rem; line-height: 1.7; white-space: pre-wrap; }
.privacy-block { padding-top: 28px; margin-top: 36px; border-top: 1px solid var(--line); }
.privacy-block h2 { font-size: clamp(1.18rem, 2.5vw, 1.5rem); margin-bottom: 18px; line-height: 1.45; }
.privacy-block p { line-height: 1.9; white-space: pre-wrap; overflow-wrap: anywhere; }
.privacy-block p + p { margin-top: 12px; }
.privacy-block a { overflow-wrap: anywhere; }
.detail-story-list { margin: 0; padding-left: 1.25em; line-height: 1.9; font-weight: 500; }
.detail-story-list li + li { margin-top: 10px; }
.detail-section-body > .detail-story-list + .detail-story-list { margin-top: 18px; }
@media (max-width: 640px) {
  :is(.about-video-copy, .about-card) p:not(.eyebrow), .greeting-copy p,
  .news-copy p, .detail-copy .detail-story-paragraph, .detail-copy .detail-story-meta,
  .privacy-block p, .privacy-draft-note, .faq-answer p, .page-intro {
    white-space: normal;
    word-break: keep-all;
    overflow-wrap: anywhere;
  }
  .detail-copy .detail-story-title, .news-title { word-break: keep-all; overflow-wrap: anywhere; }
}
@media (max-width: 900px) {
  #news-editor .project-live-preview { height: calc(75dvh + 92px); }
}

