/* fonts: the same as the home page (css/style.min.css) */
@font-face{font-family:"Calibri";font-style:normal;font-weight:400;src:url(../fonts/carlito-400.woff2) format("woff2");font-display:swap;unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Calibri";font-style:normal;font-weight:700;src:url(../fonts/carlito-700.woff2) format("woff2");font-display:swap;unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
:root{
  --ground:#575756; --ink:#ffffff; --soft:#e4e4e4; --magenta:#C70473;
  /* the line sits where the logo line of the home page sits: 699.6px from the left from 1100px wide,
     closer below (the home form and description shrink together: 270/920 of each pixel lost) */
  --axis:min(699.6px, calc(699.6px - (1100px - 100%) * 0.293478)); --gapL:22px; --gapR:23px; --ease:cubic-bezier(.2,.7,.1,1);
  color-scheme:dark; box-sizing:border-box;
  padding-top:env(safe-area-inset-top,0px);
}
@media (prefers-color-scheme: dark){ :root:not([data-theme="light"]){ --ground:#575756; --ink:#ffffff; } }
:root[data-theme="dark"]{ --ground:#575756; --ink:#ffffff; }
html{scroll-padding-top:env(safe-area-inset-top,0px);background:var(--ground)}
*,*::before,*::after{box-sizing:border-box}
body{margin:0;position:relative;background:var(--ground);color:var(--ink);font-family:"Calibri", sans-serif;letter-spacing:.06em;line-height:1.5;-webkit-font-smoothing:antialiased;overflow-x:hidden}
a{color:var(--ink);text-decoration:none;border-bottom:1px solid var(--ink);padding-bottom:2px}
a:hover,a:focus-visible{border-bottom-color:transparent}
:focus-visible{outline:1px solid var(--ink);outline-offset:4px}
.tbc{background:none;color:inherit;border-bottom:1px dashed var(--magenta)}
.wrap{position:relative}   /* full width, like the home page (no centred column) */

/* header: same geometry as the homepage, so the logo's line sits on the page axis */
.head{position:relative;height:250px}
/* logo: the same images and proportions as the home page (220px wide: 143px | 2px line | 57.2px),
   the line is static here (no animation) */
.logo{display:grid;grid-template-columns:var(--axis) 2px 1fr;padding-top:85px;line-height:0;border:0;pointer-events:none}   /* 85px from the top, as on the home page; the grid spans the page: only the logo itself is clickable */
.logo img,.logo .t{pointer-events:auto}
.logo img{display:block;height:auto}
.logo .w{display:flex;justify-content:flex-end;align-items:flex-start;padding-right:6.6px}
.logo .w img{width:143px}
.logo .t{height:41.4px;background:var(--magenta)}   /* 2.3rem of the home page (18px root) */
.logo .c{padding-left:6.8px}
.logo .c img{width:57.2px}
/* z-index 3: above .wrap (z-index 1, later in the page), otherwise the header would catch the click.
   "home" takes exactly the place of "welcome" on the home page (main .form: 90px from the left,
   194.4px from the top), with the same size, spacing and line height; placed on the page (body),
   not in the centred .wrap, so it stays put on screens wider than 1440px */
.home{position:absolute;z-index:3;top:194.4px;left:90px;font-size:14.4px;font-weight:700;letter-spacing:1.8px;line-height:normal}
.arrived .home{animation:homeIn .9s ease both .2s}
@keyframes homeIn{from{opacity:0}to{opacity:1}}

/* the line: one stroke that starts as the logo's tick and writes the page */
.ink{position:absolute;left:0;top:0;pointer-events:none;overflow:visible;z-index:0}
.wrap{z-index:1}
.ink path{fill:none;stroke:var(--magenta);stroke-width:2;shape-rendering:crispEdges}   /* 2px, like the logo line */
.ink circle{fill:var(--magenta);transition:opacity .4s}

.row{display:grid;grid-template-columns:var(--axis) minmax(0,1fr)}
.row .l{margin:0;text-align:right;padding-right:var(--gapL)}
.row .r{padding-left:var(--gapR)}
.sec{padding:0 0 24vh;padding-bottom:24svh}   /* the same grey space after every block, including before Contact */
.sec .l{font-size:13px;font-weight:700;letter-spacing:.2em;text-transform:uppercase;line-height:1.5;padding-top:4px}
.sec .r{max-width:calc(520px + var(--gapR))}
/* each block arrives whole, in one movement, when the line reaches it */
.sec .l,.sec .r{opacity:0;transform:translateY(16px);transition:opacity 1.2s ease,transform 1.4s var(--ease)}
.sec.in .l,.sec.in .r{opacity:1;transform:none}
.sec .l,.sec .r{transition:opacity 1.2s ease,transform 1.4s var(--ease),filter 1s ease}
/* once the next block arrives, the previous one stays, softly out of focus */
.sec.in.past .l,.sec.in.past .r{opacity:.38;filter:blur(2.5px)}
.lead{margin:0;font-size:clamp(20px,1.65vw,25px);line-height:1.3;letter-spacing:.02em}
.body{margin:18px 0 0;font-size:15px;line-height:1.8;color:var(--soft);letter-spacing:.04em;max-width:34em}
.contact{padding:0 0 18px;font-size:15px;letter-spacing:.1em}
.closing{display:block;width:100%;max-width:none;height:auto;margin:0;opacity:.3}
.contact .l{font-weight:700}
.contact{opacity:0;transform:translateY(16px);transition:opacity 1.2s ease,transform 1.4s var(--ease)}
.contact.in{opacity:1;transform:none}

@media (max-width: 700px){   /* same breakpoint as the home page */
  :root{--axis:0px;--gapL:0px;--gapR:0px}
  .head{height:120px}
  .logo{position:absolute;top:20px;left:20px;grid-template-columns:auto 2px auto;padding-top:0}   /* logo top left, level with home */
  .row{grid-template-columns:1fr;padding-left:var(--lx,150px);padding-right:20px}   /* text hangs to the right of the line, as on desktop */
  .row .l{text-align:left;padding:0 0 14px}
  .sec{padding-bottom:19vh;padding-bottom:19svh}
  .lead{font-size:19px}
  .sec .l{font-size:12px;padding-top:0}
  .body{font-size:14px}
  .contact{font-size:12px;display:flex;gap:16px;padding-bottom:14px}
  .contact .l{padding:0}
}
/* phones, same breakpoint as the home page: "welcome" sits 20px from the left,
   below the logo whose margins are 10% + 30% of the page width (margins in % follow the width) */
@media (max-width: 700px){
  .home{top:54.6px;left:20px;margin-top:40%}
}
@media (prefers-reduced-motion: reduce){
  .sec .l,.sec .r{transform:none !important}
}
