/* Iris Welfare Trust — site styles
   Identity: an opening iris aperture in six spectrum colours on clean white
   and graphite. Red Hat Display/Text. Spectrum used only as coded accents. */
:root {
  --graphite: #26282B;
  --graphite-2: #3A3D42;
  --grey: #55595F;
  --mist: #F3F4F6;
  --white: #FFFFFF;
  --line: #DADDE2;
  --violet: #6B4FA0;
  --blue: #2F7FC1;
  --green: #3FA26B;
  --yellow: #F2C14E;
  --orange: #E8772E;
  --orange-dark: #C25E1E;
  --red: #D2405A;
  --disp: "Red Hat Display", "Segoe UI", system-ui, sans-serif;
  --text: "Red Hat Text", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--graphite); font-family: var(--text); font-size: 17px; line-height: 1.65; }
img, svg, iframe { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--disp); font-weight: 800; line-height: 1.04; letter-spacing: -0.03em; }
p, ul, dl, dd { margin: 0; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 1rem; top: -5rem; z-index: 100; background: var(--orange); color: var(--white); padding: .7rem 1.2rem; border-radius: 8px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 1rem; }

.c { max-width: 74rem; margin: 0 auto; padding: 0 1.25rem; }
.s { padding: 4.5rem 0; }
@media (min-width: 820px) { .s { padding: 6.5rem 0; } }
.s-mist { background: var(--mist); }
.s-dark { background: var(--graphite); color: var(--white); }
.g { color: var(--grey); }
.s-dark .g { color: #C3C7CE; }
.w64 { max-width: 64ch; }
.h2 { font-size: clamp(2.1rem, 4.8vw, 3.5rem); }
.h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.mt-a { margin-top: .75rem; } .mt-b { margin-top: 1.4rem; } .mt-c { margin-top: 2.25rem; } .mt-d { margin-top: 3.25rem; }

/* Spectrum rule: six equal colour segments */
.spectrum { display: grid; grid-template-columns: repeat(6, 1fr); height: 8px; }
.spectrum i:nth-child(1) { background: var(--violet); } .spectrum i:nth-child(2) { background: var(--blue); }
.spectrum i:nth-child(3) { background: var(--green); } .spectrum i:nth-child(4) { background: var(--yellow); }
.spectrum i:nth-child(5) { background: var(--orange); } .spectrum i:nth-child(6) { background: var(--red); }

/* Buttons */
.bt { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; padding: .95rem 1.6rem; border-radius: 8px; border: 2px solid transparent; font-family: var(--disp); font-size: 1rem; font-weight: 700; letter-spacing: -0.01em; text-decoration: none; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.bt-or { background: var(--orange); color: var(--white); }
.bt-or:hover { background: var(--orange-dark); }
.bt-gr { background: var(--graphite); color: var(--white); }
.bt-gr:hover { background: var(--violet); }
.bt-ln { border-color: var(--graphite); color: var(--graphite); }
.bt-ln:hover { background: var(--graphite); color: var(--white); }
.bt-lw { border-color: rgba(255,255,255,.55); color: var(--white); }
.bt-lw:hover { border-color: var(--yellow); color: var(--yellow); }
.bt-wh { background: var(--white); color: var(--graphite); }
.bt-wh:hover { background: var(--yellow); }
.bts { display: flex; flex-wrap: wrap; gap: .75rem; }
.tl { font-weight: 700; color: var(--graphite); text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 3px; text-underline-offset: 5px; }
.tl:hover { color: var(--orange-dark); }

/* Header */
.bar { position: sticky; top: 0; z-index: 40; background: var(--white); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top, 0px); }
.bar-row { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; height: 72px; }
.logo { display: flex; align-items: center; gap: .65rem; text-decoration: none; }
.logo img { width: 40px; height: 40px; }
.logo span { font-family: var(--disp); font-weight: 800; font-size: 1.2rem; letter-spacing: -0.02em; }
.logo small { font-weight: 500; color: var(--grey); }
.navi { display: none; }
.navi ul { list-style: none; padding: 0; display: flex; gap: 1.6rem; }
.navi a { font-weight: 600; text-decoration: none; color: var(--grey); padding: .4rem 0; border-bottom: 3px solid transparent; }
.navi a:hover { color: var(--graphite); }
.navi li:nth-child(1) a[aria-current="page"] { border-bottom-color: var(--violet); }
.navi li:nth-child(2) a[aria-current="page"] { border-bottom-color: var(--blue); }
.navi li:nth-child(3) a[aria-current="page"] { border-bottom-color: var(--green); }
.navi li:nth-child(4) a[aria-current="page"] { border-bottom-color: var(--orange); }
.navi li:nth-child(5) a[aria-current="page"] { border-bottom-color: var(--red); }
.navi a[aria-current="page"] { color: var(--graphite); }
.bar-cta { display: none; padding: .65rem 1.2rem; font-size: .95rem; }
.opener { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 8px; border: 0; background: var(--graphite); color: var(--white); cursor: pointer; }
.drop { background: var(--white); border-top: 1px solid var(--line); padding: .5rem 1.25rem 1.75rem; }
.drop[hidden] { display: none; }
.drop ul { list-style: none; padding: 0; }
.drop a.dl { display: flex; align-items: center; gap: .9rem; padding: .85rem 0; font-family: var(--disp); font-weight: 800; font-size: 1.6rem; letter-spacing: -0.02em; text-decoration: none; border-bottom: 1px solid var(--line); }
.drop a.dl::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.drop a.dl[aria-current="page"]::before { background: var(--orange); }
.drop .bt { width: 100%; margin-top: 1.25rem; }
@media (min-width: 920px) { .navi { display: block; } .opener, .drop { display: none !important; } }
@media (min-width: 1140px) { .bar-cta { display: inline-flex; } }

/* Hero */
.hero { overflow: hidden; }
.hero-g { display: grid; gap: 2.5rem; align-items: center; padding-top: 3rem; padding-bottom: 4rem; }
@media (min-width: 900px) { .hero-g { grid-template-columns: 1.15fr 1fr; gap: 3rem; padding-top: 4.5rem; padding-bottom: 5.5rem; } }
.hero h1 { font-size: clamp(2.8rem, 7vw, 5.6rem); }
.hero .lede { margin-top: 1.6rem; font-size: 1.15rem; color: var(--grey); max-width: 42ch; }
.hero .bts { margin-top: 2.25rem; }
.aperture { width: min(100%, 30rem); margin: 0 auto; }
.aperture .blade { transform-box: view-box; transform-origin: 200px 200px; animation: open 1.4s cubic-bezier(.3,.7,.2,1) both; }
@keyframes open { from { transform: rotate(-55deg) scale(.82); } to { transform: none; } }
.aperture .pupil { transform-box: view-box; transform-origin: 200px 200px; animation: dilate 1.4s cubic-bezier(.3,.7,.2,1) both; }
@keyframes dilate { from { transform: scale(.2); } to { transform: none; } }

/* Statement */
.state { display: grid; gap: 2rem; }
@media (min-width: 860px) { .state { grid-template-columns: 1fr 1.3fr; gap: 4rem; align-items: start; } }
.state .big { font-family: var(--disp); font-weight: 500; font-size: clamp(1.4rem, 2.5vw, 1.85rem); line-height: 1.4; letter-spacing: -0.015em; }

/* Mission/vision */
.mv { display: grid; gap: 1.25rem; }
@media (min-width: 820px) { .mv { grid-template-columns: 1fr 1fr; } }
.mv > div { background: var(--graphite-2); border-radius: 14px; padding: 2.25rem; position: relative; overflow: hidden; }
@media (min-width: 820px) { .mv > div { padding: 3rem; } }
.mv > div::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 6px; background: var(--blue); }
.mv > div + div::before { background: var(--orange); }
.mv h2 { font-size: 1rem; letter-spacing: 0; color: var(--yellow); }
.mv p { margin-top: 1rem; font-family: var(--disp); font-weight: 500; font-size: clamp(1.3rem, 2.2vw, 1.65rem); line-height: 1.4; letter-spacing: -0.015em; }

/* Focus tiles: each carries one spectrum colour */
.tiles { display: grid; gap: 1rem; margin-top: 3rem; }
@media (min-width: 700px) { .tiles { grid-template-columns: 1fr 1fr; } }
.tile { display: block; padding: 2rem; border-radius: 14px; background: var(--white); border: 1px solid var(--line); text-decoration: none; transition: border-color .2s, transform .2s; }
.tile:hover { border-color: var(--graphite); }
.tile .chip { display: inline-block; width: 44px; height: 8px; border-radius: 4px; }
.tile h3 { margin-top: 1.25rem; font-size: 1.6rem; }
.tile p { margin-top: .5rem; color: var(--grey); }
.tile .go { margin-top: 1.25rem; font-weight: 700; font-family: var(--disp); color: var(--graphite); }

/* Ways */
.ways { display: grid; gap: 0; margin-top: 3rem; border-top: 1px solid rgba(255,255,255,.18); }
.way { display: grid; gap: .75rem; padding: 2rem 0; border-bottom: 1px solid rgba(255,255,255,.18); }
@media (min-width: 820px) { .way { grid-template-columns: 1fr 1.5fr auto; gap: 2.5rem; align-items: center; } }
.way h3 { font-size: 1.9rem; }
.way:nth-child(1) h3 { color: var(--yellow); } .way:nth-child(2) h3 { color: #7FC6A0; } .way:nth-child(3) h3 { color: #8FB9E3; }
.way p { color: #C3C7CE; max-width: 50ch; }

/* FAQ */
.fq { display: grid; gap: 2.5rem; }
@media (min-width: 820px) { .fq { grid-template-columns: 1fr 1.8fr; gap: 4rem; } }
.fq-list details { border-radius: 12px; background: var(--mist); margin-bottom: .6rem; }
.fq-list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.15rem 1.35rem; font-family: var(--disp); font-weight: 700; font-size: 1.12rem; letter-spacing: -0.01em; }
.fq-list summary::-webkit-details-marker { display: none; }
.fq-list .pl { flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--white); position: relative; }
.fq-list .pl::before, .fq-list .pl::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; background: var(--graphite); transition: transform .2s; }
.fq-list .pl::after { transform: rotate(90deg); }
.fq-list details[open] { background: var(--white); box-shadow: inset 0 0 0 2px var(--graphite); }
.fq-list details[open] .pl { background: var(--orange); }
.fq-list details[open] .pl::before, .fq-list details[open] .pl::after { background: var(--white); }
.fq-list details[open] .pl::after { transform: rotate(0); }
.fq-list details p { padding: 0 1.35rem 1.35rem; color: var(--grey); max-width: 62ch; }

/* Contact strip */
.strip { display: grid; gap: 1.25rem; padding-top: 3rem; padding-bottom: 3rem; }
@media (min-width: 820px) { .strip { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }
.strip h3 { font-family: var(--text); font-size: .92rem; font-weight: 600; letter-spacing: 0; color: var(--grey); }
.strip a, .strip p { display: block; margin-top: .3rem; font-family: var(--disp); font-weight: 700; font-size: 1.2rem; letter-spacing: -0.01em; text-decoration: none; word-break: break-word; }
.strip a:hover { color: var(--orange-dark); }

/* Page head */
.top { border-bottom: 1px solid var(--line); overflow: hidden; }
.top .c { display: grid; gap: 1.5rem; align-items: center; padding-top: 3.5rem; padding-bottom: 3.5rem; }
@media (min-width: 820px) { .top .c { grid-template-columns: 1fr 220px; padding-top: 4.5rem; padding-bottom: 4.5rem; } }
.top h1 { font-size: clamp(2.6rem, 6.5vw, 4.6rem); }
.top p { margin-top: 1.1rem; max-width: 52ch; font-size: 1.12rem; color: var(--grey); }
.top .mini { display: none; width: 200px; }
@media (min-width: 820px) { .top .mini { display: block; } }

/* Layout */
.duo { display: grid; gap: 2.5rem; }
@media (min-width: 820px) { .duo { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.side { display: grid; gap: 2.5rem; }
@media (min-width: 880px) { .side { grid-template-columns: 1fr 1.45fr; gap: 4rem; } }

/* Values */
.vgrid { display: grid; gap: 1rem; margin-top: 2.5rem; }
@media (min-width: 760px) { .vgrid { grid-template-columns: 1fr 1fr; } }
.vgrid > div { background: var(--white); border-radius: 14px; padding: 1.75rem; border-left: 6px solid var(--violet); }
.vgrid > div:nth-child(2) { border-left-color: var(--green); }
.vgrid > div:nth-child(3) { border-left-color: var(--orange); }
.vgrid > div:nth-child(4) { border-left-color: var(--red); }
.vgrid h3 { font-size: 1.4rem; }
.vgrid p { margin-top: .5rem; color: var(--grey); }

/* Details table */
.dt { width: 100%; border-collapse: collapse; }
.dt th, .dt td { text-align: left; vertical-align: top; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.dt th { width: 11rem; padding-right: 1.25rem; font-weight: 700; }
.dt td { word-break: break-word; color: var(--grey); }

/* Focus detail */
.fdl { display: grid; gap: 1.25rem; }
.fdi { display: grid; gap: 1.25rem; padding: 2rem; border-radius: 16px; border: 1px solid var(--line); scroll-margin-top: 6rem; }
@media (min-width: 820px) { .fdi { grid-template-columns: 1fr 1.4fr; gap: 3rem; padding: 2.75rem; } }
.fdi .chip { display: inline-block; width: 52px; height: 8px; border-radius: 4px; }
.fdi h2 { margin-top: 1rem; font-size: clamp(1.8rem, 3vw, 2.3rem); }
.fdi .for { margin-top: .5rem; font-weight: 700; color: var(--grey); }
.fdi .body { color: var(--grey); }
.later { margin-top: 3rem; padding: 2rem; border-radius: 16px; background: var(--mist); }
@media (min-width: 820px) { .later { padding: 2.75rem; } }

/* Contact */
.cl > div { padding: 1.35rem 0; border-bottom: 1px solid var(--line); }
.cl > div:first-child { padding-top: 0; }
.cl h2 { font-family: var(--text); font-size: .92rem; font-weight: 600; letter-spacing: 0; color: var(--grey); }
.cl a, .cl address { display: block; margin-top: .3rem; font-family: var(--disp); font-weight: 700; font-size: 1.2rem; letter-spacing: -0.01em; font-style: normal; text-decoration: none; word-break: break-all; }
.cl address { word-break: normal; line-height: 1.45; }
.cl a:hover { color: var(--orange-dark); }
.panel { background: var(--mist); border-radius: 16px; padding: 1.5rem; }
@media (min-width: 640px) { .panel { padding: 2.5rem; } }
.mapc { border-radius: 16px; overflow: hidden; border: 1px solid var(--line); }
.mapc iframe { width: 100%; height: 380px; border: 0; }
@media (min-width: 820px) { .mapc iframe { height: 450px; } }
.careful { background: var(--graphite-2); border-radius: 16px; padding: 2rem; }
.careful h3 { font-size: 1.5rem; color: var(--yellow); }
.careful ul { margin-top: 1rem; padding-left: 1.2rem; color: #D5D8DD; }
.careful li + li { margin-top: .6rem; }

/* Forms */
.form { display: grid; gap: 1.15rem; }
.form .r2 { display: grid; gap: 1.15rem; }
@media (min-width: 620px) { .form .r2 { grid-template-columns: 1fr 1fr; } }
.form .lb { font-weight: 600; }
.form .op { font-weight: 400; color: var(--grey); }
.form input[type=text], .form input[type=email], .form input[type=tel], .form select, .form textarea { display: block; width: 100%; margin-top: .45rem; padding: .85rem 1rem; font: inherit; font-size: 1rem; color: var(--graphite); background: var(--white); border: 1.5px solid var(--line); border-radius: 8px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--graphite); box-shadow: 0 0 0 3px rgba(232,119,46,.3); }
.form [aria-invalid="true"] { border-color: var(--red) !important; }
.form .err { margin-top: .3rem; font-size: .9rem; font-weight: 600; color: #B32B44; }
.form .cb { display: flex; gap: .75rem; align-items: flex-start; font-size: .95rem; line-height: 1.5; }
.form .cb input { width: 20px; height: 20px; margin-top: 3px; flex-shrink: 0; accent-color: var(--graphite); }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .bt { justify-self: start; }
.form .bt[disabled] { opacity: .6; cursor: wait; }
.alert { border-radius: 10px; padding: 1rem; font-size: .95rem; background: #FCEDF0; border: 1.5px solid var(--red); }
.alert strong { display: block; color: #B32B44; }
.success { border-radius: 14px; padding: 2rem; background: var(--white); box-shadow: inset 0 0 0 2px var(--green); }
.success h3 { font-size: 1.7rem; }
.success button { margin-top: 1.25rem; background: none; border: 0; padding: 0; font: inherit; font-weight: 700; color: var(--graphite); text-decoration: underline; cursor: pointer; }

/* Legal */
.legal { max-width: 46rem; margin: 0 auto; padding: 4rem 1.25rem; }
@media (min-width: 820px) { .legal { padding: 5.5rem 1.25rem; } }
.legal h1 { font-size: clamp(2.4rem, 5vw, 3.4rem); }
.legal h2 { font-size: 1.45rem; margin-top: 2.5rem; }
.legal p, .legal ul { margin-top: .75rem; }
.legal ul { padding-left: 1.4rem; }
.legal li + li { margin-top: .45rem; }

/* Footer */
.foot { background: var(--graphite); color: #C3C7CE; }
.foot-g { display: grid; gap: 2.5rem; padding-top: 3.5rem; padding-bottom: 2.5rem; }
@media (min-width: 820px) { .foot-g { grid-template-columns: 1.6fr 1fr 1.4fr; } }
.foot .logo span { color: var(--white); font-size: 1.35rem; }
.foot h2 { font-family: var(--text); font-size: .92rem; font-weight: 600; letter-spacing: 0; color: var(--white); }
.foot ul { list-style: none; padding: 0; margin-top: .9rem; }
.foot li + li { margin-top: .5rem; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--white); text-decoration: underline; }
.foot address { font-style: normal; margin-top: .9rem; }
.foot address p + p { margin-top: .5rem; }
.fsoc { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.fsoc a { border: 1px solid rgba(255,255,255,.25); border-radius: 8px; padding: .3rem .75rem; font-size: .9rem; }
.foot-e { border-top: 1px solid rgba(255,255,255,.12); }
.foot-e p { padding-top: 1.2rem; padding-bottom: calc(1.2rem + env(safe-area-inset-bottom, 0px)); font-size: .9rem; }

/* Back to top */
.back { position: fixed; right: 1.1rem; bottom: calc(1.1rem + env(safe-area-inset-bottom, 0px)); z-index: 30; width: 50px; height: 50px; border-radius: 12px; border: 0; background: var(--graphite); color: var(--white); display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 6px 18px rgba(38,40,43,.3); }
.back[hidden] { display: none; }
.back:hover { background: var(--orange); }

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