/* plot.dog on top of the Blayden template (css/main.css stays unmodified).
   One final set of rules per component (2026-10-11 "source composition"); the template's own sizes, spacing and
   animations apply everywhere else. Previous layered overrides: archive/plot.dog/2026-10-11-before-source-composition/. */

@font-face {
  font-family: "osifont";
  src: url("../fonts/osifont.ttf") format("truetype");
  font-display: swap;
}

/* ---------------------------------------------------------------- Logo tile + wordmark */
.logo .mxd-background { fill: var(--neutral-bright); }
.logo .logo__hotdog { stroke: var(--t-opp-bright); }
.logo-text { font-family: "osifont", var(--_font-default); font-weight: 400; letter-spacing: 0.02em; }

/* ---------------------------------------------------------------- Hero (source .main__intro + Headline)
   H1 keeps the source sizes/placement, only the approved osifont. Two source btn-line-small links side by side.
   Background: the real circle-truss plot in the source .intro__background slot, restrained and faded to the left. */
.headline__title { font-family: "osifont", var(--_font-accent); font-weight: 400; letter-spacing: 0; line-height: 0.95; font-size: 8rem; }
.headline__btn { display: flex; flex-wrap: wrap; gap: 1.6rem 4rem; margin-top: 4rem; }
@media only screen and (min-width: 768px) {
  .headline__title { font-size: 12rem; }
  .headline__btn { margin-top: 5rem; }
}
/* Phones/tablets: the hero is also one full first screen, its headline centred (header + headline + CTA fit easily) */
@media only screen and (max-width: 1199px) {
  .main__intro { display: flex; flex-direction: column; justify-content: center; min-height: calc(100vh - 6rem); min-height: calc(100svh - 6rem); margin-bottom: 0; }
  .main__intro .headline { margin-top: 0; }
}
@media only screen and (min-width: 768px) and (max-width: 1199px) {
  .main__intro { min-height: calc(100vh - 7rem); min-height: calc(100svh - 7rem); }
}
/* Desktop: the source full-height intro is the whole first screen (100svh); the short name is sized up and the headline
   block is centred under the header, level with the circle plot, instead of sitting on the bottom edge */
@media only screen and (min-width: 1200px) {
  .main__intro { height: 100vh; height: 100svh; }
  .main__intro .headline { top: calc(50% + 4rem); bottom: auto; transform: translateY(-50%); }
  .headline__title { font-size: clamp(13rem, 10vw, 20rem); }
  .headline__btn { margin-top: 5rem; margin-bottom: 0; }
}

.hero-plot { overflow: hidden; pointer-events: none; opacity: 0.25; }
.hero-plot__img { position: absolute; right: -30%; top: 50%; width: 130%; height: auto; transform: translateY(-50%); }
.hero-plot__img--dark { display: none; }
[color-scheme=dark] .hero-plot__img--light { display: none; }
[color-scheme=dark] .hero-plot__img--dark { display: block; }
@media only screen and (min-width: 768px) {
  .hero-plot { opacity: 0.35; }
  .hero-plot__img { right: -8%; width: 80%; }
}
@media only screen and (min-width: 1200px) {
  .hero-plot { opacity: 0.6;
    -webkit-mask-image: linear-gradient(90deg, transparent 18%, #000 52%); mask-image: linear-gradient(90deg, transparent 18%, #000 52%); }
  .hero-plot__img { right: -8%; width: 62%; max-width: 1200px; }
}

/* Scroll indicator: bottom of the full-screen hero, aligned with the headline column; slim mouse outline, moving dot */
.hero-scroll { position: absolute; z-index: 2; left: 2rem; bottom: 10rem; }   /* above the fixed bottom menu bar */
@media only screen and (min-width: 768px) { .hero-scroll { left: 5rem; bottom: 11rem; } }
@media only screen and (min-width: 1200px) { .hero-scroll { left: calc(16.66666667% + 5rem); bottom: 4rem; } }
.hero-scroll__link { display: inline-flex; align-items: center; gap: 1rem; text-decoration: none; opacity: 0.6; transition: opacity 0.3s ease; }
.hero-scroll__link:hover, .hero-scroll__link:focus-visible { opacity: 1; }
.hero-scroll__link:focus-visible { outline: 2px solid var(--t-bright); outline-offset: 4px; }
.hero-scroll__mouse { position: relative; display: block; flex: none; width: 2.2rem; height: 3.4rem; border: 1.5px solid var(--t-bright); border-radius: 1.1rem; }
.hero-scroll__label { font: normal 400 1.3rem/1 var(--_font-default); letter-spacing: 0.04em; color: var(--t-bright); }
.hero-scroll__dot { position: absolute; left: 50%; top: 0.6rem; width: 2px; height: 0.7rem; margin-left: -1px; border-radius: 1px; background: var(--t-bright); }
@media (prefers-reduced-motion: no-preference) { .hero-scroll__dot { animation: hero-scroll-dot 1.8s ease-in-out infinite; } }
@keyframes hero-scroll-dot { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(1.1rem); opacity: 0; } 100% { transform: translateY(0); opacity: 0; } }
/* the moving image row sits in normal flow below the hero (source .main__media) */
.main__media { padding-top: 4rem; }
@media only screen and (min-width: 1200px) { .main__media { padding-top: 6rem; } }

/* ---------------------------------------------------------------- 3D -> real comparison (Home divider + p03 tile)
   Lives in a source .divider frame (radius, overflow); 16:9; native range for mouse/touch/keyboard (js/app.js). */
.wipe { margin: 0; }
.wipe-frame { --pos: 50%; aspect-ratio: 16 / 9; height: auto; background: var(--base-tint); isolation: isolate; }
.wipe-frame > img,
.wipe-top img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wipe-top { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--pos)); }
.wipe-seam { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px;
  background: var(--neutral-white); z-index: 2; pointer-events: none; }
.wipe-grip { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; align-items: center; justify-content: center;
  width: 5.6rem; height: 5.6rem; border-radius: 50%; background: var(--neutral-white); color: var(--neutral-black); font-size: 2.2rem; }
.wipe-range { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; margin: 0;
  -webkit-appearance: none; appearance: none; background: transparent; cursor: ew-resize; touch-action: pan-y; }
.wipe-range::-webkit-slider-runnable-track { height: 100%; background: transparent; }
.wipe-range::-moz-range-track { height: 100%; background: transparent; }
.wipe-range::-webkit-slider-thumb { -webkit-appearance: none; width: 5.6rem; height: 100%; background: transparent; border: 0; }
.wipe-range::-moz-range-thumb { width: 5.6rem; height: 100%; background: transparent; border: 0; }
.wipe-range:focus { outline: none; }
.wipe-frame:has(.wipe-range:focus-visible) { outline: 2px solid var(--t-bright); outline-offset: 4px; }

/* ---------------------------------------------------------------- Marquee: own images in the template items; each opens its
   project album; hover/focus pauses the row. */
.item.image img { aspect-ratio: 4 / 3; object-fit: cover; }
.item.image[data-group] { cursor: pointer; }
.item.image[data-group]:focus-visible { outline: 3px solid var(--t-bright); outline-offset: 3px; }

/* ---------------------------------------------------------------- Services (source stack cards)
   Source title/descr positions, padding and H3 sizes untouched. Only the image panel is fitted for real photos and
   drawings: right half from 768 px, under the text on mobile. Plot: whole drawing on white; Live: cover. */
.services-stack__image { padding: 0 3rem 3rem; }
.services-stack__image .service-img { width: 100%; height: 100%; max-width: none; max-height: none; object-fit: cover; border-radius: var(--_radius-s); }
@media only screen and (min-width: 768px) {
  .services-stack__image { left: 52%; top: 3rem; right: 3rem; bottom: 3rem; width: auto; height: auto; padding: 0; }
  .services-stack__image .service-img { position: static; width: 100%; height: 100%; }
}
.services-stack__inner--plot .service-img { object-fit: contain; background: #fff; }
.services-stack__inner--live .service-img { object-position: 50% 30%; }
/* Concept: one image, the p05 front render (2.1:1), whole and unstretched; the panel takes the render's own edge colour */
.services-stack__inner--3d .services-stack__image .service-img { object-fit: contain; background: #081017; }
/* What I do: stronger chapter label (Services only) and more prominent card lines */
#services .section-name-caption { font-size: 2.6rem; }
#services .section-name i { font-size: 2.6rem; }
@media only screen and (min-width: 1200px) { #services .section-name-caption, #services .section-name i { font-size: 3.2rem; } }
.services-stack__text { font-size: 2rem; color: var(--t-bright); }
@media only screen and (min-width: 1200px) { .services-stack__text { font-size: 2.4rem; } }
/* Reduced motion: no pinning, the cards are listed */
.reduce-motion .services-stack { height: auto; min-height: 0; }
.reduce-motion .stack-item { position: relative; height: 65vh; min-height: 615px; }
@media only screen and (min-width: 768px) { .reduce-motion .stack-item { height: 500px; min-height: 0; } }
@media only screen and (min-width: 1400px) { .reduce-motion .stack-item { height: 600px; } }

/* ---------------------------------------------------------------- Portfolio (one source masonry gallery)
   Natural image ratios (source). Video poster: circular Play video control; the p03 compare is a full-width tile. */
.gallery__item--compare { cursor: auto; }
.gallery__link:focus-visible { outline: 3px solid var(--t-bright); outline-offset: 3px; }
.gallery__play { position: absolute; left: 50%; top: 50%; z-index: 2; transform: translate(-50%, -50%); display: flex; flex-direction: column;
  align-items: center; gap: 0.8rem; pointer-events: none; }
.gallery__play-circle { display: flex; align-items: center; justify-content: center; width: 7.2rem; height: 7.2rem; border-radius: 50%;
  background: #fff; color: #000; box-shadow: 0 0.4rem 2.4rem rgba(0, 0, 0, 0.35); transition: transform 0.3s var(--_animbezier); }
.gallery__play-circle svg { width: 2.8rem; height: 2.8rem; margin-left: 0.3rem; fill: currentColor; }
.gallery__play-text { font: 500 1.4rem/1 var(--_font-default); color: #fff; background: rgba(0, 0, 0, 0.6); padding: 0.6rem 1.1rem; border-radius: 10rem; white-space: nowrap; }
@media only screen and (min-width: 1200px) { .no-touch .gallery__link--video:hover .gallery__play-circle { transform: scale(1.08); } }
.gallery__link--video:focus-visible .gallery__play-circle { box-shadow: 0 0 0 4px var(--t-bright); }
.pf-all { cursor: pointer; background: none; border: 0; }
/* the source places gallery__btn over the last column; with natural ratios that column can be the longer one, so the
   button sits under the gallery instead */
@media only screen and (min-width: 768px) { .inner__gallery .gallery__btn { position: relative; right: auto; bottom: auto; width: 100%; margin-top: 1rem; } }
/* Lightbox video slide */
.pswp-video { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 6rem 2rem; }
.pswp-video video { max-width: 100%; max-height: 100%; }
/* Lightbox controls drawn locally (2026-10-13): the sprite glyphs are white, so on the template's white close/arrow plates
   they read as blank squares (most visibly over a video). Same plates, dark inline-SVG glyphs, 44px targets, always on top. */
.pswp__top-bar { z-index: 1700; }
.pswp__button--arrow--left, .pswp__button--arrow--right { z-index: 1700; }
.pswp .pswp__button--close { width: 44px; height: 44px; background: var(--neutral-white) no-repeat center / 18px 18px
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M2 2l14 14M16 2L2 16' stroke='%23111' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") !important; }
.pswp .pswp__button--arrow--left, .pswp .pswp__button--arrow--right { background: none !important; }
/* Prev/next stay visible on touch screens too (PhotoSwipe hides them there): a small cue that the photos can be paged */
.pswp--touch .pswp__button--arrow--left, .pswp--touch .pswp__button--arrow--right { visibility: visible; }
.pswp__ui--idle .pswp__top-bar, .pswp__ui--idle .pswp__button--arrow--left, .pswp__ui--idle .pswp__button--arrow--right { opacity: 1; }
@media only screen and (max-width: 767px) {
  .pswp__button--arrow--left, .pswp__button--arrow--right { width: 52px; margin-top: -36px; }
  .pswp .pswp__button--arrow--left::before { left: 0.8rem; }
  .pswp .pswp__button--arrow--right::before { right: 0.8rem; }
  .pswp .pswp__button--arrow--left::before, .pswp .pswp__button--arrow--right::before { opacity: 0.85; }
}
.pswp .pswp__button--arrow--left::before, .pswp .pswp__button--arrow--right::before { background: var(--neutral-white) no-repeat center / 18px 18px !important; }
.pswp .pswp__button--arrow--left::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M11.5 3L5.5 9l6 6' fill='none' stroke='%23111' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important; }
.pswp .pswp__button--arrow--right::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M6.5 3l6 6-6 6' fill='none' stroke='%23111' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important; }
.pswp .pswp__button--close:focus-visible, .pswp .pswp__button--arrow--left:focus-visible::before, .pswp .pswp__button--arrow--right:focus-visible::before { outline: 2px solid var(--neutral-white); outline-offset: 3px; }

/* Menu anchors: keep section labels/headings clear of the fixed top logo bar when jumped to */
#services, #portfolio, #contact { scroll-margin-top: 8rem; }
@media only screen and (min-width: 768px) { #services, #portfolio, #contact { scroll-margin-top: 10rem; } }

/* ---------------------------------------------------------------- Closing rhythm: See more -> Social media -> Have an idea?
   marquee -> Contact. One shared responsive gap between these boundaries instead of the accumulated source margins. */
:root { --closing-gap: clamp(4.8rem, 6vw, 9.6rem); }
.closing-social { margin-top: var(--closing-gap); }   /* .p-0 forces padding 0 */
.closing-social .content__block.no-padding { margin-top: var(--closing-gap); margin-bottom: 0; }
#portfolio { padding-bottom: calc(var(--closing-gap) * 0.5); }   /* + the Contact heading block's own top offset ≈ one gap */
#contact { padding-top: 0; }

/* ---------------------------------------------------------------- Contact / footer */
.contact-copyright { margin-top: 2.4rem; color: var(--t-medium); }
/* Email: source socials-lines row (same divider, fill-on-hover and colours as the Instagram row) with the larger accent
   type; the envelope sits in the row's icon slot, faint, and does not rotate like the arrow. */
.contact-email h4 { font: normal 300 clamp(2.8rem, 1.6rem + 2.4vw, 4.4rem)/1.2 var(--_font-accent); overflow-wrap: anywhere; margin: 0; }
.contact-email .socials-lines__icon { font-size: clamp(4rem, 3rem + 3vw, 7.2rem); }
.contact-email .socials-lines__icon i { opacity: 0.3; }
.contact-email:hover .socials-lines__icon i, .contact-email:focus-visible .socials-lines__icon i { opacity: 1; transform: none !important; }
.contact-email:focus-visible { outline: 2px solid var(--t-bright); outline-offset: 2px; }
@media only screen and (min-width: 1200px) {
  .contact-email:focus-visible::before { height: 100%; }
  .contact-email:focus-visible h4, .contact-email:focus-visible i { color: var(--t-opp-bright); }
}
.socials-lines__handle { font: normal var(--font-weight-base) 1.8rem var(--_font-default); color: var(--t-medium); margin-right: 1.6rem;
  transition: color var(--_animspeed-medium) var(--_animbezier); }
@media only screen and (min-width: 768px) { .socials-lines__handle { font-size: 2.2rem; } }
@media only screen and (min-width: 1200px) { .no-touch .socials-lines__link:hover .socials-lines__handle { color: var(--t-opp-bright); } }
.contact-form__note { margin-top: 1.2rem; color: var(--t-medium); }
.item__image .plot-symbol { display: block; width: 100%; height: 100%; color: var(--t-bright); }
.item__image .plot-symbol g { stroke-width: 1.6px; }
.footer-marquee .items { overflow: hidden; }
#contact { position: relative; isolation: isolate; }
.bottom__background { z-index: -1; pointer-events: none; }
@media only screen and (max-width: 767px) { .bottom__background { display: none; } }

/* ---------------------------------------------------------------- Dangling objects: the logo's outline hot dog in the source
   intro-bg-01__02 and bottom-bg-01 slots. Black lines, inverted in dark mode; whole symbol inside the source box. */
.intro__background.intro-bg-01, .bottom__background { pointer-events: none; }
.bottom-bg-01__01, .bottom-bg-01__02 { aspect-ratio: 1; }
.intro__background.intro-bg-01 img.hotdog-object, .bottom__background img.hotdog-object { width: 100%; height: 100%; object-fit: contain; opacity: 0.55; }
[color-scheme=dark] .hotdog-object { filter: invert(1); }
/* Bottom objects sit fully above the final "Let's make it happen" band (band top: 184px tablet, 148px 1200, 160px 1400,
   208px 1600+ from the page bottom; the band is the page ending) with ~48px clearance; phones keep them hidden. */
@media only screen and (min-width: 768px) { .bottom-bg-01__01 { bottom: 232px; } .bottom-bg-01__02 { bottom: 240px; } }
@media only screen and (min-width: 1200px) { .bottom-bg-01__01 { bottom: 200px; } .bottom-bg-01__02 { bottom: 200px; } }
@media only screen and (min-width: 1400px) { .bottom-bg-01__01 { bottom: 210px; } .bottom-bg-01__02 { bottom: 210px; } }
@media only screen and (min-width: 1600px) { .bottom-bg-01__01 { bottom: 256px; } .bottom-bg-01__02 { bottom: 260px; } }
.hotdog-object--hero { transform: rotate(-14deg); }
/* phones: the short hero leaves no free edge for the side object, so it would cover the title/CTA */
@media only screen and (max-width: 767px) { .intro__background.intro-bg-01 { display: none; } }
.hotdog-object--a { transform: rotate(9deg); }
.hotdog-object--b { transform: rotate(-5deg); }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------------------------------------------------------------- Loader: five canonical symbols, the hot dog accents,
   then an aperture shaped like its sausage opens the page (js/loader.js). Only with JS (.pd-js); removed when done. */
.pd-loader { display: none; }
.pd-js .pd-loader { display: block; position: fixed; inset: 0; z-index: 100000; pointer-events: none; }
.pd-loader__mask { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.pd-loader__bg { fill: var(--base); }
.pd-loader__logo { position: absolute; left: 50%; top: 50%; width: min(64vw, 440px); height: auto; overflow: visible;
  transform: translate(-50%, -50%); color: var(--t-bright); will-change: transform, opacity; }
.pd-loader .pd-sym, .pd-loader .pd-dog { transform-box: fill-box; transform-origin: 50% 50%; }
.pd-loader .pd-sym { opacity: 0; }
.pd-loader--static .pd-sym { opacity: 1; }
html.pd-loading, html.pd-loading body { overflow: hidden; }
