/* ==========================================================================
   Starlane Capital
   Monochrome. Palette taken from the logo files. No accent hue anywhere.
   ========================================================================== */

:root{
  --ink:#0d0e10;          /* ground */
  --ink-lift:#16181c;     /* raised surface: panels, form cards */
  --ink-edge:#1e2126;     /* hairline on panels */
  --slate:#6c727a;        /* BORDERS ONLY — 3.98:1, fails AA for text */
  --quiet:#7f858d;        /* muted text — 5.19:1 */
  --mist:#a8aeb6;         /* secondary text */
  --paper:#f7f8f9;        /* primary text */
  --rule:rgba(168,174,182,.18);
  --rule-soft:rgba(168,174,182,.09);

  /* The logo file carries 11.8% transparent padding on its left, and the
     wordmark's centre sits 8.1% right of the canvas centre. These align the
     ink rather than the file. Only numbers to change if the logo is
     re-exported. */
  --logo-edge-trim:-11.8%;
  --logo-optical-shift:-8.1%;

  --display:Georgia,"Times New Roman",serif;
  --ui:ui-sans-serif,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;

  /* home page entrance — raise --fade-dur for a slower reveal */
  --fade-dur:1.7s;
  --fade-ease:cubic-bezier(.17,.71,.28,1);

  --gut:clamp(1.25rem,5vw,4.5rem);
  --measure:38rem;
}

*,*::before,*::after{box-sizing:border-box}

html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{
    animation-duration:.01ms !important;
    animation-iteration-count:1 !important;
    transition-duration:.01ms !important;
  }
}

body{
  margin:0;
  min-height:100vh;
  display:flex;
  flex-direction:column;
  background:var(--ink);
  color:var(--paper);
  font-family:var(--ui);
  font-size:1rem;
  line-height:1.7;
  -webkit-font-smoothing:antialiased;
}

::selection{background:var(--paper);color:var(--ink)}

a{color:inherit}

:focus-visible{outline:2px solid var(--paper);outline-offset:3px}

img{max-width:100%;height:auto;display:block}

.skip{
  position:absolute;left:-9999px;top:0;
  background:var(--paper);color:var(--ink);
  padding:.75rem 1.25rem;z-index:100;font-size:.9375rem;
}
.skip:focus{left:0}

.shell{
  width:100%;max-width:64rem;
  margin-inline:auto;
  padding-inline:var(--gut);
}

/* ---------------------------------------------------------------- masthead */

.masthead{border-bottom:1px solid var(--rule-soft)}

.masthead .shell{
  display:flex;align-items:center;justify-content:space-between;
  gap:1.5rem 2rem;flex-wrap:wrap;padding-block:1.5rem;
}

.brand{display:block;line-height:0}

.brand img{
  width:clamp(9rem,22vw,11.5rem);
  transform:translateX(var(--logo-edge-trim));
}

.nav{
  display:flex;align-items:center;
  gap:clamp(1.1rem,3.5vw,2.5rem);
  font-size:.875rem;letter-spacing:.06em;color:var(--mist);
}

.nav a{
  text-decoration:none;padding-block:.35rem;
  border-bottom:1px solid transparent;
  transition:color .2s ease,border-color .2s ease;
  white-space:nowrap;
}

.nav a:hover{color:var(--paper)}

.nav a[aria-current="page"]{
  color:var(--paper);
  border-bottom-color:var(--slate);
}

/* ------------------------------------------------------------------- main */

main{flex:1 0 auto;width:100%}

/* Home — calling card. Logo and tagline only. */

.card{
  display:flex;flex-direction:column;
  align-items:center;justify-content:center;
  text-align:center;
  padding-block:clamp(5rem,18vh,11rem);
}

.card .emblem{
  width:clamp(15rem,52vw,27rem);
  transform:translateX(var(--logo-optical-shift));
  opacity:0;
  animation:riseLogo var(--fade-dur) var(--fade-ease) .25s forwards;
}

.card .line{
  margin:clamp(1.1rem,2.5vh,1.75rem) 0 0;
  font-family:var(--display);
  font-size:clamp(1.15rem,.95rem + .8vw,1.6rem);
  font-weight:400;line-height:1.5;
  max-width:26ch;color:var(--paper);
  text-wrap:balance;
  opacity:0;
  animation:rise var(--fade-dur) var(--fade-ease) .95s forwards;
}

@keyframes rise{
  from{opacity:0;transform:translateY(.7rem)}
  to{opacity:1;transform:none}
}

/* the emblem carries a horizontal offset its keyframes must preserve */
@keyframes riseLogo{
  from{opacity:0;transform:translate(var(--logo-optical-shift),.7rem)}
  to{opacity:1;transform:translateX(var(--logo-optical-shift))}
}

@media (prefers-reduced-motion:reduce){
  .card .line{opacity:1;transform:none;animation:none}
  .card .emblem{opacity:1;transform:translateX(var(--logo-optical-shift));animation:none}
}

/* Interior pages */

.page{padding-block:clamp(3rem,8vh,5rem) clamp(4rem,10vh,7rem)}

.page h1{
  margin:0 0 .6rem;
  font-family:var(--display);font-weight:400;
  font-size:clamp(1.75rem,1.4rem + 1.5vw,2.6rem);
  line-height:1.2;letter-spacing:-.01em;
}

.page .standfirst{
  margin:0 0 clamp(2.5rem,6vh,3.5rem);
  max-width:var(--measure);
  color:var(--mist);font-size:1.0625rem;
}

.prose{max-width:var(--measure)}

.prose h2{
  margin:2.75rem 0 .75rem;
  font-family:var(--display);font-weight:400;
  font-size:1.25rem;line-height:1.35;
}

.prose h2:first-of-type{margin-top:0}

.prose p,.prose li{color:var(--mist);font-size:.9688rem}
.prose p{margin:0 0 1.1rem}
.prose ul{margin:0 0 1.1rem;padding-left:1.15rem}
.prose li{margin-bottom:.5rem}
.prose a{color:var(--paper);text-decoration:underline;text-underline-offset:.2em}

/* ------------------------------------------------------------------ forms */

.panel{
  max-width:26rem;margin-inline:auto;
  padding:clamp(1.75rem,4vw,2.5rem);
  background:var(--ink-lift);
  border:1px solid var(--ink-edge);
}

.panel h1{
  margin:0 0 .5rem;
  font-family:var(--display);font-weight:400;
  font-size:1.65rem;line-height:1.25;
}

.panel .note{margin:0 0 2rem;font-size:.9375rem;color:var(--mist)}

.field{margin-bottom:1.5rem}

.field label{
  display:block;font-size:.8125rem;letter-spacing:.05em;
  color:var(--mist);margin-bottom:.5rem;
}

.field input,.field textarea{
  width:100%;background:transparent;color:var(--paper);
  border:0;border-bottom:1px solid var(--rule);
  font-family:inherit;font-size:1rem;padding:.55rem 0;
  transition:border-color .2s ease;
}

.field input:hover,.field textarea:hover{border-bottom-color:var(--slate)}
.field input:focus,.field textarea:focus{border-bottom-color:var(--paper);outline:none}
.field textarea{resize:vertical;min-height:6rem;line-height:1.6}

.btn{
  display:inline-block;background:transparent;color:var(--paper);
  border:1px solid var(--slate);font-family:inherit;
  font-size:.9375rem;letter-spacing:.04em;padding:.75rem 1.75rem;
  cursor:pointer;
  transition:background .2s ease,color .2s ease,border-color .2s ease;
}

.btn:hover{background:var(--paper);border-color:var(--paper);color:var(--ink)}

.msg{
  margin-top:1.5rem;padding:.9rem 1.1rem;
  border-left:2px solid var(--slate);
  background:rgba(168,174,182,.06);
  font-size:.9063rem;color:var(--mist);
}

.msg[hidden]{display:none}

.contact-grid{
  display:grid;gap:clamp(2.5rem,6vw,4.5rem);
  grid-template-columns:1fr;align-items:start;
}

@media (min-width:52rem){.contact-grid{grid-template-columns:1fr 1fr}}

/* ------------------------------------------------------- contact details */
/* Icons are decorative — the adjacent text says what each is — so they carry
   aria-hidden. One link wraps the whole address: three identical adjacent
   links would be announced three times over. */

.details{list-style:none;margin:0;padding:0}

.details li{
  display:grid;grid-template-columns:auto 1fr;
  gap:.95rem;align-items:start;
  font-size:1rem;line-height:1.9;
}

.details li + li{margin-top:1.1rem}
.details li.spaced{margin-top:2.5rem}

.ico{
  width:20px;height:20px;color:var(--quiet);
  margin-top:.42rem;flex:none;
}

.details address{
  font-style:normal;margin:0;color:var(--mist);
  transition:color .2s ease;
}

.details a{
  color:var(--paper);text-decoration:none;
  border-bottom:1px solid var(--slate);
  padding-bottom:.1rem;
  transition:border-color .2s ease,color .2s ease;
}

.details a:hover{border-bottom-color:var(--paper)}

.addr{border-bottom:0;display:inline-block}
.addr:hover address,.addr:focus-visible address{color:var(--paper)}

/* ---------------------------------------------------------------- footer */

footer{
  flex-shrink:0;
  border-top:1px solid var(--rule-soft);
  padding-block:2rem 2.5rem;
  font-size:.8125rem;color:var(--quiet);
}

footer .shell{
  display:flex;flex-wrap:wrap;
  justify-content:space-between;align-items:center;
  gap:1rem 2rem;
}

.footlinks{display:flex;flex-wrap:wrap;gap:1rem 1.75rem}
.footlinks a{text-decoration:none;transition:color .2s ease}
.footlinks a:hover{color:var(--paper)}

/* honeypot — must exist in the DOM and stay empty; hidden from sight and from
   assistive technology, but not with display:none, which some bots detect */
.hp{
  position:absolute;
  width:1px;height:1px;
  overflow:hidden;
  clip:rect(0 0 0 0);
  clip-path:inset(50%);
  white-space:nowrap;
}

/* utility classes replacing former inline style attributes, so the
   Content-Security-Policy can forbid inline styles outright */
.note--sub{margin:2rem 0 0;font-size:.875rem}
.formnote{margin-top:1.5rem;font-size:.8125rem;color:var(--quiet);line-height:1.6}
a.strong{color:var(--paper)}
a.subtle{color:var(--mist)}
