/* =============================================================
   Lensfield Capital — one-pager
   From-scratch build of the "Lensfield Capital v2" design.

   Art direction: quiet luxury / institutional. One tonal world —
   ink, charcoal, graphite, bone — carrying fine architectural
   line work, soft atmospheric glows, and a constant film grain.
   Motion is deliberately near-imperceptible.

   Section tonal sequence (no two adjacent darks match):
     Hero        ink       #0B0C0D
     Firm        bone      #F1EFE9
     Technology  charcoal  #131517  (intro + interactive accordion)
     Approach    bone      #F1EFE9
     Beyond      graphite  #1A1D1F
     Contact     ink       #0B0C0D  (descent into black at the footer)
   ============================================================= */

/* ---------------------------------------------------------------
   Tokens
   --------------------------------------------------------------- */
:root {
  /* Surfaces */
  --ink:        #0B0C0D;
  --charcoal:   #131517;
  --graphite:   #1A1D1F;
  --bone:       #F1EFE9;

  /* Type */
  --text:       #EDEAE2;  /* on dark  */
  --text-dark:  #16181A;  /* on bone  */
  --muted:      #8E9194;  /* body on dark          */
  --muted-warm: #9B9E9F;  /* hero lede             */
  --muted-dim:  #6E7173;  /* mono captions on dark */
  --bone-label: #77797B;  /* mono captions on bone */
  --bone-body:  #5F6266;  /* body on bone          */
  --accent:     #A08A63;  /* brass — hover only    */

  /* Hairlines */
  --line-on-dark:        rgba(237, 234, 226, 0.10);
  --line-on-dark-strong: rgba(237, 234, 226, 0.14);
  --line-on-bone:        rgba(19, 21, 23, 0.16);

  /* Line-work ink (grids and meshes derive from these) */
  --wire-light: 237, 234, 226;
  --wire-dark:  19, 21, 23;

  /* Rhythm */
  --max:       1160px;
  --gutter:    clamp(24px, 5vw, 80px);
  --section-y: clamp(88px, 13vh, 160px);

  /* Type stacks */
  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans:  'Archivo', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --mono:  'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
}

/* ---------------------------------------------------------------
   Base
   --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }

:focus-visible { outline: 1px solid var(--accent); outline-offset: 4px; }

img, svg { display: block; max-width: 100%; }

/* Repeated blocks are real lists in the markup; the bullets and
   default indents are not part of the design. */
[role="list"] { margin: 0; padding: 0; list-style: none; }

/* ---------------------------------------------------------------
   Atmosphere
   --------------------------------------------------------------- */

/* Constant film grain over the whole page. */
.grain {
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}

/* Every background element is decorative and non-interactive. */
.decor {
  position: absolute;
  pointer-events: none;
}

@keyframes lf-drift {
  0%   { transform: translate3d(-2%, -1%, 0); }
  50%  { transform: translate3d(2%, 1.5%, 0); }
  100% { transform: translate3d(-2%, -1%, 0); }
}
@keyframes lf-breathe {
  0%, 100% { opacity: 0.45; }
  50%      { opacity: 1; }
}
@keyframes lf-rotate {
  to { transform: rotate(360deg); }
}

/* ---------------------------------------------------------------
   Layout primitives
   --------------------------------------------------------------- */
.section {
  position: relative;
  overflow: hidden;
}

.section--ink      { background: var(--ink); }
.section--charcoal { background: var(--charcoal); }
.section--graphite { background: var(--graphite); }
.section--bone     { background: var(--bone); color: var(--text-dark); }

.container {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: var(--section-y) var(--gutter);
}

/* ---------------------------------------------------------------
   Shared type
   --------------------------------------------------------------- */
.eyebrow {
  margin: 0 0 20px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.section--bone .eyebrow { color: var(--bone-label); }

.eyebrow--flush  { margin-bottom: 0; }
.eyebrow--spaced { margin-bottom: clamp(40px, 6vh, 64px); }

/* ---------------------------------------------------------------
   Nav — rides over the hero, not fixed
   --------------------------------------------------------------- */
.nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  padding: 30px var(--gutter);
}

.nav__brand {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 20px;
  letter-spacing: 0.01em;
  color: var(--text);
}

/* ---------------------------------------------------------------
   Hero
   --------------------------------------------------------------- */
.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 94vh;
}

/* Wide 240px grid, faded off at the edges of an ellipse. */
.hero__grid {
  inset: 0;
  background-image:
    linear-gradient(rgba(var(--wire-light), 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--wire-light), 0.04) 1px, transparent 1px);
  background-size: 240px 240px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 45%, #000, transparent 78%);
          mask-image: radial-gradient(ellipse 80% 70% at 50% 45%, #000, transparent 78%);
}

.hero__glow {
  top: -30%;
  left: -12%;
  width: 68vw;
  height: 68vw;
  background: radial-gradient(circle, rgba(237, 230, 214, 0.055), transparent 62%);
}

/* The one moving element up top: a slow tidal shift of light. */
.hero__drift {
  top: -20%;
  right: -18%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, rgba(214, 206, 188, 0.04), transparent 60%);
  animation: lf-drift 90s ease-in-out infinite, lf-breathe 24s ease-in-out infinite;
}

/* Vanishing-point line work, anchored to the bottom edge. */
.hero__perspective {
  inset: 0;
  width: 100%;
  height: 100%;
  -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.35) 32%, transparent 58%);
          mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.35) 32%, transparent 58%);
}

.hero__inner {
  width: 100%;
  padding-top: 120px;
  padding-bottom: 140px;
}

.hero__inner .eyebrow { margin-bottom: 28px; }

.hero__title {
  margin: 0;
  max-width: 16ch;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(48px, 6.5vw, 92px);
  letter-spacing: -0.01em;
  line-height: 1.05;
  text-wrap: pretty;
  color: var(--text);
}

.hero__lede {
  margin: 30px 0 0;
  max-width: 50ch;
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.7;
  color: var(--muted-warm);
}

/* ---------------------------------------------------------------
   The firm
   --------------------------------------------------------------- */
.firm { border-top: 1px solid rgba(var(--wire-light), 0.08); }

/* Two concentric rings cropped by the top-right corner. */
.firm__ring {
  top: -46%;
  right: -14%;
  width: 880px;
  height: 880px;
  border: 1px solid rgba(var(--wire-dark), 0.09);
  border-radius: 50%;
}
.firm__ring--inner {
  border-color: rgba(var(--wire-dark), 0.06);
  transform: scale(0.72);
}

.firm__mesh {
  inset: 0;
  background-image:
    linear-gradient(rgba(var(--wire-dark), 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--wire-dark), 0.05) 1px, transparent 1px);
  background-size: 96px 96px;
  -webkit-mask-image: radial-gradient(ellipse 55% 80% at 100% 0%, #000, transparent 72%);
          mask-image: radial-gradient(ellipse 55% 80% at 100% 0%, #000, transparent 72%);
}

.firm__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(36px, 5vw, 90px);
  align-items: start;
}

.firm__title {
  margin: 0 0 20px;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.25;
  text-wrap: pretty;
}

.firm__body {
  margin: 0;
  max-width: 58ch;
  font-size: 15px;
  line-height: 1.75;
  color: var(--bone-body);
}

/* ---------------------------------------------------------------
   Technology (intro + interactive accordion)
   --------------------------------------------------------------- */
.strategy__mesh {
  inset: 0;
  background-image:
    linear-gradient(rgba(var(--wire-light), 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--wire-light), 0.035) 1px, transparent 1px);
  background-size: 96px 96px;
  -webkit-mask-image: radial-gradient(ellipse 60% 90% at 0% 100%, #000, transparent 75%);
          mask-image: radial-gradient(ellipse 60% 90% at 0% 100%, #000, transparent 75%);
}

/* Abstract node graph — technology felt, not shown. */
.strategy__network {
  top: 6%;
  right: -60px;
  width: min(520px, 44vw);
  height: auto;
  opacity: 0.75;
  -webkit-mask-image: radial-gradient(circle at 45% 45%, #000, transparent 72%);
          mask-image: radial-gradient(circle at 45% 45%, #000, transparent 72%);
}

/* The section splits into an intro column (headline, focus tags,
   note) and an interactive accordion menu; wraps without breakpoints. */
.tech {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: clamp(48px, 6vw, 110px);
}

.tech__intro { flex: 1 1 320px; max-width: 470px; }

.tech__title {
  margin: 0 0 clamp(28px, 4vh, 44px);
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(30px, 3.4vw, 46px);
  line-height: 1.14;
  text-wrap: pretty;
  color: var(--text);
}

.tech__focus-label {
  margin: 0 0 14px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted-dim);
}

/* Focus tags: hovering (or keyboard-focusing) a tag fades its
   one-line description into the caption slot reserved below. */
.tech__tags {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 40px;
}

.tech__tag {
  padding: 9px 14px;
  border: 1px solid var(--line-on-dark);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: default;
  transition: color 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
}

.tech__tag:hover,
.tech__tag:focus-visible {
  color: var(--text);
  border-color: var(--line-on-dark-strong);
  background-color: rgba(var(--wire-light), 0.04);
}

.tech__tag-desc {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: normal;
  text-transform: none;
  color: var(--muted);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
}

.tech__tag:hover .tech__tag-desc,
.tech__tag:focus-visible .tech__tag-desc {
  opacity: 1;
  transform: none;
}

.tech__note {
  margin: 4px 0 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  line-height: 1.6;
  color: var(--muted-dim);
}

/* Accordion menu. One panel open at a time; without JS every panel
   stays open so no content is unreachable. */
.tech__menu {
  flex: 1.35 1 440px;
  border-top: 1px solid var(--line-on-dark-strong);
}

.tech__item { border-bottom: 1px solid var(--line-on-dark-strong); }

.tech__heading { margin: 0; }

.tech__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  padding: clamp(20px, 3vh, 28px) 0;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  color: var(--text);
}

.tech__row-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(24px, 2.6vw, 36px);
  line-height: 1.1;
  transition: transform 0.4s ease, color 0.4s ease;
}

.tech__row:hover .tech__row-title,
.tech__row:focus-visible .tech__row-title {
  transform: translateX(10px);
  color: var(--accent);
}

/* Plus mark, drawn with two hairline bars; collapses to a minus
   when the panel is open. */
.tech__row-mark {
  position: relative;
  flex: 0 0 14px;
  height: 14px;
}
.tech__row-mark::before,
.tech__row-mark::after {
  content: "";
  position: absolute;
  inset: 50% 0 auto 0;
  height: 1px;
  background: var(--muted);
  transition: transform 0.4s ease, background-color 0.4s ease;
}
.tech__row-mark::after { transform: rotate(90deg); }
.tech__row:hover .tech__row-mark::before,
.tech__row:hover .tech__row-mark::after { background: var(--accent); }
.is-open .tech__row-mark::after { transform: rotate(0deg); }

.tech__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s ease;
}

.tech__panel-body {
  overflow: hidden;
  min-height: 0;
  margin: 0;
  max-width: 56ch;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--muted);
  opacity: 0;
  transition: opacity 0.45s ease;
}

.is-open .tech__panel { grid-template-rows: 1fr; }
.is-open .tech__panel-body { opacity: 1; padding-bottom: clamp(20px, 3vh, 28px); }

/* No JS: every panel stays open and readable. */
html:not(.js) .tech__panel { grid-template-rows: 1fr; }
html:not(.js) .tech__panel-body { opacity: 1; padding-bottom: 24px; }

/* Staggered reveal once the section scrolls into view. */
.js .tech__intro,
.js .tech__item {
  opacity: 0;
  transform: translateY(18px);
}
.js .strategy.is-inview .tech__intro,
.js .strategy.is-inview .tech__item {
  opacity: 1;
  transform: none;
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.js .strategy.is-inview .tech__item:nth-child(1) { transition-delay: 0.12s; }
.js .strategy.is-inview .tech__item:nth-child(2) { transition-delay: 0.24s; }
.js .strategy.is-inview .tech__item:nth-child(3) { transition-delay: 0.36s; }
.js .strategy.is-inview .tech__item:nth-child(4) { transition-delay: 0.48s; }

/* The node graph breathes gently behind the menu. */
.strategy__network circle {
  animation: lf-breathe 7s ease-in-out infinite;
}
.strategy__network circle:nth-child(2) { animation-delay: 1.4s; }
.strategy__network circle:nth-child(3) { animation-delay: 2.8s; }
.strategy__network circle:nth-child(4) { animation-delay: 4.2s; }
.strategy__network circle:nth-child(5) { animation-delay: 5.6s; }

@media (prefers-reduced-motion: reduce) {
  .js .tech__intro,
  .js .tech__item { opacity: 1; transform: none; transition: none; }
  .tech__panel,
  .tech__panel-body,
  .tech__row-title,
  .tech__row-mark::before,
  .tech__row-mark::after,
  .tech__tag,
  .tech__tag-desc { transition: none; }
  .strategy__network circle { animation: none; }
}

/* ---------------------------------------------------------------
   Ledger rows — Beyond technology
   --------------------------------------------------------------- */
.ledger__row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px clamp(16px, 3vw, 48px);
  padding: 26px 0;
  border-bottom: 1px solid var(--line-on-dark);
}

.ledger__title {
  flex: 0 0 auto;
  min-width: 160px;
  margin: 0;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(24px, 2.6vw, 32px);
  color: var(--text);
}

/* Longer labels ("General advisory") need a wider column. */
.ledger--wide .ledger__title { min-width: 200px; }

.ledger__desc {
  flex: 1 1 300px;
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
}

/* ---------------------------------------------------------------
   How we work
   --------------------------------------------------------------- */
.approach__mesh {
  inset: 0;
  background-image:
    linear-gradient(rgba(var(--wire-dark), 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--wire-dark), 0.055) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(ellipse 45% 70% at 0% 100%, #000, transparent 70%);
          mask-image: radial-gradient(ellipse 45% 70% at 0% 100%, #000, transparent 70%);
}

.approach__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(36px, 5vw, 72px);
}

.approach__item {
  padding-top: 22px;
  border-top: 1px solid var(--line-on-bone);
}

.approach__title {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 21px;
}

.approach__desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--bone-body);
}

/* ---------------------------------------------------------------
   Beyond technology
   --------------------------------------------------------------- */
.beyond__ring {
  top: -38%;
  right: -16%;
  width: 920px;
  height: 920px;
  border: 1px solid rgba(var(--wire-light), 0.08);
  border-radius: 50%;
}
.beyond__ring--inner {
  border-color: rgba(var(--wire-light), 0.05);
  transform: scale(0.7);
}

.beyond__glow {
  right: -10%;
  bottom: -30%;
  width: 52vw;
  height: 52vw;
  background: radial-gradient(circle, rgba(237, 230, 214, 0.05), transparent 62%);
}

.beyond__title {
  margin: 0 0 clamp(44px, 6vh, 72px);
  max-width: 22ch;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(30px, 3.6vw, 48px);
  line-height: 1.15;
  text-wrap: pretty;
  color: var(--text);
}

/* ---------------------------------------------------------------
   Contact
   --------------------------------------------------------------- */
.contact { border-top: 1px solid rgba(var(--wire-light), 0.06); }

.contact__glow {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 58vw;
  height: 58vw;
  background: radial-gradient(circle, rgba(237, 230, 214, 0.05), transparent 62%);
}

.contact__ring {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(780px, 90vw);
  height: min(780px, 90vw);
  border: 1px solid rgba(var(--wire-light), 0.07);
  border-radius: 50%;
}
.contact__ring--inner {
  width: min(540px, 62vw);
  height: min(540px, 62vw);
  border-color: rgba(var(--wire-light), 0.05);
}

/* Centred with margins rather than translate, so `transform`
   stays free for the rotation. One turn every four minutes. */
.contact__orbit {
  top: 50%;
  left: 50%;
  width: min(660px, 76vw);
  height: min(660px, 76vw);
  margin: calc(min(660px, 76vw) / -2) 0 0 calc(min(660px, 76vw) / -2);
  border: 1px dashed rgba(var(--wire-light), 0.06);
  border-radius: 50%;
  animation: lf-rotate 240s linear infinite;
}

.contact__inner {
  padding-top: clamp(110px, 17vh, 200px);
  padding-bottom: clamp(110px, 17vh, 200px);
  text-align: center;
}

.contact__inner .eyebrow { margin-bottom: 24px; }

.contact__title {
  margin: 0 0 20px;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(36px, 4.6vw, 62px);
  line-height: 1.1;
  text-wrap: pretty;
  color: var(--text);
}

.contact__lede {
  margin: 0 auto 40px;
  max-width: 44ch;
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
}

.contact__cta {
  display: inline-block;
  padding: 15px 34px;
  border: 1px solid rgba(var(--wire-light), 0.28);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--text);
  transition: border-color 320ms ease, color 320ms ease;
}
.contact__cta:hover,
.contact__cta:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
}

/* ---------------------------------------------------------------
   Footer
   --------------------------------------------------------------- */
.footer {
  position: relative;
  background: var(--ink);
  border-top: 1px solid rgba(var(--wire-light), 0.07);
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 16px 32px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 44px var(--gutter);
}

.footer__brand {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 18px;
  color: var(--text);
}

.footer__meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--muted-dim);
}

/* ---------------------------------------------------------------
   Reduced motion — the atmosphere stays, the movement stops
   --------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .hero__drift,
  .contact__orbit {
    animation: none;
  }

  .contact__cta { transition: none; }
}
