/* Tertia Works — main site. Same system as the home page: brand navy (logo), gold, whitewash, mist;
   Cardo for display, Inter for text; flat panels meeting edge to edge; one pill button shape;
   no gradients, outlines, resting shadows or ornaments. */
.tw-site {
  --tw-navy: #13294b;
  --tw-navy-deep: #0a1b33;
  --tw-cell: #1d3a63;
  --tw-sea: #2f6690;
  --tw-gold: #c9a227;
  --tw-gold-soft: #e4c463;
  --tw-whitewash: #faf8f4;
  --tw-mist: #eaf0f6;
  --tw-ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  background: var(--tw-whitewash);
  color: #16202e;
}
.tw-site ::selection { background: var(--tw-gold-soft); color: var(--tw-navy); }
.tw-site a { text-underline-offset: 0.2em; }
.tw-site input, .tw-site textarea, .tw-site select { caret-color: var(--tw-navy); accent-color: var(--tw-navy); }
.tw-site main .wp-block-post-content > * { margin-block-start: 0; }
.tw-site main { margin-top: 0 !important; }

/* ---------- Header ---------- */
.tw-site header.wp-block-template-part > .wp-block-group { background: var(--tw-whitewash) !important; }
.tw-site header .wp-block-site-title { font-family: "Cardo", Georgia, serif; font-weight: 700; font-size: 1.4rem; letter-spacing: -0.01em; }
.tw-site header .wp-block-site-title a { color: var(--tw-navy); text-decoration: none; }
.tw-site header .wp-block-navigation-item__content { color: var(--tw-navy); font-size: 1rem; }
.tw-site header .wp-block-navigation-item__content:hover { text-decoration: underline; }
.tw-site header .wp-block-social-link { background: var(--tw-navy) !important; color: var(--tw-whitewash) !important; }

/* ---------- Footer: a designed close ---------- */
.tw-site footer.wp-block-template-part { background: var(--tw-navy); color: var(--tw-whitewash); margin-top: 0 !important; }
.tw-site footer.wp-block-template-part > .wp-block-group { padding-top: clamp(48px, 8vh, 96px) !important; padding-bottom: 32px !important; }
.tw-site footer a { color: var(--tw-whitewash); }
.tw-site footer .wp-block-navigation-item__content { color: var(--tw-whitewash); }
.tw-site footer .tw-wordmark { font-family: "Cardo", Georgia, serif; font-weight: 700; font-size: clamp(3.2rem, 15vw, 15rem); line-height: 0.85; letter-spacing: -0.03em; color: var(--tw-whitewash); margin: 0 0 clamp(24px, 4vh, 48px); white-space: nowrap; }
.tw-site footer .tw-foot-line { font-size: 0.95rem; color: #d7deea; margin: 0; }
.tw-site footer .wp-block-site-logo img { border-radius: 50%; }

/* ---------- Buttons: one shape, flat, press feedback ---------- */
.tw-site .wp-block-button__link {
  border-radius: 999px; padding: 0.85rem 1.5rem; min-height: 44px; box-sizing: border-box;
  font-weight: 600; box-shadow: none; text-shadow: none;
  transition: transform 160ms var(--tw-ease-out), background-color 200ms ease, color 200ms ease;
}
.tw-site .wp-block-button__link:active { transform: scale(0.97); }
.tw-site .wp-block-button.is-style-outline .wp-block-button__link { border: 2px solid currentColor; }

/* ---------- Title band (Services hero, Contact, Privacy) ---------- */
.tw-site .tw-band {
  background: var(--tw-navy) !important;
  color: var(--tw-whitewash);
  padding: clamp(56px, 12vh, 140px) var(--wp--style--root--padding-right, 24px) clamp(40px, 8vh, 96px) var(--wp--style--root--padding-left, 24px) !important;
  margin-top: 0 !important; margin-bottom: 0 !important;
}
.tw-site .tw-band > * { max-width: 1200px !important; margin-left: auto !important; margin-right: auto !important; }
.tw-site .tw-band h1 {
  font-family: "Cardo", Georgia, serif; font-weight: 700; color: var(--tw-whitewash);
  font-size: clamp(2.6rem, 8vw, 8.5rem) !important; line-height: 0.92; letter-spacing: -0.03em; margin: 0 0 0.35em !important; text-align: left !important;
}
.tw-site .tw-band h1 .tw-ink-gold { color: var(--tw-gold); }
.tw-site .tw-band p { color: #e3e9f2; font-size: 1.125rem; line-height: 1.55; max-width: 46ch; margin-left: 0 !important; text-align: left !important; }
.tw-site .tw-band a { color: var(--tw-whitewash); }
.tw-site .tw-band .wp-block-buttons { justify-content: flex-start !important; gap: 10px; margin-top: 1.75rem !important; }
.tw-site .tw-band .wp-block-button__link { background: transparent; color: var(--tw-whitewash); border: 2px solid rgba(250, 248, 244, 0.55); padding: 0.7rem 1.25rem; font-weight: 600; letter-spacing: 0; text-transform: none; }
.tw-site .tw-band .tw-btn-gold .wp-block-button__link { background: var(--tw-gold); border-color: var(--tw-gold); color: var(--tw-navy); }
@media (hover: hover) and (pointer: fine) {
  .tw-site .tw-band .wp-block-button__link:hover { background: rgba(250, 248, 244, 0.12); }
  .tw-site .tw-band .tw-btn-gold .wp-block-button__link:hover { background: var(--tw-gold-soft); }
}
/* the Services hero is a full statement over two lines */
.tw-site .tw-band--statement h1 { font-size: clamp(2rem, 6.2vw, 6.6rem) !important; line-height: 0.98; }

/* ---------- Services: the four areas as flat panels ---------- */
.tw-site .tw-area { padding-top: clamp(72px, 12vh, 160px) !important; padding-bottom: clamp(72px, 12vh, 160px) !important; margin-top: 0 !important; margin-bottom: 0 !important; }
.tw-site .tw-area > .wp-block-group:first-child h2 {
  font-family: "Cardo", Georgia, serif; font-weight: 700; color: var(--tw-navy);
  font-size: clamp(3rem, 7vw, 7rem) !important; line-height: 0.9; letter-spacing: -0.03em; text-align: left !important; margin: 0 0 0.25em !important;
}
.tw-site .tw-area > .wp-block-group:first-child p {
  font-family: "Cardo", Georgia, serif; font-style: normal !important; color: var(--tw-navy) !important;
  font-size: clamp(1.4rem, 1.1rem + 1vw, 2.1rem) !important; line-height: 1.2; max-width: 30ch; text-align: left !important; margin-left: 0 !important;
}
.tw-site .tw-area > .wp-block-group:first-child { align-items: flex-start !important; }
.tw-site .tw-area > .wp-block-group:first-child > * { margin-left: 0 !important; }
.tw-site .tw-area h3 { font-family: "Cardo", Georgia, serif; font-weight: 700; color: var(--tw-navy); font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.4rem) !important; line-height: 1.05; letter-spacing: -0.01em; text-transform: none; }
.tw-site .tw-area h3 + p { font-style: normal !important; color: var(--tw-sea) !important; font-family: "Cardo", Georgia, serif; font-size: 1.3rem !important; line-height: 1.3; }
.tw-site .tw-area p, .tw-site .tw-area li { font-size: 1.0625rem; line-height: 1.6; color: #16202e; }
.tw-site .tw-area .wp-block-image img { border-radius: 8px; box-shadow: none !important; }
.tw-site .tw-area .wp-block-columns { gap: clamp(24px, 4vw, 64px) !important; }
@media (hover: hover) and (pointer: fine) {
  .tw-site .tw-area .wp-block-image { overflow: hidden; border-radius: 8px; }
  .tw-site .tw-area .wp-block-image img { transition: transform 500ms var(--tw-ease-out); }
  .tw-site .tw-area .wp-block-image:hover img { transform: scale(1.025); }
}

/* ---------- Closing panel with contact cells (Services, shared with home) ---------- */
.tw-site .tw-close { background: var(--tw-navy) !important; color: var(--tw-whitewash); padding: clamp(72px, 12vh, 150px) var(--wp--style--root--padding-right, 24px) !important; margin-top: 0 !important; margin-bottom: 0 !important; }
.tw-site .tw-close > * { max-width: 1200px !important; margin-left: auto !important; margin-right: auto !important; }
.tw-site .tw-close h2 { color: var(--tw-whitewash); font-family: "Cardo", Georgia, serif; font-size: clamp(2.25rem, 4vw, 3.75rem) !important; line-height: 1; letter-spacing: -0.02em; text-align: left !important; margin: 0 0 0.4em !important; max-width: 18ch; }
.tw-site .tw-close > p { color: #e3e9f2; font-size: 1.125rem; text-align: left !important; margin: 0 0 40px !important; }
.tw-site .tw-cells { display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tw-site .tw-cells > * { margin-top: 0 !important; margin-bottom: 0 !important; background: var(--tw-cell); border-radius: 8px; min-height: 96px; padding: 20px 24px; box-sizing: border-box; display: flex; flex-direction: column; justify-content: center; color: var(--tw-whitewash); font-size: 1.125rem; }
.tw-site .tw-cells p { margin: 0; color: var(--tw-whitewash); }
.tw-site .tw-cells a { color: var(--tw-whitewash); }
.tw-site .tw-cells .tw-cell-label { font-size: 0.875rem; opacity: 0.8; margin-bottom: 0.2rem; }
.tw-site .tw-cells .wp-block-buttons { background: var(--tw-gold); justify-content: center; }
.tw-site .tw-cells .wp-block-button__link { background: transparent; color: var(--tw-navy); font-size: 1.125rem; }
@media (max-width: 781px) { .tw-site .tw-cells { grid-template-columns: 1fr; } .tw-site .tw-cells > * { min-height: 60px; } }

/* ---------- Contact ---------- */
.tw-site .tw-contact-body { background: var(--tw-mist); padding: clamp(48px, 9vh, 110px) var(--wp--style--root--padding-right, 24px) !important; margin-top: 0 !important; margin-bottom: 0 !important; }
.tw-site .tw-contact-body > * { max-width: 1200px !important; margin-left: auto !important; margin-right: auto !important; }
.tw-site .tw-contact-body :is(h2, h3) { font-family: "Cardo", Georgia, serif; font-size: 1.9rem !important; color: var(--tw-navy); text-transform: none; margin: 0 0 1rem; }
.tw-site .tw-contact-body .tw-detail { background: var(--tw-whitewash); border-radius: 8px; padding: 20px 24px; margin: 0 0 8px !important; }
.tw-site .tw-contact-body .tw-detail p { margin: 0; }
.tw-site .tw-contact-body .tw-detail p:first-child { font-size: 0.875rem; color: #52606f !important; margin-bottom: 0.2rem; }
.tw-site .tw-contact-body .tw-detail a { color: var(--tw-navy); font-size: 1.125rem; }
.tw-site .tw-contact-body .has-base-2-background-color { border-radius: 8px !important; }
.tw-site .tw-map { margin-top: 0 !important; margin-bottom: 0 !important; max-width: none !important; }
.tw-site .tw-map iframe { display: block; border: 0; filter: saturate(0.85); }

/* ---------- Privacy: calm reading column ---------- */
.tw-site .tw-legal { padding: clamp(48px, 8vh, 96px) var(--wp--style--root--padding-right, 24px) clamp(64px, 10vh, 120px) !important; margin-top: 0 !important; margin-bottom: 0 !important; }
.tw-site .tw-legal > * { max-width: 68ch !important; margin-left: 0 !important; margin-right: auto !important; }
.tw-site .tw-legal h2 { font-family: "Cardo", Georgia, serif; color: var(--tw-navy); font-size: clamp(1.7rem, 1.3rem + 1vw, 2.2rem) !important; margin-top: 2.4em !important; margin-bottom: 0.5em !important; }
.tw-site .tw-legal h3 { font-family: "Cardo", Georgia, serif; color: var(--tw-navy); font-size: 1.4rem !important; margin-top: 1.6em !important; margin-bottom: 0.4em !important; }
.tw-site .tw-legal p, .tw-site .tw-legal li { font-size: 1.0625rem; line-height: 1.65; color: #16202e; }

/* ---------- Entrances (set by the script; content visible without it) ---------- */
.tw-site .tw-pre { opacity: 0; transform: translateY(20px); }
.tw-site .tw-pre.tw-in { opacity: 1; transform: none; transition: opacity 420ms var(--tw-ease-out), transform 480ms var(--tw-ease-out); transition-delay: var(--tw-stagger, 0ms); }
@media (prefers-reduced-motion: reduce) { .tw-site .tw-pre { opacity: 1; transform: none; } }

/* Round 1 fixes after the render */
.tw-site .tw-band--statement h1 { font-size: clamp(1.65rem, 5.4vw, 6.4rem) !important; }
.page-id-28.tw-site .tw-band h1 { font-size: clamp(2rem, 5.6vw, 5.5rem) !important; line-height: 1; }
@media (max-width: 600px) {
  .tw-site .tw-legal h2 { font-size: 1.45rem !important; }
}
/* one pair of outer margins: bands and panels use the site's root padding, like the header */
.tw-site .tw-band > *, .tw-site .tw-close > *, .tw-site .tw-contact-body > * { max-width: none !important; }
.tw-site .tw-band > h1 { max-width: 16ch !important; }
.tw-site .tw-band--statement > h1 { max-width: none !important; }
.tw-site .tw-close > h2 { max-width: 18ch !important; }
/* contact: equal detail cells, form button in the site's pill shape */
.tw-site .tw-contact-body .tw-detail { align-self: stretch; }
.tw-site .tw-contact-body .tw-detail + .tw-detail { margin-top: 0 !important; }
.tw-site .tw-contact-body button[type="submit"], .tw-site .tw-contact-body input[type="submit"] {
  background: var(--tw-navy) !important; color: var(--tw-whitewash) !important; border: 0 !important;
  border-radius: 999px !important; padding: 0.85rem 1.6rem !important; font-weight: 600;
  transition: transform 160ms cubic-bezier(0.23,1,0.32,1); cursor: pointer;
}
.tw-site .tw-contact-body button[type="submit"]:active, .tw-site .tw-contact-body input[type="submit"]:active { transform: scale(0.97); }

/* desktop: Services section headers use the full width — big heading left, tagline right on the same baseline */
@media (min-width: 1100px) {
  .tw-site .tw-area > .wp-block-group:first-child {
    display: grid !important; grid-template-columns: minmax(0, 1fr) minmax(0, 24rem); align-items: end; column-gap: 48px;
  }
  .tw-site .tw-area > .wp-block-group:first-child h2 { margin: 0 !important; }
  .tw-site .tw-area > .wp-block-group:first-child p { margin: 0 0 0.35em !important; max-width: 24rem; }
}

/* Privacy: table of contents in the empty right column on wide screens (built by tertia-site.js) */
.tw-site .tw-toc { display: none; }
@media (min-width: 1200px) {
  .tw-site .tw-legal { position: relative; }
  .tw-site .tw-toc {
    display: block; position: absolute; top: clamp(48px, 8vh, 96px); bottom: clamp(64px, 10vh, 120px);
    right: var(--wp--style--root--padding-right, 24px); width: min(20rem, calc(100% - 68ch - 12rem));
  }
  .tw-site .tw-toc__inner { position: sticky; top: 32px; max-height: calc(100vh - 64px); overflow: auto; }
  .tw-site .tw-toc__title { font-family: "Cardo", Georgia, serif; font-size: 1.35rem; color: var(--tw-navy); margin: 0 0 0.75rem; }
  .tw-site .tw-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
  .tw-site .tw-toc a {
    display: block; padding: 6px 12px; border-radius: 6px; color: #3a4a60; text-decoration: none; font-size: 0.95rem; line-height: 1.35;
    transition: background-color 160ms ease, color 160ms ease;
  }
  .tw-site .tw-toc a[aria-current="true"] { background: var(--tw-mist, #eaf0f6); color: var(--tw-navy); font-weight: 600; }
  .tw-site .tw-toc a:focus-visible { outline: 2px solid var(--tw-navy); outline-offset: 2px; }
}
@media (min-width: 1200px) and (hover: hover) and (pointer: fine) {
  .tw-site .tw-toc a:hover { color: var(--tw-navy); background: rgba(234, 240, 246, 0.6); }
}
.tw-site .tw-legal h2 { scroll-margin-top: 24px; }

/* Cardo's bold cut has almost no bold Greek (only π, ρ, ο are heavier), so bold Greek headings looked patchy.
   Greek headings use the regular cut, where every letter matches; Latin-only text keeps its bold. */
html[lang="el"] body :is(h1, h2, h3, h4, h5, h6):not([lang="en"]) { font-weight: 400 !important; }

/* ===== Round 3 (flow review, 2026-10-23) ===== */
/* Services: every service row is the same shape — text 44%, photograph 56% cropped to 4:3 — so the eye
   travels down the page in one rhythm instead of re-reading a new layout each time. */
@media (min-width: 782px) {
  .tw-site .tw-area .wp-block-columns { align-items: center !important; gap: clamp(32px, 4.5vw, 72px) !important; }
  .tw-site .tw-area .wp-block-columns > .wp-block-column { flex-basis: 44% !important; flex-grow: 0 !important; }
  .tw-site .tw-area .wp-block-columns > .wp-block-column:has(.wp-block-image) { flex-basis: 56% !important; flex-grow: 1 !important; }
}
.tw-site .tw-area .wp-block-image { margin: 0 !important; width: 100% !important; }
.tw-site .tw-area .wp-block-image img { width: 100% !important; height: auto !important; aspect-ratio: 4 / 3 !important; object-fit: cover; }
/* phones: the photograph always opens its service, and the gaps between services match */
@media (max-width: 781px) {
  .tw-site .tw-area .wp-block-columns > .wp-block-column:has(.wp-block-image) { order: -1; }
  .tw-site .tw-area .wp-block-columns { gap: 20px !important; }
}
.tw-site .tw-area > .wp-block-spacer { height: clamp(56px, 8vw, 112px) !important; }

/* Contact: the band says what to do, the details fill their column, the form uses the site's type */
.page-id-39.tw-site .tw-band p { font-size: clamp(1.0625rem, 0.95rem + 0.4vw, 1.25rem) !important; max-width: 40ch; }
.tw-site .tw-contact-body .tw-detail { width: 100%; box-sizing: border-box; }
.tw-site .fluentform, .tw-site .fluentform input, .tw-site .fluentform textarea, .tw-site .fluentform select, .tw-site .fluentform button { font-family: "Inter", sans-serif !important; }
.tw-site .fluentform .ff-el-form-control { font-size: 1rem !important; min-height: 48px; border-radius: 10px !important; border-color: #c9d4e2 !important; color: #13294b !important; background: #fff; transition: border-color 160ms ease, box-shadow 160ms ease; }
.tw-site .fluentform textarea.ff-el-form-control { min-height: 140px; }
.tw-site .fluentform .ff-el-form-control::placeholder { color: #6b7a8f !important; opacity: 1; }
.tw-site .fluentform .ff-el-form-control:focus { border-color: #13294b !important; box-shadow: 0 0 0 3px rgba(19, 41, 75, 0.15) !important; outline: none; }
.tw-site .fluentform .ff-el-input--label label { font-size: 1rem; font-weight: 600; color: #13294b; }
.tw-site .tw-map { margin-top: 0 !important; padding-block: clamp(48px, 7vw, 96px) !important; }
.tw-site .tw-map .tw-map-gate { border-radius: 14px; }

/* Browser surfaces in the palette (selection, caret, checkboxes, scrollbars, focus) */
.tw-site ::selection { background: #e4c463; color: #13294b; }
.tw-site { caret-color: #13294b; accent-color: #13294b; scrollbar-color: #9fb0c7 #faf8f4; }
.tw-site a { text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
.tw-site :focus-visible { outline: 2px solid #13294b; outline-offset: 3px; }
.tw-site .has-aegean-navy-background-color :focus-visible { outline-color: #e4c463; }

/* Phone menu buttons: a 44px target for the thumb (the icon was a 24px hit area) */
/* only where WordPress shows these buttons (phones); on wider screens core keeps them hidden */
@media (max-width: 599px) {
  .tw-site .wp-block-navigation__responsive-container-open:not(.always-shown) { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
}
.tw-site .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
/* the form's submit button: Fluent Forms removes the outline, put a visible ring back for keyboard users */
.tw-site .fluentform button[type="submit"]:focus-visible { outline: 3px solid #c9a227 !important; outline-offset: 3px !important; }

/* ===== Type scale (2026-10-23) =====
   Inter: 15 small notes · 16 buttons · 17 body · 20 lead.   Cardo: 22 · 28 · 34 · 64 section titles; page titles keep their own display size. */
.tw-site .tw-cell-label, .tw-site .tw-contact-body .tw-detail p:first-child, .tw-site .tw-consent .tw-consent__link,
.tw-site .tw-map-gate__credit, .tw-site .tw-map-gate--static .tw-map-gate__note, .tw-site .tw-foot-line, .tw-site .tw-toc a { font-size: 0.9375rem !important; }
.tw-site .wp-block-button__link, .tw-site .tw-map-gate__dir, .tw-site .tw-map-gate--static .tw-map-gate__show, .tw-site .fluentform button[type="submit"] { font-size: 1rem !important; }
.tw-site .tw-cells p:not(.tw-cell-label), .tw-site .tw-cells a, .tw-site .tw-contact-body .tw-detail a { font-size: 1.0625rem !important; }
.tw-site .tw-band p, .tw-site .tw-close > p { font-size: clamp(1.0625rem, 0.95rem + 0.4vw, 1.25rem) !important; }
.tw-site .tw-area h3 + p, .tw-site .tw-legal h3, .tw-site .tw-toc__title { font-size: 1.375rem !important; }
.tw-site .tw-area > .wp-block-group:first-child p { font-size: clamp(1.4rem, 0.9rem + 1.4vw, 2.125rem) !important; }
.tw-site .tw-area h3, .tw-site .tw-contact-body :is(h2, h3), .tw-site .tw-legal h2 { font-size: clamp(1.6rem, 1.25rem + 1vw, 2.125rem) !important; }
.tw-site .tw-close h2 { font-size: clamp(2.25rem, 1.4rem + 3vw, 4rem) !important; }

/* ===== Services flow (2026-10-23) ===== */
/* 1. Rhythm: Παρουσίαση and Υποδομή keep the zig-zag rows; Λειτουργία and Διοίκηση set their two services
      side by side (photo above), so neighbouring areas never share a layout and the page reads as chapters. */
@media (min-width: 1024px) {
  .tw-site .tw-area:is(#operations, #admin) {
    display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(32px, 4vw, 64px); row-gap: 0;
    padding-left: max(var(--wp--style--root--padding-left, 24px), calc((100% - var(--wp--style--global--wide-size, 1280px)) / 2)) !important;
    padding-right: max(var(--wp--style--root--padding-right, 24px), calc((100% - var(--wp--style--global--wide-size, 1280px)) / 2)) !important;
  }
  .tw-site .tw-area:is(#operations, #admin) > * { max-width: none !important; margin-left: 0 !important; margin-right: 0 !important; }
  .tw-site .tw-area:is(#operations, #admin) > .wp-block-group:first-child,
  .tw-site .tw-area:is(#operations, #admin) > .tw-area-cta-wrap { grid-column: 1 / -1; }
  .tw-site .tw-area:is(#operations, #admin) > .wp-block-spacer { display: none; }
  .tw-site .tw-area:is(#operations, #admin) > .wp-block-group:first-child { margin-bottom: clamp(32px, 4vw, 56px) !important; }
  .tw-site .tw-area:is(#operations, #admin) > .wp-block-columns { flex-direction: column !important; align-items: stretch !important; gap: 24px !important; }
  .tw-site .tw-area:is(#operations, #admin) > .wp-block-columns > .wp-block-column { flex-basis: auto !important; width: 100% !important; }
  .tw-site .tw-area:is(#operations, #admin) > .wp-block-columns > .wp-block-column:has(.wp-block-image) { order: -1; }
  .tw-site .tw-area:is(#operations, #admin) .wp-block-image img { aspect-ratio: 3 / 2 !important; }
}
/* 2. The area title belongs to its services: a short step from title to first service, a clear one between services */
.tw-site .tw-area > .wp-block-group:first-child + .wp-block-spacer { height: clamp(28px, 3.5vw, 56px) !important; }
.tw-site .tw-area > .wp-block-columns + .wp-block-spacer { height: clamp(56px, 7vw, 104px) !important; }
/* 3. Each area closes with its own way to act */
.tw-site .tw-area-cta-wrap { margin-top: clamp(40px, 5vw, 72px) !important; }
.tw-site .tw-area-cta .wp-block-button__link { background: var(--tw-navy) !important; color: var(--tw-whitewash) !important; border-radius: 999px; padding: 0.9rem 1.6rem; font-weight: 600; transition: transform 160ms cubic-bezier(0.23, 1, 0.32, 1), background-color 200ms ease; }
.tw-site .tw-area-cta .wp-block-button__link:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .tw-site .tw-area-cta .wp-block-button__link:hover { background: var(--tw-navy-deep, #0a1b33) !important; } }
/* 4. Phones: wider photographs keep each service closer to one screen */
@media (max-width: 781px) { .tw-site .tw-area .wp-block-image img { aspect-ratio: 16 / 9 !important; } }
/* 5. Sticky area bar (built by tertia-site.js) */
.tw-site .tw-area { scroll-margin-top: 64px; }
.tw-areabar {
  position: fixed; z-index: 50; top: var(--wp-admin--admin-bar--height, 0px); left: 0; right: 0;
  background: rgba(250, 248, 244, 0.97); border-bottom: 0; box-shadow: 0 6px 18px rgba(10, 27, 51, 0.12);
  transform: translateY(-110%); transition: transform 240ms cubic-bezier(0.23, 1, 0.32, 1);
}
.tw-areabar.is-on { transform: none; }
.tw-areabar__in { display: flex; align-items: center; gap: 8px; max-width: var(--wp--style--global--wide-size, 1280px); margin: 0 auto; padding: 8px var(--wp--style--root--padding-right, 24px); }
.tw-areabar ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; overflow-x: auto; scrollbar-width: none; flex: 1; }
.tw-areabar ul::-webkit-scrollbar { display: none; }
.tw-areabar a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; color: var(--tw-navy); text-decoration: none; font-size: 0.9375rem; white-space: nowrap; transition: background-color 200ms ease, color 200ms ease; }
.tw-areabar a[aria-current="true"] { background: var(--tw-navy); color: var(--tw-whitewash); }
@media (hover: hover) and (pointer: fine) { .tw-areabar ul a:not([aria-current="true"]):hover { background: var(--tw-mist); } }
.tw-areabar .tw-areabar__cta { background: var(--tw-gold); color: var(--tw-navy); font-weight: 600; flex: none; }
.tw-areabar a:focus-visible { outline: 2px solid var(--tw-navy); outline-offset: 2px; }
@media (max-width: 600px) { .tw-areabar__cta { display: none !important; } .tw-areabar__in { padding-left: 12px; padding-right: 12px; } }
@media (prefers-reduced-motion: reduce) { .tw-areabar { transition: none; } }
@media (min-width: 1024px) {
  /* side-by-side services start on the same line */
  .tw-site .tw-area:is(#operations, #admin) > .wp-block-columns { align-self: start; }
  .tw-site .tw-area:is(#operations, #admin) > .wp-block-columns > .wp-block-column { align-self: stretch !important; justify-content: flex-start !important; }
}

/* =====================================================================
   Scroll motion (2026-10-23) — the handover, performed as you scroll.
   Native CSS scroll timelines: off the main thread, no scroll hijacking. Browsers without them keep the
   reveal-once entrances (tertia-site.js); reduced motion keeps every finished composition still.
   Transform, opacity and clip-path only.
   ===================================================================== */

/* Page to page: the header holds, the new page rises in */
@view-transition { navigation: auto; }
.tw-site header.wp-block-template-part { view-transition-name: tw-header; }
/* the name makes the header its own layer, so the page would paint over the open phone menu: drop it while the menu is open */
html.has-modal-open .tw-site header.wp-block-template-part { view-transition-name: none; }
::view-transition-old(root) { animation: tw-vt-out 160ms cubic-bezier(0.23, 1, 0.32, 1) both; }
::view-transition-new(root) { animation: tw-vt-in 320ms cubic-bezier(0.23, 1, 0.32, 1) both; }
@keyframes tw-vt-out { to { opacity: 0; } }
@keyframes tw-vt-in { from { opacity: 0; transform: translateY(14px); } }
@media (prefers-reduced-motion: reduce) { ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; } }

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    /* Services — the opening statement lifts away as the page begins */
    .tw-site .tw-band { view-timeline-name: --tw-band; }
    .tw-site .tw-band > * { animation: tw-lift linear both; animation-timeline: --tw-band; animation-range: exit 0% exit 80%; }

    /* each chapter announces itself: title from one side, its line from the other */
    .tw-site .tw-area > .wp-block-group:first-child h2 { animation: tw-from-left linear both; animation-timeline: view(); animation-range: entry 0% cover 30%; }
    .tw-site .tw-area > .wp-block-group:first-child p { animation: tw-from-right linear both; animation-timeline: view(); animation-range: entry 0% cover 32%; }

    /* photographs open from a window to the full frame; the words beside them rise */
    .tw-site .tw-area .wp-block-image { animation: tw-window linear both; animation-timeline: view(); animation-range: entry 0% cover 38%; }
    .tw-site .tw-area .wp-block-image img { animation: tw-settle linear both; animation-timeline: view(); animation-range: entry 0% cover 55%; }
    .tw-site .tw-area > .wp-block-columns > .wp-block-column:not(:has(.wp-block-image)),
    .tw-site .tw-area-cta-wrap { animation: tw-rise linear both; animation-timeline: view(); animation-range: entry 5% cover 30%; }

    /* the area bar fills with the page */
    .tw-areabar::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: #c9a227; transform-origin: 0 50%; animation: tw-progress linear both; animation-timeline: scroll(root); }

    /* Contact — the map opens as you reach it, the pin lands last */
    .tw-site .tw-map-gate__map { animation: tw-window-wide linear both; animation-timeline: view(); animation-range: entry 0% cover 45%; }
    .tw-site .tw-map-gate__map .tw-pin { animation: tw-pin linear both; animation-timeline: view(); animation-range: entry 70% cover 45%; }
    .tw-site .tw-contact-body .tw-detail { animation: tw-rise linear both; animation-timeline: view(); animation-range: entry 0% cover 25%; }

    /* the closing statement fills with ink as it rises (words split by tertia-site.js) */
    .tw-site .is-filling > span { display: inline-block; color: color-mix(in oklab, currentColor 45%, transparent); animation: tw-ink linear both; animation-timeline: view(); animation-range: cover 18% cover 42%; }
  }
}
@keyframes tw-lift { to { transform: translateY(-10%); opacity: 0; } }
@keyframes tw-from-left { from { transform: translateX(-7%); opacity: 0; } }
@keyframes tw-from-right { from { transform: translateX(6%); opacity: 0; } }
@keyframes tw-rise { from { transform: translateY(40px); opacity: 0; } }
@keyframes tw-window { from { clip-path: inset(10% 12% 10% 12% round 12px); } to { clip-path: inset(0 round 8px); } }
@keyframes tw-window-wide { from { clip-path: inset(14% 20% 14% 20% round 14px); } to { clip-path: inset(0 round 0); } }
@keyframes tw-settle { from { transform: scale(1.14); } to { transform: none; } }
@keyframes tw-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes tw-pin { from { transform: translate(-50%, calc(-100% + 11px - 36px)); opacity: 0; } to { transform: translate(-50%, calc(-100% + 11px)); opacity: 1; } }
@keyframes tw-ink { to { color: currentColor; } }
/* the area buttons start on the page's left edge, like everything else in the area */
.tw-site .tw-area > .tw-area-cta-wrap { max-width: var(--wp--style--global--wide-size, 1280px) !important; margin-left: auto !important; margin-right: auto !important; justify-content: flex-start !important; }
/* elements sliding in from the sides must never widen the page */
.tw-site main, .tw-site .wp-site-blocks > main { overflow-x: clip; }

/* ===== Services: "four pillars" scene (tertia-services-scene.js) ===== */
.tw-scene { --u: calc(min(64svh, 44vw) / 400); background: #faf8f4; }
.tw-px { position: absolute; left: calc(var(--u) * -50); top: calc(var(--u) * -50); width: calc(var(--u) * 100); height: calc(var(--u) * 100); transform-origin: 50% 50%; }
.tw-px--bar { background: #13294b; }
.tw-px--sq { background: #c9a227; }
/* live: held stage, words on the left, the shapes on the right */
.tw-scene.is-live { height: 560svh; view-timeline-name: --tw-scene; }
.tw-scene.is-live .tw-scene__stage { position: sticky; top: 0; height: 100svh; overflow: clip; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: clamp(24px, 4vw, 64px);
  padding: 72px max(var(--wp--style--root--padding-left, 24px), calc((100% - var(--wp--style--global--wide-size, 1280px)) / 2)) 48px; box-sizing: border-box; }
.tw-scene__words { position: relative; height: 16rem; }
.tw-scene__word { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; opacity: 0; animation-timing-function: linear; animation-fill-mode: both; animation-timeline: --tw-scene; animation-range: contain 0% contain 100%; }
.tw-scene__h { font-family: "Cardo", Georgia, serif; font-size: clamp(2.6rem, 1.4rem + 4.4vw, 6.25rem); line-height: 0.95; letter-spacing: -0.02em; color: #13294b; margin: 0 0 0.35em; }
.tw-scene__p { font-family: "Cardo", Georgia, serif; font-size: clamp(1.25rem, 1rem + 0.8vw, 1.75rem); line-height: 1.25; color: #2f6690; margin: 0; max-width: 24ch; }
.tw-scene__art { position: relative; width: calc(var(--u) * 400); height: calc(var(--u) * 400); }
.tw-scene.is-live .tw-px { animation-timing-function: cubic-bezier(0.65, 0, 0.35, 1); animation-fill-mode: both; animation-timeline: --tw-scene; animation-range: contain 0% contain 100%; }
.tw-scene__hint { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); margin: 0; font-size: 0.9375rem; color: #52606f; animation: tw-hint-out linear both; animation-timeline: --tw-scene; animation-range: contain 0% contain 8%; }
@keyframes tw-hint-out { to { opacity: 0; } }
@media (max-width: 781px) {
  .tw-scene { --u: calc(min(46svh, 84vw) / 400); }
  .tw-scene.is-live .tw-scene__stage { grid-template-columns: 1fr; grid-template-rows: auto auto; align-content: center; justify-items: start; padding-top: 64px; gap: 20px; }
  .tw-scene__words { height: 9.5rem; width: 100%; }
  .tw-scene__art { justify-self: center; }
}
/* still: the four pictograms as a chapter index */
.tw-scene.is-rest { padding: clamp(48px, 7vw, 96px) var(--wp--style--root--padding-left, 24px); }
.tw-scene__index { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2.5vw, 32px); max-width: var(--wp--style--global--wide-size, 1280px); margin: 0 auto; }
.tw-scene.is-rest { --u: calc(min(240px, 20vw) / 400); }
.tw-scene__card { display: flex; flex-direction: column; gap: 8px; color: #13294b; text-decoration: none; padding: 20px; border-radius: 12px; background: #eaf0f6; transition: transform 160ms cubic-bezier(0.23, 1, 0.32, 1); }
.tw-scene__card:active { transform: scale(0.98); }
.tw-scene__card:focus-visible { outline: 2px solid #13294b; outline-offset: 3px; }
.tw-scene__mini { position: relative; display: block; width: calc(var(--u) * 400); height: calc(var(--u) * 400); margin-bottom: 8px; }
.tw-scene__name { font-family: "Cardo", Georgia, serif; font-size: 1.75rem; line-height: 1.05; }
.tw-scene__line { font-size: 0.9375rem; color: #2f6690; }
@media (max-width: 781px) { .tw-scene__index { grid-template-columns: 1fr 1fr; } .tw-scene.is-rest { --u: calc(38vw / 400); } }
.tw-site .tw-scene { max-width: none !important; }
@media (min-width: 782px) { .tw-scene.is-live .tw-scene__stage { grid-template-columns: minmax(0, 1fr) calc(var(--u) * 400); } }
@media (max-width: 781px) {
  .tw-scene.is-rest { --u: calc(26vw / 400); padding-left: 16px !important; padding-right: 16px !important; }
  .tw-scene__card { padding: 16px; min-width: 0; }
  .tw-scene__name { font-size: 1.375rem; overflow-wrap: anywhere; }
}

/* ---- the journey layout (overrides the earlier two-column stage) */
.tw-scene.is-live { height: calc(var(--tw-scene-screens, 12) * 100svh) !important; }
.tw-scene.is-live .tw-scene__stage { display: block !important; padding: 0 !important; }
.tw-scene__mark { position: absolute; z-index: 2; top: 84px; left: max(var(--wp--style--root--padding-left, 24px), calc((100% - var(--wp--style--global--wide-size, 1280px)) / 2)); right: 24px; }
.tw-scene__title { font-family: "Cardo", Georgia, serif; font-size: clamp(2rem, 1.2rem + 2.6vw, 3.75rem); line-height: 1.05; letter-spacing: -0.015em; color: #13294b; margin: 0; min-height: 1.1em; overflow-wrap: anywhere; }
.tw-scene__title .is-turning { color: #c9a227; }
.tw-scene__sub { margin: 10px 0 0; font-size: 1.0625rem; color: #2f6690; transition: opacity 160ms ease; max-width: 36ch; }
.tw-scene__sub.is-hidden { opacity: 0; }
.tw-scene.is-live .tw-scene__art { position: absolute; left: 50%; top: 56%; transform: translate(-50%, -50%); }
.tw-pw { position: absolute; left: calc(var(--u) * (var(--x) - 9)); top: calc(var(--u) * 112); width: calc(var(--u) * 18); height: calc(var(--u) * 204); display: flex; align-items: flex-end; justify-content: center; overflow: hidden;
  animation-timing-function: linear; animation-fill-mode: both; animation-timeline: --tw-scene; animation-range: contain 0% contain 100%; }
.tw-pw > span { writing-mode: vertical-rl; transform: rotate(180deg); color: #faf8f4; font-weight: 600; font-size: calc(var(--u) * 13); letter-spacing: 0.02em; white-space: nowrap; padding-top: calc(var(--u) * 8); }
@media (max-width: 781px) {
  .tw-scene { --u: calc(min(52svh, 88vw) / 400) !important; }
  .tw-scene__mark { top: 76px; left: 16px; }
  .tw-scene.is-live .tw-scene__art { top: 60%; }
}
/* Firefox and other browsers without scroll timelines: the same animations, paused and set from the scroll by script */
.tw-scene.is-driven .tw-px, .tw-scene.is-driven .tw-pw, .tw-scene.is-driven .tw-scene__hint { animation-duration: 1000ms !important; animation-play-state: paused; animation-fill-mode: both; animation-timeline: auto !important; animation-range: normal !important; }

/* ---- the scene carries each service's text (2026-10-23) */
html.tw-scene-on .tw-site .tw-area { display: none !important; }
.tw-scene__panels { position: absolute; z-index: 2; left: max(var(--wp--style--root--padding-left, 24px), calc((100% - var(--wp--style--global--wide-size, 1280px)) / 2)); top: 200px; width: min(40%, 34rem); }
.tw-tp { position: absolute; inset: 0 auto auto 0; width: 100%; opacity: 0; visibility: hidden;
  animation-timing-function: linear; animation-fill-mode: both; animation-timeline: --tw-scene; animation-range: contain 0% contain 100%; }
.tw-tp p, .tw-tp li { font-size: 1.0625rem; line-height: 1.55; color: #16202e; margin: 0 0 0.8em; }
.tw-tp p:first-of-type { font-family: "Cardo", Georgia, serif; font-size: 1.375rem !important; line-height: 1.3; color: #2f6690 !important; }
.tw-tp ul { margin: 0; padding-left: 1.1em; }
.tw-tp li { margin-bottom: 0.35em; }
.tw-tp .wp-block-spacer { display: none; }
@media (min-width: 782px) { .tw-scene.is-live .tw-scene__art { left: 72%; } }
.tw-scene.is-driven .tw-tp { animation-duration: 1000ms !important; animation-play-state: paused; animation-timeline: auto !important; animation-range: normal !important; }
@media (max-width: 781px) {
  .tw-scene { --u: calc(min(30svh, 64vw) / 400) !important; }
  .tw-scene__panels { left: 16px; right: 16px; width: auto; top: 158px; }
  .tw-tp p, .tw-tp li { font-size: 0.9375rem; line-height: 1.45; margin-bottom: 0.55em; }
  .tw-tp p:first-of-type { font-size: 1.125rem !important; }
  .tw-scene.is-live .tw-scene__art { top: auto; bottom: calc(var(--u) * -10); transform: translateX(-50%); }
  .tw-scene__title { font-size: 1.75rem !important; }
}
html.tw-scene-on .tw-site .tw-area, html.tw-scene-on .tw-site .tw-area:is(#presence, #operations, #infrastructure, #admin) { display: none !important; }
@media (max-width: 781px) and (max-height: 760px) {
  .tw-scene { --u: calc(min(24svh, 58vw) / 400) !important; }
  .tw-tp p, .tw-tp li { font-size: 0.875rem; line-height: 1.4; }
  .tw-scene__title { font-size: 1.5rem !important; }
}

/* ---- the opening and closing pillars fill the frame, then shrink into the drawing's place (2026-10-23) */
.tw-scene.is-live .tw-scene__art { transform-origin: 50% 50%; animation: tw-zoom linear both; animation-timeline: --tw-scene; animation-range: contain 0% contain 100%; will-change: translate, scale; }
.tw-scene.is-driven .tw-scene__art { animation-duration: 1000ms !important; animation-play-state: paused; animation-timeline: auto !important; animation-range: normal !important; }

/* ---- phone menu: the open overlay reads as a page of its own (2026-10-23) */
.tw-site .wp-block-navigation__responsive-container.is-menu-open { background: var(--tw-whitewash) !important; padding: 28px 16px 32px !important; }
.tw-site .is-menu-open .wp-block-navigation__responsive-container-content { align-items: flex-start !important; padding-top: 64px !important; }
.tw-site .is-menu-open .wp-block-navigation__container { align-items: flex-start !important; gap: 6px !important; width: 100%; }
.tw-site .is-menu-open .wp-block-navigation-item { width: 100%; }
.tw-site .is-menu-open .wp-block-navigation-link { border-bottom: 1px solid rgba(19, 41, 75, 0.12); }
.tw-site .is-menu-open .wp-block-social-links { justify-content: flex-start !important; width: 100%; }
.tw-site .is-menu-open .wp-block-navigation-item__content { font-family: "Cardo", Georgia, serif; font-size: 2.25rem !important; line-height: 1.15; color: var(--tw-navy) !important; padding: 14px 0 !important; display: block; width: 100%; }
.tw-site .is-menu-open .current-menu-item > .wp-block-navigation-item__content { color: #a8841c !important; }
.tw-site .is-menu-open .wp-block-social-links { margin-top: 28px !important; }
.tw-site .is-menu-open .wp-block-social-link { transform: scale(1.25); transform-origin: left center; }
@media (prefers-reduced-motion: no-preference) {
  .tw-site .is-menu-open .wp-block-navigation__container > li, .tw-site .is-menu-open .wp-block-social-links { animation: tw-menu-in 260ms cubic-bezier(0.23, 1, 0.32, 1) both; }
  .tw-site .is-menu-open .wp-block-navigation__container > li:nth-child(2) { animation-delay: 40ms; }
  .tw-site .is-menu-open .wp-block-navigation__container > li:nth-child(3) { animation-delay: 80ms; }
  .tw-site .is-menu-open .wp-block-social-links { animation-delay: 120ms; }
}
@keyframes tw-menu-in { from { opacity: 0; transform: translateY(12px); } }

/* ---- scene: bigger text, the drawing sized by script to the room left beside or under it (2026-10-23) */
@media (min-width: 782px) {
  .tw-scene__panels { width: min(46%, 40rem); top: 210px; }
  .tw-tp p, .tw-tp li { font-size: 1.1875rem; line-height: 1.55; }
  .tw-tp p:first-of-type { font-size: 1.625rem !important; }
}
@media (max-width: 781px) {
  .tw-tp p, .tw-tp li { font-size: 1rem; line-height: 1.5; }
  .tw-tp p:first-of-type { font-size: 1.25rem !important; }
}
@media (max-width: 781px) and (max-height: 760px) {
  .tw-tp p, .tw-tp li { font-size: 0.9375rem; line-height: 1.42; }
}
/* the scene opens the page: the blue band steps aside (it stays in the editor and for reduced motion) */
html.tw-scene-on .tw-site .tw-band { display: none !important; }
.tw-scene__title .is-gold { color: #a8841c; }
@media (max-width: 781px) {
  .tw-tp p, .tw-tp li { font-size: calc(1rem * var(--tp-scale, 1)); }
  .tw-tp p:first-of-type { font-size: calc(1.25rem * var(--tp-scale, 1)) !important; }
}
@media (max-width: 781px) and (max-height: 760px) {
  .tw-tp p, .tw-tp li { font-size: calc(0.9375rem * var(--tp-scale, 1)); }
}

/* ---- area bar: the name leads home (2026-10-23) */
.tw-areabar .tw-areabar__home { flex: none; padding: 0 14px 0 4px; margin-right: 4px; border-radius: 0; border-right: 1px solid rgba(19, 41, 75, 0.15); font-family: "Cardo", Georgia, serif; font-weight: 700; font-size: 1.125rem; letter-spacing: -0.01em; color: var(--tw-navy); }
@media (hover: hover) and (pointer: fine) { .tw-areabar .tw-areabar__home:hover { text-decoration: underline; text-underline-offset: 3px; } }
@media (max-width: 600px) { .tw-areabar .tw-areabar__home { font-size: 1rem; padding-right: 10px; } }
.tw-areabar:focus-within { transform: none; } /* a keyboard visitor tabbing into the bar brings it in */
/* the area bar is ~76px tall with the name in it: the scene title starts clear of it */
.tw-scene__mark { top: 100px; }
@media (max-width: 781px) { .tw-scene__mark { top: 92px; } }
@media (max-width: 860px) { .tw-areabar__cta { display: none !important; } }
.tw-areabar { margin: 0 !important; } /* it sits among the page blocks now: no block-gap margin, or it peeks out when hidden */
