// Hair Landing (Layer 2) — editorial feature

const HAIR = {
  issue: "No. 06",
  dateline: "Hair · Spring / Summer 2026",
  hero: "https://images.unsplash.com/photo-1605497788044-5a32c7078486?w=2000&q=80&auto=format&fit=crop",
  heroAlt: "Editorial hair study — soft natural light on loose strands, the hair chapter",
};

/* 7 axes — hair sorted by what actually changes the answer. */
const SUBCATS = [
  {
    id: "hair-type",
    n: "01",
    title: "Hair Type",
    slug: "hair-type",
    href: "/en/hair/hair-type/",
    deck: "Straight, wavy, curly, coily, fine, thick — the texture read comes first.",
    body: "Hair type is the read that keeps everything else honest. Texture, density and pattern decide how heavy a product can be, how much drying time the routine costs, and whether the technique should encourage movement or control it. Start here when the product should work but doesn't.",
    pull: "The head you have is the beginning of the routine, not the problem to solve.",
    img: "https://images.unsplash.com/photo-1522337360788-8b13dee7a37e?w=1400&q=80&auto=format&fit=crop",
    figcap: "Texture, density, pattern — the first three reads before product.",
    tag: "Chapter One",
    subs: ["Straight", "Wavy", "Curly", "Coily", "Fine", "Thick"],
    count: "6 child hubs",
  },
  {
    id: "hair-concern",
    n: "02",
    title: "Hair Concern",
    slug: "hair-concern",
    href: "/en/hair/hair-concern/",
    deck: "Frizz, breakage, dryness, heat damage, oiliness — behaviour before blame.",
    body: "Concern is what the hair is doing this week. It changes with weather, tools, elastics, shower temperature, colour services and patience. The point is not to diagnose a flaw. The point is to identify the repeated condition that keeps producing the same result.",
    pull: "Most concern is a calendar. Three consistent weeks beat three new bottles.",
    img: "https://images.unsplash.com/photo-1519699047748-de8e457a634e?w=1400&q=80&auto=format&fit=crop",
    figcap: "Frizz and breakage usually start before the product step.",
    tag: "Chapter Two",
    subs: ["Frizz", "Breakage", "Dryness & Heat Damage", "Oiliness"],
    count: "4 child hubs",
  },
  {
    id: "cut-style",
    n: "03",
    title: "Cut & Style",
    slug: "cut-style",
    href: "/en/hair/cut-style/",
    deck: "Bobs, lobs, layers, fringes, pixies, tapers, undercuts and shags.",
    body: "A cut is not a moodboard. It is a maintenance contract. The same reference image behaves differently on straight, wavy, curly, coily, fine and thick hair. This axis puts the salon conversation before the scissors: what to ask for, what the grow-out costs, and what the shape demands every morning.",
    pull: "A good cut reduces daily effort. A bad one gives the effort a new address.",
    img: "https://images.unsplash.com/photo-1580618672591-eb180b1a973f?w=1400&q=80&auto=format&fit=crop",
    figcap: "The shape decides how much styling the week can carry.",
    tag: "Chapter Three",
    subs: ["Bob", "Lob", "Layers", "Fringe", "Pixie", "Shag"],
    count: "12 child hubs",
  },
  {
    id: "colour-treatment",
    n: "04",
    title: "Colour & Treatment",
    slug: "colour-treatment",
    href: "/en/hair/colour-treatment/",
    deck: "Gloss, balayage, highlights, root touch-ups, bond builders and colour fade.",
    body: "Colour is a service. Upkeep is the story. This axis translates salon language into what actually happens after the appointment: lift, deposit, toner, gloss, root timing, sulphate-free routines, bond support, and the first post-salon week when most expensive colour is either protected or quietly lost.",
    pull: "The appointment gives you colour. The first week decides whether you keep it.",
    img: "https://images.unsplash.com/photo-1521590832167-7bcbfaa6381f?w=1400&q=80&auto=format&fit=crop",
    figcap: "Tone is maintained in the shower as much as in the chair.",
    tag: "Chapter Four",
    subs: ["Gloss", "Balayage", "Highlights", "Root Touch-Up", "Bond Builder", "Colour Fade"],
    count: "12 child hubs",
  },
  {
    id: "routine",
    n: "05",
    title: "Routine",
    slug: "routine",
    href: "/en/hair/routine/",
    deck: "Wash cadence, drying decisions, travel routines — the week in order.",
    body: "Routine is where most hair problems either get solved or repeated. How often you wash, how you dry, what you do between washes and what survives a weekend bag matter more than the number of products in the shower. This is the operational layer: practical, repeatable, unglamorous in the useful way.",
    pull: "The routine that survives Tuesday morning is the routine that works.",
    img: "https://images.unsplash.com/photo-1554519515-242161756769?w=1400&q=80&auto=format&fit=crop",
    figcap: "Wash day is an order of operations, not a product lineup.",
    tag: "Chapter Five",
    subs: ["Wash Cadence", "Drying Decision", "Travel Routine"],
    count: "3 child hubs",
  },
  {
    id: "technique",
    n: "06",
    title: "Technique",
    slug: "technique",
    href: "/en/hair/technique/",
    deck: "Heat styling, detangling, curly finishing and scalp massage.",
    body: "Technique is the hand layer. The same product behaves differently when it is raked, pressed, scrunched, brushed or dragged. This axis is where the ordinary movements live: heat settings, section size, detangling order, curl finishing, scalp massage, and the difference between rough-drying and roughing the hair up.",
    pull: "The product is not always wrong. Sometimes the hand is.",
    img: "https://images.unsplash.com/photo-1522336572468-97b06e8ef143?w=1400&q=80&auto=format&fit=crop",
    figcap: "Section size changes the result more than most products do.",
    tag: "Chapter Six",
    subs: ["Heat Styling", "Detangling", "Curly Finishing", "Scalp Massage"],
    count: "4 child hubs",
  },
  {
    id: "ingredients",
    n: "07",
    title: "Ingredients",
    slug: "ingredients",
    href: "/en/hair/ingredients/",
    deck: "Sulphates, silicones, proteins, bond builders, humectants and oils.",
    body: "Ingredient literacy should make the shelf smaller, not turn a shower into chemistry homework. This axis keeps the debates useful: when sulphates help, when silicones are the point, when protein is too much, what bond builders can and cannot do, and why oils are finishers more often than moisturisers.",
    pull: "Know enough chemistry to buy less, not to panic more.",
    img: "https://images.unsplash.com/photo-1608248543803-ba4f8c70ae0b?w=1400&q=80&auto=format&fit=crop",
    figcap: "The label matters after the routine logic is clear.",
    tag: "Chapter Seven",
    subs: ["Sulphates & Silicones", "Protein & Bonds", "Humectants", "Oils"],
    count: "4 child hubs",
  },
];

const SIDEBAR_OTHER = [
  { label: "Skin", icon: "◐" },
  { label: "Body", icon: "◑" },
  { label: "Makeup", icon: "◉" },
  { label: "Fragrance", icon: "◈" },
  { label: "Nails", icon: "◇" },
  { label: "Wellness x Beauty", icon: "✦" },
];

/* Hair Profile Finder — 3 Qs route to one of four hair archetypes. */
const QUIZ_STEPS = [
  {
    q: "When your hair dries on its own, what does it actually do?",
    a: [
      { v: "air",  l: "Falls into a wave or a curl, mostly behaves" },
      { v: "tool", l: "Goes flat, frizzes, or refuses to set without help" },
      { v: "curl", l: "Coils tightly, needs gel or cream to stay defined" },
      { v: "color",l: "Looks dull at the ends, fades a little every wash" },
    ],
  },
  {
    q: "What's the one product you genuinely couldn't live without?",
    a: [
      { v: "air",  l: "A leave-in conditioner. Everything else is optional" },
      { v: "tool", l: "Heat protectant — the iron is part of my morning" },
      { v: "curl", l: "A styling cream or gel that holds without crunch" },
      { v: "color",l: "A purple or pigment-protecting shampoo" },
    ],
  },
  {
    q: "And the thing your hair keeps quietly asking for?",
    a: [
      { v: "air",  l: "A trim — the ends are tired but the rest is fine" },
      { v: "tool", l: "Less heat. I know it. I'm working on it" },
      { v: "curl", l: "More moisture. It drinks whatever I give it" },
      { v: "color",l: "A bond repair treatment. Bleach has been a season" },
    ],
  },
];

const QUIZ_RESULTS = {
  air:   { name: "The Air-Dryer",      quote: "You don't fight your hair, you finish it. The trick is staying out of its way.", recs: ["Air-drying without the frizz halo", "Building a two-product wash routine", "When to skip the brush entirely"] },
  tool:  { name: "The Tool User",      quote: "The iron isn't the enemy — the temperature is. Lower it, and the rest gets easy.", recs: ["Heat protectants that earn their place on the shelf", "Blow-dry technique for hair that won't hold", "The case for a 150°C iron"] },
  curl:  { name: "The Curl Person",    quote: "Curls don't need more products. They need the right three, in the right order.", recs: ["The two-step curl routine, simplified", "Refresh days without re-washing", "Sleeping on curls without the flatten"] },
  color: { name: "The Colour-Treated", quote: "Colour is a long ritual, not a result. Patience and pH are the whole game.", recs: ["A weekly bond repair you'll actually do", "Holding tone between salon visits", "Sun, salt and the slow fade"] },
};

/* Hair Care Sequence — Wash Day / Between Washes (more useful than AM/PM for hair). */
const AM_ROUTINE = [
  { t: "Pre-wash oil (optional)",    d: "A light oil through dry mid-lengths and ends, fifteen minutes before the shower. Skip the scalp.",         wait: "15 min" },
  { t: "Shampoo — at the scalp",     d: "Two minutes at the roots, fingertips not nails. Let the suds rinse the lengths on the way down.",            wait: "2 min"  },
  { t: "Condition — at the lengths", d: "From the ears down, never near the roots. Comb through, leave on for the time it takes you to wash your face.", wait: "3 min"  },
  { t: "Mask or treatment (weekly)", d: "On damp hair, mid-lengths to ends. Wrap, wait, rinse cool. Once a week is plenty for most heads.",            wait: "10 min" },
  { t: "Leave-in and styler",        d: "On towel-damp hair. Leave-in first, then cream or gel. Less than you think — you can always add more.",       wait: "—"      },
];
const PM_ROUTINE = [
  { t: "Refresh the roots",          d: "A pinch of dry shampoo at the part. Brush through, then leave it alone — that's where the volume lives.",     wait: "1 min"  },
  { t: "Scalp massage",              d: "Two minutes with the pads of your fingers. Move the skin, not the hair. Best on a slow evening.",             wait: "2 min"  },
  { t: "Reset the ends",             d: "A drop of oil, warmed in the palms, pressed only into the ends. Skip everything above the ears.",             wait: "—"      },
  { t: "Re-style if needed",         d: "Damp the front pieces with a misting bottle. A low blow-dry, a cool shot to set. Don't rewash for it.",       wait: "5 min"  },
  { t: "Silk and sleep",             d: "A loose plait, a silk pillowcase or a bonnet. Tomorrow's hair gets made tonight.",                            wait: "—"      },
];

/* Hair by Season — same shape as Body's seasonal but hair-specific. */
const SEASONS = [
  { mo: "Mar — May", name: "Spring",  note: "Lighter conditioners, a clarifying wash to clear winter buildup. Begin a weekly mask before the heat sets in.",                       img: "https://images.unsplash.com/photo-1519699047748-de8e457a634e?w=900&q=80&auto=format&fit=crop" },
  { mo: "Jun — Aug", name: "Summer",  note: "Pre-rinse before the pool. UV protectant on the lengths. Salt water is a styler — and a slow drain on colour.",                        img: "https://images.unsplash.com/photo-1521335629791-ce4aec67dd47?w=900&q=80&auto=format&fit=crop" },
  { mo: "Sep — Nov", name: "Autumn",  note: "Switch to a richer mask. Bring back the pre-wash oil. Cut back the heat tools — the air's doing more drying than they are.",            img: "https://images.unsplash.com/photo-1576613109753-27804de2cba8?w=900&q=80&auto=format&fit=crop" },
  { mo: "Dec — Feb", name: "Winter",  note: "Static, dryness, hat-flat hair. Silk linings inside the wool. Leave-in every wash, oil through the ends most evenings.",               img: "https://images.unsplash.com/photo-1519415943484-9fa1873496d4?w=900&q=80&auto=format&fit=crop" },
];

const MYTHS = [
  { m: "You should brush your hair a hundred times before bed.",
    t: "You should not. The Victorians thought it distributed oil — what it actually does is snap fragile lengths and stretch the cuticle. A few gentle passes with a wide-tooth comb is the whole job." },
  { m: "Cutting your hair makes it grow faster.",
    t: "It doesn't speed growth — that happens at the follicle, which scissors can't reach. What a trim does is keep the ends intact, so length you've already grown stops breaking off. Same outcome, different mechanism." },
  { m: "You should wash your hair every day.",
    t: "Most heads don't need it. Daily washing strips sebum the scalp produces for a reason and trains the system to overproduce in response. Two or three times a week suits most hair — fine hair maybe more, coily hair often much less." },
  { m: "Air-drying is always better than blow-drying.",
    t: "On low heat, with a nozzle, blow-drying can actually be gentler than long air-dry — wet hair is at its most fragile, and the longer it stays wet, the more the cuticle swells. The trick is the temperature, not the method." },
  { m: "Heat-styled hair needs a sulphate-free shampoo, full stop.",
    t: "Sulphates aren't the villain. Daily harsh ones strip colour and dry the scalp; a gentle sulphate every other wash is fine for most hair, and frankly cleans better than the alternatives. The rule is gentleness, not chemistry purity." },
];

const FAQ = [
  {
    q: "How do I know if my hair is low or high porosity?",
    a: "Drop a clean strand into a glass of water. Floats for a few minutes — low porosity, the cuticle is shut tight. Sinks slowly — normal. Sinks immediately — high porosity, the cuticle is wide open and losing moisture. Most heads are somewhere in between, and it can vary along the length.",
  },
  {
    q: "How often should I really be washing my hair?",
    a: "As often as your scalp asks for it, which is usually less than you think. Fine hair, every two to three days. Thick or coily hair, once a week is normal — sometimes longer with co-washes in between. The scalp recalibrates if you let it.",
  },
  {
    q: "What's the lowest temperature I can actually style at?",
    a: "Most fine and medium hair sets beautifully at 150°C. Thick or coarse hair may want 170°C, never more. Anything above 185°C is reserved for occasional, fully-protected use — and even then, briefly. The cuticle damages cumulatively; you don't see it until you do.",
  },
  {
    q: "Do bond-repair treatments actually work?",
    a: "Yes — within reason. They re-link some of the disulfide bonds broken by bleach and heat, and they genuinely improve elasticity over a few weeks. They do not regrow hair, undo split ends, or replace a trim. Used weekly, on damp hair, they earn their place.",
  },
  {
    q: "Why is my hair flat at the roots and frizzy at the ends?",
    a: "Different problems, same cause: imbalanced moisture. The roots are over-conditioned and weighed down; the ends are dehydrated and lifting the cuticle. Move the conditioner south, mask only the ends, and the picture shifts within a few washes.",
  },
];

const RELATED = [
  {
    h: "By Texture",
    links: [
      { t: "Air-drying wavy hair without the halo", c: "19" },
      { t: "Defining coily hair without the crunch", c: "16" },
      { t: "Sleek straight hair on a humid day", c: "13" },
      { t: "Reviving second-day curls in five minutes", c: "11" },
      { t: "Diffusing a fine wave into volume", c: "9"  },
    ],
  },
  {
    h: "By Concern",
    links: [
      { t: "Bond repair after a heavy bleach", c: "18" },
      { t: "Holding salon colour between visits", c: "15" },
      { t: "Calming a flaky scalp without stripping it", c: "12" },
      { t: "Recovering after a summer of sun and salt", c: "10" },
      { t: "Stopping breakage at the hair tie", c: "8"  },
    ],
  },
  {
    h: "Tools & Technique",
    links: [
      { t: "Choosing a heat tool that won't punish your hair", c: "17" },
      { t: "The round brush blow-dry, simplified", c: "14" },
      { t: "Wide-tooth combs vs paddle brushes", c: "12" },
      { t: "Silk pillowcases — what they actually do", c: "9"  },
      { t: "Trimming your own ends between salon visits", c: "7"  },
    ],
  },
];

const READS = [
  { kick: "Ritual",      t: "On Wash Day, And Why I Stopped Calling It a Chore",  time: "5 min", auth: "Nelly", img: "https://images.unsplash.com/photo-1605497788044-5a32c7078486?w=1000&q=80&auto=format&fit=crop" },
  { kick: "Technique",   t: "The Case for a 150°C Iron (And the Hair It Saved)",  time: "4 min", auth: "Nelly", img: "https://images.unsplash.com/photo-1554519515-242161756769?w=1000&q=80&auto=format&fit=crop" },
  { kick: "Ingredients", t: "Bond Repair, Briefly — What's in It and What Isn't", time: "6 min", auth: "Iris",  img: "https://images.unsplash.com/photo-1522337360788-8b13dee7a37e?w=1000&q=80&auto=format&fit=crop" },
];

Object.assign(window, { HAIR, SUBCATS, SIDEBAR_OTHER, QUIZ_STEPS, QUIZ_RESULTS, AM_ROUTINE, PM_ROUTINE, SEASONS, MYTHS, FAQ, RELATED, READS });
