/* Nathanael Talemos portfolio: the site's own styles, shared by every page.
   Load after the kit stylesheets in assets/ (layout.css resets --ly-scale). */

/* palette and type */
:root {
  --p-bg: #f7f3ec; --p-surface: #ede6da; --p-ink: #2a2622; --p-muted: #665e55;
  --p-accent: #7a4a2c; --p-accent-ink: #ffffff; --p-action: #7a4a2c; --p-action-ink: #ffffff;
  --p-inv-bg: #2a2622; --p-inv-surface: #36322e; --p-inv-ink: #f7f3ec; --p-inv-muted: #a29e98;
  --p-inv-accent: #f7f3ec; --p-inv-accent-ink: #2a2622; --p-inv-action: #f7f3ec; --p-inv-action-ink: #2a2622;
  --font-display: "Newsreader", Georgia, serif;
  --font-text: "Hanken Grotesk", system-ui, sans-serif;
  --display-weight: 400;
  --display-tracking: -0.018em;
  --display-tracking-xl: -0.025em;
  --ly-scale: 1.06;
}

  /* hero: the cut-out portrait on a sand disc, with an orbit drawn once behind him */
  .hero-portrait { position: relative; isolation: isolate; align-self: stretch; min-height: 460px; container-type: size; }
  .hero-portrait__stage { --d: min(90cqw, 80cqh, 560px); position: absolute; left: 50%; top: calc(var(--d) * 0.14); width: var(--d); aspect-ratio: 1; translate: -50% 0; }
  .hero-portrait__disc { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; isolation: isolate;
    background: radial-gradient(circle at var(--lx, 30%) var(--ly, 18%), #f6eee2 0%, #e8dbc6 45%, #d6c2a3 100%); }
  .hero-portrait__pop { position: absolute; inset: 0; clip-path: inset(-60% -20% 50% -20%); pointer-events: none; isolation: isolate; }
  .fig { position: absolute; left: 50%; bottom: 0; height: 114%; aspect-ratio: 1198 / 1400; margin-left: calc(var(--d) * -0.4878); }
  .fig__img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; filter: saturate(1.04) sepia(.06); }
  /* warm light on the figure only (masked by the cut-out), following the pointer */
  .fig__light { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: soft-light;
    -webkit-mask: url(../img/nathanael-cutout-800.webp) center / 100% 100% no-repeat; mask: url(../img/nathanael-cutout-800.webp) center / 100% 100% no-repeat;
    background: radial-gradient(circle at var(--lx, 30%) var(--ly, 18%), rgb(255 214 160 / .85) 0%, rgb(255 200 140 / .35) 28%, rgb(60 36 20 / .35) 75%); }
  .orbit { position: absolute; left: -20%; top: -20%; width: 140%; aspect-ratio: 1; z-index: -1; pointer-events: none; }
  .orbit--tags { z-index: 3; }
  .orbit__svg { display: block; width: 100%; height: 100%; max-width: none; overflow: visible; }
  .orbit-line { fill: none; stroke: var(--accent); stroke-width: 1.4; stroke-dasharray: 1; stroke-dashoffset: 0; opacity: .55; }
  .orbit-line--b { opacity: .3; }
  .orbit-dot { fill: var(--accent); }
  .orbit-dot--soft { fill: #b08a68; }
  .orbit__tags { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; }
  .orbit__tag { position: absolute; translate: -50% -50%; display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 10px; border-radius: 999px;
    background: var(--bg); border: 1px solid color-mix(in oklab, var(--accent) 35%, transparent); font-size: var(--t-small); font-weight: 500; white-space: nowrap;
    box-shadow: 0 8px 20px -12px rgb(42 38 34 / .45); }
  .orbit__tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 18%, transparent); }
  .orbit__tag--end { translate: calc(-100% + 18px) -50%; }
  @media (prefers-reduced-motion: no-preference) {
    .orbit-line { animation: orbit-draw 1.6s cubic-bezier(0.23, 1, 0.32, 1) 0.3s both; }
    .orbit-line--b { animation-delay: 0.5s; }
    .orbit__tag { animation: tag-in 700ms cubic-bezier(0.23, 1, 0.32, 1) both; }
    .orbit__tag:nth-child(1) { animation-delay: 1s; } .orbit__tag:nth-child(2) { animation-delay: 1.15s; } .orbit__tag:nth-child(3) { animation-delay: 1.3s; }
  }
  @keyframes tag-in { from { opacity: 0; scale: .9; } to { opacity: 1; scale: 1; } }
  @media (max-width: 639px) { .orbit__tag { font-size: 12px; padding: 4px 10px 4px 8px; } }
  @keyframes orbit-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
  @media (max-width: 1023px) {
    .hero-portrait { flex: 1 1 0; height: auto; min-height: 240px; margin-top: var(--s-6); }
    }
  
  @media (min-width: 1024px) {
    .hero--split .hero__text { align-self: stretch; display: flex; flex-direction: column; }
    .hero--split .hero__text > .hero-facts { margin-top: auto; padding-top: var(--s-5); border-top: 1px solid var(--line); }
  }
  .rows__value { font-variant-numeric: tabular-nums; }
  .rows--serif .rows__name { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.35rem, 1.1rem + 0.6vw, 1.75rem); letter-spacing: -0.01em; }
  .rows--serif > li { padding-block: var(--s-5); }
  /* the statement on the dark band, the method under it */
  #approach .method { list-style: none; margin: 0; padding: 0; }
  #approach .method > li { display: grid; gap: var(--s-2); padding-top: var(--s-5); border-top: 1px solid color-mix(in oklab, var(--ink) 22%, transparent); }
  #approach .method__n { font-family: var(--font-display); font-size: 1.75rem; line-height: 1; color: var(--muted); font-variant-numeric: tabular-nums; }
  #approach .method p { color: var(--muted); max-width: 32ch; }
  #approach .method strong { display: block; font-weight: 500; }
  /* experience: one rail across the page, newest first */
  .exp { display: flex; flex-direction: column; gap: var(--s-8); }
  @media (min-width: 1024px) { .exp { height: 100%; } .exp > .rail { margin-block: auto; } }
  .rail { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--gutter); }
  .rail__item { position: relative; display: flex; flex-direction: column; gap: var(--s-3); padding-top: var(--s-6); }
  .rail__item::before { content: ""; position: absolute; top: 23px; left: 0; right: calc(var(--gutter) * -1); height: 1px; background: var(--line-strong); }
  .rail__item:last-child::before { right: 0; }
  .rail__icon { position: relative; z-index: 1; display: grid; place-items: center; width: 48px; height: 48px; margin-top: calc(var(--s-6) * -1); border-radius: 14px; background: var(--card, #fff); border: 1px solid var(--line); box-shadow: 0 6px 16px -8px rgb(42 38 34 / 0.3); }
  .rail__item--now .rail__icon { background: var(--accent); border-color: var(--accent); }
  .rail__item--now .rail__icon img { filter: brightness(0) invert(1); }
  .rail__when { margin-top: var(--s-4); font-family: var(--font-display); font-size: clamp(1.75rem, 1.1rem + 1.4vw, 2.375rem); line-height: 1.05; white-space: nowrap; letter-spacing: -0.02em; color: var(--accent); }
  .rail__item p { color: var(--ink); max-width: 30ch; }
  .rail__item h3 { font-size: 1.25rem; }
  @media (max-width: 1023px) { .rail { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--s-7); } .rail__item::before { right: 0; } }
  @media (max-width: 639px) { .rail { grid-template-columns: minmax(0, 1fr); row-gap: var(--s-6); } }
  /* the dark band: statement on top, the method on the band's floor */
  @media (min-width: 1024px) { #approach > .wrap { height: 100%; display: flex; flex-direction: column; justify-content: space-between; } }
  #classroom .frame { --ratio: 37%; }
  @media (max-width: 639px) { #classroom .frame { --ratio: 100%; } }
  /* degree facts */
  .degree-facts { margin: 0; }
  .degree-facts > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-4); padding-block: var(--s-4); border-bottom: 1px solid var(--line); }
  .degree-facts dt { color: var(--muted); font-weight: 400; }
  .degree-facts dd { margin: 0; font-family: var(--font-display); font-size: 1.375rem; text-align: right; white-space: normal; }
  /* certificates: each document shown whole on a paper mat */
  .cert { gap: var(--s-3); }
  .cert__doc { min-height: 0; margin: calc(var(--card-pad) * -1) calc(var(--card-pad) * -1) var(--s-2); padding: var(--s-4); background: var(--bg); border-bottom: 1px solid var(--line); border-radius: var(--r-lg) var(--r-lg) 0 0; aspect-ratio: 4 / 3; display: grid; place-items: center; overflow: clip; }
  .cert__doc img { width: 100%; height: 100%; max-width: none; object-fit: contain; filter: drop-shadow(0 1px 1px rgb(42 38 34 / 0.1)) drop-shadow(0 8px 14px rgb(42 38 34 / 0.18)); transition: transform 300ms cubic-bezier(0.23, 1, 0.32, 1); }
  @media (hover: hover) and (pointer: fine) { .cert:hover .cert__doc img { transform: scale(1.03); } }
  .cert__issuer { display: flex; align-items: center; gap: var(--s-2); font-size: var(--t-small); color: var(--muted); margin: 0; }
  .cert__issuer .ic { width: auto; height: 20px; flex: none; }
  .cert__meta { font-size: var(--t-small); color: var(--muted); margin: 0; font-variant-numeric: tabular-nums; }
  .cert__links { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); margin-top: auto; padding-top: var(--s-2); }
  .certs__also { color: var(--muted); max-width: 70ch; }
  /* enquiry form on its own panel */
  #enquire .form { grid-template-columns: minmax(0, 1fr); }
  #enquire .form--panel { background: var(--surface); padding: clamp(var(--s-5), 3vw, var(--s-8)); border-radius: var(--r-lg); }
  @media (max-width: 1023px) { .certs > .cert { grid-column: span 6; } }
  @media (max-width: 639px) { .certs > .cert { grid-column: 1 / -1; } .nav__actions .btn { display: none; } }
  /* section 3: statement beside the inquiry cycle, the method on the band's floor */
  .approach__top { align-items: center; }
  .cycle { margin: 0; --warm: #c99a6b; }
  .cycle svg { display: block; width: 100%; height: auto; max-width: 400px; margin-inline: auto; overflow: visible; }
  .cycle__ring { fill: none; stroke: color-mix(in oklab, var(--ink) 28%, transparent); stroke-width: 1.2; }
  .cycle__ring--in { stroke-dasharray: 2 6; stroke: color-mix(in oklab, var(--ink) 18%, transparent); }
  .cycle__arrow { fill: none; stroke: var(--warm); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .cycle__why { font-family: var(--font-display); font-style: italic; font-size: 46px; fill: var(--warm); }
  .cycle__dot { fill: var(--warm); filter: drop-shadow(0 0 6px rgb(201 154 107 / .9)); }
  .cycle__node circle { fill: var(--p-inv-surface); stroke: color-mix(in oklab, var(--ink) 30%, transparent); stroke-width: 1.2; transition: fill 400ms ease, stroke 400ms ease; }
  .cycle__node text { font-family: var(--font-text); font-size: 15px; font-weight: 500; fill: var(--ink); transition: fill 400ms ease; }
  .cycle__node.is-on circle { fill: var(--warm); stroke: var(--warm); }
  .cycle__node.is-on text { fill: #1d1a17; }
  #approach .method > li { transition: border-color 400ms ease; }
  #approach .method > li.is-on { border-top-color: #c99a6b; }
  #approach .method > li.is-on .method__n { color: #c99a6b; }
  @media (max-width: 1023px) { .cycle { grid-column: 1 / -1; max-width: 340px; margin-inline: auto; } }
  /* highlighter: a marker stroke that sweeps in once */
  .hl { background-image: linear-gradient(transparent 62%, rgb(233 201 154 / .8) 62%, rgb(233 201 154 / .8) 92%, transparent 92%);
    background-repeat: no-repeat; background-size: 0% 100%; -webkit-box-decoration-break: clone; box-decoration-break: clone;
    transition: background-size 1100ms cubic-bezier(0.23, 1, 0.32, 1) 250ms; }
  .hl.is-in { background-size: 100% 100%; }
  .ground-inverse .hl { background-image: linear-gradient(transparent 62%, rgb(201 154 107 / .45) 62%, rgb(201 154 107 / .45) 92%, transparent 92%); }
  /* photographs drift inside their frames */
  .frame.is-drift > .frame__img { scale: 1.06; will-change: translate; }
  /* soft light under the pointer */
  .glow { position: relative; isolation: isolate; }
  .glow::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity 400ms ease;
    background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 0%), rgb(201 154 107 / .18), transparent 65%); }
  @media (hover: hover) and (pointer: fine) { .glow:hover::after { opacity: 1; } }
  /* ---------- phone and tablet menu: the sheet wipes down, the items rise in, the button morphs ---------- */
  @media (max-width: 1023px) {
    .nav .nav__links {
      display: flex; flex-direction: column; position: fixed; top: var(--nav); left: 0; right: 0; bottom: 0; z-index: 49;
      padding: var(--s-4) var(--gut) calc(var(--btn-h) * 2 + 56px); background: var(--bg); overflow-y: auto; gap: 0;
      visibility: hidden; pointer-events: none; clip-path: inset(0 0 100% 0);
      transition: clip-path 380ms cubic-bezier(0.77, 0, 0.175, 1), visibility 0s linear 380ms;
    }
    html:not([data-motion="off"]) body .nav.is-open .nav__links {
      visibility: visible; pointer-events: auto; clip-path: inset(0 0 0 0);
      transition: clip-path 560ms cubic-bezier(0.32, 0.72, 0, 1), visibility 0s;
    }
    .nav .nav__links > .nav__item { display: grid; grid-template-columns: 1fr auto; height: auto; border-bottom: 1px solid var(--line);
      opacity: 0; translate: 0 18px; transition: opacity 200ms ease, translate 200ms ease; }
    .nav .nav__links > .nav__item > .nav__link { height: 64px; padding: 0; font-family: var(--font-display); font-size: 30px; letter-spacing: -0.01em; background: none; }
    .nav .nav__links > .nav__item > .nav__link::before { display: none; }
    .nav.is-open .nav__links > .nav__item { opacity: 1; translate: 0 0;
      transition: opacity 500ms cubic-bezier(0.23, 1, 0.32, 1), translate 600ms cubic-bezier(0.23, 1, 0.32, 1); }
    .nav.is-open .nav__links > .nav__item:nth-child(1) { transition-delay: 140ms; }
    .nav.is-open .nav__links > .nav__item:nth-child(2) { transition-delay: 190ms; }
    .nav.is-open .nav__links > .nav__item:nth-child(3) { transition-delay: 240ms; }
    .nav.is-open .nav__links > .nav__item:nth-child(4) { transition-delay: 290ms; }
    .nav.is-open .nav__actions { animation: sheet-up 520ms cubic-bezier(0.32, 0.72, 0, 1) 200ms both; }
    .nav.is-open .nav__actions .btn { display: inline-flex; }
    /* the button: two bars that cross into an X */
    .nav__toggle { position: relative; transition: background-color 200ms ease, scale 160ms ease-out; }
    .nav__toggle:active { scale: 0.94; }
    .nav__toggle > svg { display: none; }
    .nav__toggle::before, .nav__toggle::after { content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 1.6px; margin-left: -9px; border-radius: 2px; background: currentColor;
      transition: translate 320ms cubic-bezier(0.77, 0, 0.175, 1), rotate 320ms cubic-bezier(0.77, 0, 0.175, 1); }
    .nav__toggle::before { translate: 0 -4px; }
    .nav__toggle::after { translate: 0 4px; }
    .nav__toggle[aria-expanded="true"] { background: var(--surface); }
    .nav__toggle[aria-expanded="true"]::before { translate: 0 0; rotate: 45deg; }
    .nav__toggle[aria-expanded="true"]::after { translate: 0 0; rotate: -45deg; }
  }
  @keyframes sheet-up { from { translate: 0 100%; } to { translate: 0 0; } }
  @media (prefers-reduced-motion: reduce) {
    .nav .nav__links > .nav__item, .nav.is-open .nav__links > .nav__item { translate: none; }
    .nav.is-open .nav__actions { animation: none; }
  }
  /* ---------- scroll: progress line, nav state, the section underline, reveals ---------- */
  .nav { transition: box-shadow 300ms ease; }
  .nav.is-scrolled { box-shadow: 0 10px 30px -22px rgb(42 38 34 / .55); }
  .scroll-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--accent); transform-origin: left; transform: scaleX(0); pointer-events: none; }
  .nav__ink { position: absolute; bottom: 10px; left: 0; height: 2px; width: 0; border-radius: 2px; background: var(--accent); opacity: 0; pointer-events: none;
    transition: translate 420ms cubic-bezier(0.32, 0.72, 0, 1), width 420ms cubic-bezier(0.32, 0.72, 0, 1), opacity 200ms ease; }
  .nav__link.is-current { color: var(--accent); }
  @media (max-width: 1023px) { .nav__ink { display: none; } }
  @media (min-width: 1024px) { .nav .nav__links { position: relative; } }
  html.rv-on .rv { opacity: 0; translate: 0 22px;
    transition-property: opacity, translate, transform, box-shadow !important;
    transition-duration: 700ms, 900ms, 240ms, 240ms !important;
    transition-timing-function: cubic-bezier(0.23, 1, 0.32, 1) !important;
    transition-delay: calc(var(--i, 0) * 80ms), calc(var(--i, 0) * 80ms), 0s, 0s !important; }
  html.rv-on .rv.is-in { opacity: 1; translate: 0 0; }
  html.rv-on .frame--photo.rv { opacity: 1; translate: none; clip-path: inset(18% 0 0 0 round var(--r-lg));
    transition-property: clip-path, opacity !important; transition-duration: 1100ms, 700ms !important;
    transition-timing-function: cubic-bezier(0.77, 0, 0.175, 1), ease !important; transition-delay: calc(var(--i, 0) * 80ms) !important; }
  html.rv-on .frame--photo.rv.is-in { clip-path: inset(0 0 0 0 round var(--r-lg)); }
  html.rv-on .rail__item.rv::before { transform: scaleX(0); transform-origin: left; transition: transform 900ms cubic-bezier(0.77, 0, 0.175, 1) calc(var(--i, 0) * 120ms + 150ms); }
  html.rv-on .rail__item.rv.is-in::before { transform: scaleX(1); }
  @media (prefers-reduced-motion: reduce) {
    html.rv-on .rv { translate: none; transition: opacity 600ms ease calc(var(--i, 0) * 60ms); }
    html.rv-on .frame--photo.rv { clip-path: none; opacity: 0; transition: opacity 700ms ease; }
    html.rv-on .frame--photo.rv.is-in { opacity: 1; }
  }
  /* reduced motion (the kit sets every transition to ~0): keep the calm ones (fades, colour, lines, the menu wipe) at their own pace */
  @media (prefers-reduced-motion: reduce) {
    html.rv-on .rv { transition-duration: 600ms, 0s, 240ms, 240ms !important; transition-delay: calc(var(--i, 0) * 60ms), 0s, 0s, 0s !important; }
    html.rv-on .frame--photo.rv { transition-property: opacity !important; transition-duration: 700ms !important; }
    html.rv-on .rail__item.rv::before { transition-duration: 900ms !important; }
    html .hl { transition-duration: 1100ms !important; }
    @media (max-width: 1023px) {
      html:not([data-motion="off"]) body .nav .nav__links { clip-path: inset(0 0 100% 0); opacity: 1; transition: clip-path 380ms cubic-bezier(0.77, 0, 0.175, 1), visibility 0s linear 380ms; transition-duration: 380ms, 0s !important; }
      html:not([data-motion="off"]) body .nav.is-open .nav__links { clip-path: inset(0 0 0 0); transition: clip-path 520ms cubic-bezier(0.32, 0.72, 0, 1), visibility 0s; transition-duration: 520ms, 0s !important; }
      html .nav .nav__links > .nav__item { transition-duration: 200ms, 200ms !important; }
      html .nav.is-open .nav__links > .nav__item { transition-duration: 450ms, 450ms !important; }
      html .nav__toggle::before, html .nav__toggle::after { transition-duration: 280ms !important; }
    }
    html .nav, html .nav__ink, html .cycle__node circle, html .cycle__node text, html #approach .method > li, html .glow::after { transition-duration: 380ms !important; }
  }
  /* the captcha sits full width above the button */
  .form__captcha { min-height: 65px; }
  .form__captcha:empty { display: none; }
  /* text selection as a warm highlighter */
  ::selection { background: #e9c99a; color: #2a2622; }
  .ground-inverse ::selection { background: #c99a6b; color: #1d1a17; }
  /* scrollbar */
  html { scrollbar-color: #9a6a48 #ece4d6; scrollbar-width: thin; }
  ::-webkit-scrollbar { width: 12px; height: 12px; }
  ::-webkit-scrollbar-track { background: #ece4d6; }
  ::-webkit-scrollbar-thumb { background: #9a6a48; border-radius: 999px; border: 3px solid #ece4d6; }
  ::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ---------- footer: photo credits tooltip ---------- */
.credit-tip { position: relative; display: inline-flex; }
.credit-tip__btn { appearance: none; border: 0; background: none; padding: 0; font: inherit; color: var(--muted); cursor: pointer;
  text-decoration: underline; text-decoration-color: color-mix(in oklab, currentColor 40%, transparent); text-underline-offset: 3px; transition: color 200ms ease; }
.credit-tip__btn:hover, .credit-tip__btn[aria-expanded="true"] { color: var(--ink); }
.credit-tip__panel { position: absolute; z-index: 20; left: 0; bottom: calc(100% + 10px); width: min(360px, calc(100vw - 2 * var(--gut, 24px)));
  display: grid; gap: var(--s-2); padding: var(--s-4); border-radius: var(--r-md, 12px);
  background: var(--p-bg); color: var(--p-ink); font-size: 13px; line-height: 1.45; text-align: left;
  box-shadow: 0 18px 40px -16px rgb(0 0 0 / .55);
  opacity: 0; visibility: hidden; translate: 0 6px; transform-origin: bottom left;
  transition: opacity 180ms ease, translate 220ms cubic-bezier(0.23, 1, 0.32, 1), visibility 0s linear 220ms; }
.credit-tip__panel::after { content: ""; position: absolute; left: 18px; top: 100%; border: 7px solid transparent; border-top-color: var(--p-bg); }
.credit-tip.is-open .credit-tip__panel { opacity: 1; visibility: visible; translate: 0 0; transition: opacity 180ms ease, translate 220ms cubic-bezier(0.23, 1, 0.32, 1), visibility 0s; }
@media (hover: hover) and (pointer: fine) {
  .credit-tip:hover .credit-tip__panel, .credit-tip:focus-within .credit-tip__panel { opacity: 1; visibility: visible; translate: 0 0; transition: opacity 180ms ease, translate 220ms cubic-bezier(0.23, 1, 0.32, 1), visibility 0s; }
  /* a bridge so the pointer can travel from the button up into the panel */
  .credit-tip__panel::before { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 12px; }
}
.credit-tip__title { font-weight: 600; }
.credit-tip__panel ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.credit-tip__panel li span { color: var(--p-muted); }
.credit-tip__panel a { color: var(--p-ink) !important; text-decoration: underline; text-decoration-color: rgb(42 38 34 / .35); text-underline-offset: 2px; min-height: 0 !important; min-width: 0 !important; display: inline !important; }
.credit-tip__panel a:hover { text-decoration-color: currentColor; }
.credit-tip__note { color: var(--p-muted); font-size: 12px; }
@media (max-width: 639px) {
  .credit-tip__btn { min-height: 44px; }
  /* on a phone the card spans the footer row, so it never runs past the screen */
  .footer__legal { position: relative; }
  .credit-tip { position: static; }
  .credit-tip__panel { left: 0; right: 0; width: auto; bottom: calc(100% + 8px); }
  .credit-tip__panel::after { display: none; }
}
@media (prefers-reduced-motion: reduce) { .credit-tip__panel { translate: none; } html .credit-tip__panel { transition-duration: 160ms, 0s, 0s !important; } }

/* ---------- footer: producer credit ---------- */
.footer__maker { color: var(--muted); }
.footer__maker a { color: inherit; text-decoration: underline; text-underline-offset: 3px; transition: color 200ms ease; }
.footer__maker a:hover { color: var(--ink); }

/* ---------- enquiry: direct contacts ---------- */
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); }
.contact-chip { display: flex; align-items: center; gap: var(--s-3); min-height: 56px; padding: var(--s-2) var(--s-4); border: 1px solid var(--line); border-radius: var(--r-md, 12px);
  background: var(--bg); color: var(--ink); text-decoration: none; transition: border-color 200ms ease, background-color 200ms ease, translate 200ms cubic-bezier(0.23, 1, 0.32, 1); }
.contact-chip img { flex: none; width: 18px; height: 18px; opacity: .75; }
.contact-chip span { display: grid; line-height: 1.3; font-weight: 500; overflow-wrap: anywhere; }
.contact-chip small { font-size: 12px; font-weight: 400; color: var(--muted); }
@media (hover: hover) and (pointer: fine) { .contact-chip:hover { border-color: var(--accent); background: var(--surface); translate: 2px 0; } }
.contact-chip:active { scale: 0.99; }
#enquire .enquire__photo { --ratio: 42%; }
@media (max-width: 1023px) { #enquire .enquire__photo { display: none; } }

/* ---------- tall screens: size sections to their content ----------
   The kit holds every section to at least one screen. On a screen taller than it is wide (a phone, a portrait
   tablet, a phone in "desktop site" mode) that leaves a screen-high gap under short sections, so there the
   sections take their content's height plus their padding. Landscape screens keep the one-screen rhythm. */
@media (orientation: portrait) {
  main > :is(section, .section):not(.hero, .section--hero),
  body > footer.closing { height: auto; min-height: 0; }
  main > .hero { height: auto; min-height: 0; }
  main > .hero > .wrap > .hero-text { height: auto; }
  .hero-portrait { flex: none; height: min(88vw, 640px); min-height: 0; }
  main > .hero { overflow-x: clip; }
}
@media (max-width: 639px) {
  /* the left-most label starts at its ring point instead of centring on it, so it stays on screen */
  .orbit__tag:nth-child(3) { translate: -20% -50%; }
}
